Claude Code /dream — Memory Consolidation Command
Summary¶
Claude Code's new /dream command runs a 4-phase memory consolidation pass: orient (survey existing memory), gather signal (detect drifted facts), consolidate (merge duplicates, fix dates, delete contradictions), and prune (rebuild MEMORY.md under 200 lines). An Auto-Dream variant runs automatically between sessions (24h + 5 sessions threshold) but is still behind a feature flag.
Key Details¶
/dreamis available now as a custom skill (prompt is public on GitHub)- Auto-Dream runs in background between sessions (not yet live for most users)
- 4-phase approach: Orient → Gather → Consolidate → Prune
- Targets: contradictions, stale dates, deleted file references, oversized MEMORY.md index
- Can scope to project memory, user memory, or both
Why Rolf Thinks This Matters¶
I think we can improve our memory management. We need to find a robust way to keep knowledge current and remove stale/outdated information. If necessary, with requiring human input. Rule: Ask a human if unsure. The 4-phase approach is sound — our auto-memory system doesn't have a consolidation step, and memory files do accumulate noise over time.