Analyze auto-memory for promotion candidates, stale entries, consolidation opportunities, and health metrics.
Performs a comprehensive audit of Claude Code's auto-memory and produces actionable recommendations.
/si:review # Full review
/si:review --quick # Summary only (counts + top 3 candidates)
/si:review --stale # Focus on stale/outdated entries
/si:review --candidates # Show only promotion candidates
# Find the project's auto-memory directory
MEMORY_DIR="$HOME/.claude/projects/$(pwd | sed 's|/|%2F|g; s|%2F|/|; s|^/||')/memory"
# Fallback: check common path patterns
# ~/.claude/projects/<user>/<project>/memory/
# ~/.claude/projects/<absolute-path>/memory/
# List all memory files
ls -la "$MEMORY_DIR"/
If memory directory doesn't exist, report that auto-memory may be disabled. Suggest checking with /memory.
Read the full MEMORY.md file. Count lines and check against the 200-line startup limit.
Analyze each entry for:
Recurrence indicators
Staleness indicators
find to verify)Consolidation opportunities
Promotion candidates — entries that meet ALL criteria:
.claude/rules/If MEMORY.md references or the directory contains additional files (debugging.md, patterns.md, etc.):
Read the project's CLAUDE.md (if it exists) and compare:
Also check .claude/rules/ directory for existing scoped rules.
Output format:
📊 Auto-Memory Review
Memory Health:
MEMORY.md: {{lines}}/200 lines ({{percent}}%)
Topic files: {{count}} ({{names}})
CLAUDE.md: {{lines}} lines
Rules: {{count}} files in .claude/rules/
🎯 Promotion Candidates ({{count}}):
1. "{{pattern}}" — seen {{n}}x, applies broadly
→ Suggest: {{target}} (CLAUDE.md / .claude/rules/{{name}}.md)
2. ...
🗑️ Stale Entries ({{count}}):
1. Line {{n}}: "{{entry}}" — {{reason}}
2. ...
🔄 Consolidation ({{count}} groups):
1. Lines {{a}}, {{b}}, {{c}} all about {{topic}} → merge into 1 entry
2. ...
⚠️ Conflicts ({{count}}):
1. MEMORY.md line {{n}} contradicts CLAUDE.md: {{detail}}
💡 Recommendations:
- {{actionable suggestion}}
- {{actionable suggestion}}
/si:status shows MEMORY.md is over 150 lines/si:review --quick frequently (low overhead)