Claude Code Memory 2.0 (AutoDream)
A three-layer memory system in Claude Code: normal session chat, Auto Memory (a memory.md file that stores per-project facts and preferences injected into every new session), and AutoDream. AutoDream runs a background sub-agent periodically that consolidates, prunes, and refreshes memory files — modelled explicitly on human sleep. Activated via /memory, runs via /dream or on a time/session interval, and only touches memory files (never code). Reduces repetition, bloat, and context rot across long-lived projects.
Key points
- Three layers: session chat, Auto Memory (persistent memory.md), AutoDream (background cleanup)
- AutoDream runs a sub-agent that consolidates, prunes, and rewrites memory files
- Triggered by interval (hours) or session count — runs in background with a 'dreaming' status
- Only touches memory files (.md), never code or scripts
- Explicitly modelled on how humans consolidate memory during sleep
- Activated globally across projects via /memory interface
- Shows diff of added entries and removed sections after each dream
- Jack Roberts describes a complementary manual architecture for Claude/Codex-style work: stable identity instructions, per-project operating manuals, and long-term Pinecone or Obsidian archives [src-059].
- Roberts's emphasis is cross-app memory rather than only Claude Code internals: the outcome of a conversation should not depend on one chat history if the important context has been written into files or indexes [src-059].
- In the Hermes Agent OS demo, Roberts extends Claude Code memory outward: Hermes can ask what the Claude/Codex-style operating system knows, read overnight reflections, and surface active work context through Telegram [src-079].
Related entities
Related concepts
- Claude Code Context Management Discipline
- Claude Code Token Economics
- AI Memory Operating System
- Three-Layer AI Memory
- Project Operating Manual
- Conversation Wrap-Up Memory
- Cross-Harness Memory Bridge
Source references
- [src-004] Nate Herk cluster — Nate Herk — Claude Code cluster (21 videos)
– Videos referenced: LrgfmZkl3nc, tXtCK66fPj8