agentleFS
iapiap/hermes-guide/skills/diagnosing-memories/SKILL.md

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.

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
  1. Distinctive:

    Remove stale/duplicate information

    line 35
  2. Very specific:

    Use memory tool to patch/remove entries

    line 36
  3. Very specific:

    Remove duplicate entries via memory tool (remove action)

    line 45
  4. Distinctive:

    Keep the most complete version

    line 46
  5. Distinctive:

    Remove the redundant one

    line 56
  6. Distinctive:

    Add date prefix to dynamic entries

    line 76
  7. Distinctive:

    After applying the fix:

    line 106

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 — runs check_memory_hygiene (store audit)
  • hermes memory status — provider/store health
  • cat "$(hermes config path | sed 's|config.yaml||')memories/MEMORY.md" — agent notes store
  • cat "$(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 memory tool to patch/remove entries

Exact duplicates

Symptom: hermes guide reports duplicate entries.

Cause: Same fact added multiple times.

Fix:

  • Remove duplicate entries via memory tool (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 memory tool 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 session

3. Verification

hermes guide               # memory hygiene check healthy
hermes memory status       # provider/store health ok
cat ~/.hermes/memories/MEMORY.md  # entries within limit

Pass: 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 ok

Pass: 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" issues
  • hermes-disk-housekeeping — storage cleanup
  • hermes-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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.