hebel. today · 13 November 202637 / 80
Agentic Engineering · Context Engineering
Anthropic and agents use 'dreaming' to curate memory
Anthropic models consolidate agent memory through a background process called dreaming, which reviews work logs against existing notes to correct mistakes and prune stale information between sessions. This architecture moves beyond simple vector retrieval…
From 4 newsletters · 1 min read · one thing to try
Anthropic models consolidate agent memory through a background process called dreaming, which reviews work logs against existing notes to correct mistakes and prune stale information between sessions (Confluence). This architecture moves beyond simple vector retrieval by organizing memory into a hierarchy of transcripts, selective notes, and knowledge wikis rather than a single searchable attic (Shilpa Mitra from WebAfterAI). When Claude played Pokémon Red, the agent accumulated 413 memory files across 225 folders, eventually stalling due to the overhead of reorganizing its own state; a dreaming pass corrected a single erroneous map note that had left the agent trapped in a mountain cave.
Developers can implement similar routines by directing agents to update project-specific files like CLAUDE.md or AGENTS.md based on recent conversations, effectively performing a manual dreaming pass. For more complex systems, researchers at UC Berkeley developed MemGPT, which treats memory as an operating system by providing agents with a small, always-visible 'main memory' and larger external storage for paging information (Technically). To maintain reliability in production, engineers should combine these fast compaction methods with immutable logs and policy rules that preserve source evidence for high-risk actions (Rosario Fortugno from Applying AI).
Try today · 20 min
Create a scheduled routine to update your agent's project instructions based on recent chat history.
Search your past logs for recurring errors or outdated project constraints to draft a new instruction block.
You need
- Access to your agent's chat history
- The current project instructions file (e.g., CLAUDE.md)
Steps
- Review your recent chat logs for one recurring error or stale preference.
- Ask the agent to summarize the correct instruction to prevent that error.
- Draft a new rule or instruction based on that summary.
- Append the rule to your project's primary instruction file.