3AM Marketer
AI

Anthropic's Dreaming Prunes Claude Agent Memory While Idle

Anthropic uses dreaming during idle compute to reorganize logs, merge overlapping files, and build persistent long-term memory representations for Claude agents.

9 files
Claude Haiku 4.5$1.00
Claude Sonnet 5.5$2.00
Claude Opus 5.5$4.00
Claude Fable 5.1$10.00
Input Price (per 1M tokens), from the entry's own table. 4 sources, checked 8 Nov 2026. Full table

Dreaming allows Claude to reorganize its existing context during idle periods between interactions, cutting redundant agent storage down to compact strategic plans. In benchmark gameplay tests on Pokémon Red, Claude Fable 5 earned four gym badges while storing notes across just nine files, compared to Sonnet 3.7 which bloated memory to 413 files across 225 folders and secured only one badge.1

Researchers at Letta and UC Berkeley proposed sleep-time compute as an architectural mechanism where an LLM agent uses inactive intervals to restructure context. Anthropic likens this process to the biological role of sleep, during which the hippocampus replays recent events to distill them into long-term representations in the neocortex. By reflecting on execution logs, the agent identifies past mistakes, drafts structured notes, and shapes what context is preemptively loaded into upcoming sessions. As teams build autonomous AI agents, managing persistent state across sessions requires shifting from raw context accumulation to structured distillation.12

How auto dream consolidates agent memory files

The operational implementation of dreaming evolved into auto dream, an asynchronous background maintenance routine. Auto dream periodically scans Claude's stored notes to evaluate relevancy, merging overlapping entries and purging conflicting or stale records. Beyond simple record deletion, the routine rebuilds indexes and standardizes relative timestamps into fixed dates to preserve usability across long execution horizons. Crucially, the mechanism operates solely on agent memory files and does not modify the underlying application codebase.3

Consolidating state files prevents context window pollution that degrades performance over extended tasks. In CL-Bench 1.0 evaluations, both Claude Opus 5.5 and Claude Sonnet 5.5 successfully utilized memory consolidation to distill validated behavioral rules for answering subsequent questions.1

Cost comparison for memory-capable Claude models

Distilling memory logs relies on secondary background inference passes. Choosing a model tier dictates the operational budget needed to run continuous consolidation cycles alongside core tasks.4

ModelInput Price (per 1M tokens)Output Price (per 1M tokens)
Claude Haiku 4.5$1.00$5.00
Claude Sonnet 5.5$2.00$10.00
Claude Opus 5.5$4.00$20.00
Claude Fable 5.1$10.00$50.00

According to our data set on Claude pricing, running Sonnet 5.5 costs $2 input and $10 output per million tokens, making it a viable driver for mid-tier agent architectures that require frequent index rebuilding. By contrast, Claude Fable 5.1 commands $10 input and $50 output per million tokens.4