diagnosing-memories
Skill6 starsChanged 9 days agoMITView on GitHub
Diagnose Hermes memory store issues — MEMORY.md/USER.md over-limit, duplicates, mis-targeted entries, and undated dynamic stores.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- diagnosing-authSkill
- diagnosing-backupSkill
- diagnosing-bot-modeSkill
- diagnosing-browserSkill
- diagnosing-cli-tuiSkill
- diagnosing-commandsSkill
- diagnosing-configSkill
- diagnosing-cronSkill
- diagnosing-desktopSkill
- diagnosing-gatewaySkill
- diagnosing-hooksSkill
- diagnosing-host-pressureSkill
- diagnosing-mcpSkill
- diagnosing-memorySkill
- diagnosing-pathSkill
- diagnosing-pluginsSkill
- diagnosing-profilesSkill
- diagnosing-providersSkill
- diagnosing-runtimeSkill
- diagnosing-secretsSkill
- diagnosing-sessionsSkill
- diagnosing-skillsSkill
- diagnosing-storageSkill
- diagnosing-triageSkill
- diagnosing-updateSkill
- diagnosing-voiceSkill
- hermes-configuration-guideSkill
- hermes-post-updateSkill
- installing-hermesSkill
- plugin-authoringSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Remove stale/duplicate information
- Very specific: line 36
Use memory tool to patch/remove entries
- Very specific: line 45
Remove duplicate entries via memory tool (remove action)
- Distinctive: line 46
Keep the most complete version
- Distinctive: line 56
Remove the redundant one
- Distinctive: line 76
Add date prefix to dynamic entries
- Distinctive: line 106
After applying the fix:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Diagnosing Memory Stores
Goal: reduce any memory store problem to one concrete fix — a trim, a dedup, or a re-target.
Disambiguation: if the agent "forgot" something or an external memory provider is unavailable, see
diagnosing-memory. This skill covers the built-in store files (MEMORY.md,USER.md) and their content hygiene.
1. How to inspect
hermes guide— runscheck_memory_hygiene(store audit)hermes memory status— provider/store healthcat "$(hermes config path | sed 's|config.yaml||')memories/MEMORY.md"— agent notes storecat "$(hermes config path | sed 's|config.yaml||')memories/USER.md"— user profile store
2. Common failures
Store over limit
Symptom: hermes guide reports memory store as broken (over char limit).
Cause: Too many entries; store exceeds configured char limit (~2,200).
Fix:
- Trim low-value entries
- Consolidate related entries into one
- Remove stale/duplicate information
- Use
memorytool to patch/remove entries
Exact duplicates
Symptom: hermes guide reports duplicate entries.
Cause: Same fact added multiple times.
Fix:
- Remove duplicate entries via
memorytool (remove action) - Keep the most complete version
Near-duplicates
Symptom: hermes guide reports near-duplicate entries.
Cause: Similar but not identical entries (e.g. "User prefers X" and "User likes X").
Fix:
- Consolidate into one entry
- Remove the redundant one
User preference in wrong store
Symptom: hermes guide reports user-preference entries in MEMORY.md (agent notes).
Cause: Facts about the user were saved to the agent-notes store instead of USER.md.
Fix:
- Move the entry to USER.md
- Remove from MEMORY.md
- Re-add via
memorytool with correct target
Undated dynamic store
Symptom: hermes guide reports undated dynamic store.
Cause: Memory entries lack timestamps; dynamic store has no date anchor.
Fix:
- Add date prefix to dynamic entries
- Or convert to dated entries
Missing store file
Symptom: hermes guide reports missing store.
Cause: Hermes hasn't created the store yet (first run).
Fix:
mkdir -p ~/.hermes/memories
# Hermes creates stores on first memory write
hermes # start a session3. Verification
hermes guide # memory hygiene check healthy
hermes memory status # provider/store health ok
cat ~/.hermes/memories/MEMORY.md # entries within limitPass: memory hygiene check shows healthy; stores within limits.
Fail: memory hygiene check shows broken — address the specific finding.
Verification
After applying the fix:
hermes guide # memory hygiene check healthy
hermes memory status # provider/store health okPass: memory hygiene check shows healthy; stores within limits.
Fail: memory hygiene check shows broken — address the specific finding.
4. Related
diagnosing-memory— memory provider and "forgot" issueshermes-disk-housekeeping— storage cleanuphermes-configuration-guide— memory configuration
Facts re-verified 2026-10-31 against upstream source at commit cedf4a3d78675283fa93e4e6ea2d6212bf414667: hermes_cli/checks.py (check_memory_hygiene), hermes_constants.py (BUILTIN_MEMORY_STORES, MEMORY_ENTRY_DELIMITER). Re-verify before reuse.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

