type: rule
status: active
timestamp: 2026-07-02
tags: [agent, memory, hygiene, maintenance]

Review per-project memory monthly, prune stale entries

Auto-saved memory files (~/.claude/projects/*/memory/MEMORY.md) get stale — 'currently working on X' after X shipped. Monthly review + prune.

Memory review monthly

The rule

Once a month, review every ~/.claude/projects/*/memory/MEMORY.md file + any per-project memory notes. Delete stale entries. Not archive — delete, per knowledge-deletion-not-supersession.

Why this exists

Auto-saved memory accumulates false facts over time:

Claude re-reads memory at session start and treats stale entries as current fact. Result: confident-wrong responses.

Review protocol

Once a month (calendar reminder or on the first commit of the month):

  1. ls ~/.claude/projects/*/memory/ — list per-project memory dirs
  2. For each MEMORY.md:
    • Read every one-liner pointer
    • For each pointer, ask: “Is this still true?”
    • Delete stale, keep live
  3. For each memory file linked from MEMORY.md:
    • Open, check metadata.type
    • feedback/project: verify still applies. Delete if user preference changed OR project completed.
    • user: verify user still matches. Rarely deleted; occasionally updated.
    • reference: verify URL/target still exists. Delete if broken.
  4. Commit: chore(memory): prune stale entries YYYY-MM

What COUNTS as stale

What does NOT count as stale

Anti-patterns

Automation aids (allowed)

Cross-refs


Edit on GitHub · Back to index