On November 6, 2026, Anthropic published a research post titled “The Components of Agent Memory” that does something rare: it moves beyond the general claim that memory improves AI agents and gives practitioners a layered design model, backed by measurements, that tells them what to put where and what breaks when they get it wrong. For any enterprise team building agents that run across sessions, deal with large internal document corpora, or coordinate multiple agents on shared tasks, this is the clearest design guidance available from a frontier lab to date.

The Problem Agent Memory Is Solving

Agents that restart from scratch every session are inherently limited. They repeat work, forget user preferences, and cannot accumulate domain knowledge over time. The obvious fix is to give them persistent storage. The harder question is how to structure that storage so the right information reaches the agent at the right time, without consuming the entire context window or propagating errors indefinitely.

Anthropic’s post defines agent memory as “knowledge Claude gains from experience, including interactions with users and tasks it has been assigned, that it retains between sessions, saved as context it can read later.” This definition deliberately excludes weight updates, in-context learning within a single session, and compaction (summarization that extends a running context window). The focus is on what persists across sessions.

The Four Memory Layers, Bottom to Top

Anthropic proposes a hierarchy of four layers, each solving a different retrieval problem.

Transcripts form the foundation: a searchable event log of past sessions. Transcripts preserve the original evidence. They are not modified and can be queried later when notes need verification. The limitation is that transcripts do not automatically surface the right information; Claude must search them actively.

Memory notes sit above transcripts. These are compact observations Claude writes during a session: rules learned, failure diagnoses, next steps, file locations. Notes are fast to retrieve and low in token cost. Their quality depends entirely on Claude’s in-session judgment about what deserves to be written down. A wrong judgment produces a wrong note, and a note that was correct at first can drift as the environment changes.

Memory representations, primarily wikis, form the third layer. A wiki is a collection of linked pages Claude builds and maintains that organizes knowledge about a subject. The links create a navigable map, letting Claude locate relevant memory without exhaustively searching a growing transcript corpus. In Anthropic’s evaluation over roughly 350,000 internal documents from Stainless (a software company Anthropic acquired in May), Opus 5 agents built a wiki through 128 dreaming sessions; performance on a 25-question test suite grew from 13% to 48% of graded criteria as the wiki expanded. When search was combined with the wiki, the aggregate score rose from 54% to 61%, versus 53% for search alone, and each question consumed about 20,000 fewer tokens.

Injected context sits at the top. The agent harness loads a small amount of material into every new session’s context automatically, so Claude does not have to know to search for it. The tradeoff is severe: injected content costs tokens in every session, and an incorrect injected note propagates into every future session. Claude Code’s auto memory enforces this constraint directly, loading only the first 200 lines or 25 KB of MEMORY.md as a header index rather than loading all memory into the context window.

LayerWhat It ContainsRetrieval MethodKey Risk
TranscriptsFull session event logActive searchHigh token cost per query
Memory notesCompact agent-written observationsSearch or direct readStale or incorrect from start
Representations (wikis)Linked knowledge pagesNavigation via linksCan grow larger than source docs
Injected contextHigh-priority notes, indicesAutomatic, every sessionPropagates errors into all sessions

What “Dreaming” Actually Does

Dreaming is the name Anthropic gives to offline passes, additional model inference over stored records, that reorganize and correct memory between sessions. The name is metaphorical but the mechanism is precise.

A dreaming pass can do four things. First, it can test a memory note against the original transcript and rewrite the note if it was wrong. Anthropic illustrates this with a concrete example: in an agent playing Pokémon Red, a wrong note about a Pokémon Center location sent Claude off a one-way ledge in Mt. Moon three times; a dreaming pass that checked the note against the transcript and corrected it resolved the loop.

Second, dreaming can build new representations. By reviewing many sessions, a pass can spot patterns, merge related notes into wiki pages, and prune redundant or contradicted entries.

Third, dreaming can promote compact summaries or index pointers into the injected context layer. This lets Claude enter a session with a directory of what it knows and where to find it, without loading all of its knowledge into the opening context.

Fourth, dreaming can coordinate across agents on a shared memory store. Each agent’s dreaming pass can search other agents’ transcripts, spot common errors, and update shared representations.

Anthropic ships dreaming as a research preview in Claude Managed Agents, available behind an access request and the dreaming-2026-04-21 beta header. A dreaming call takes a memory store and 1 to 100 session transcripts and writes a new store; the input is never modified, so teams can review the output before adopting it. Claude Code does not yet ship dreaming natively.

Benchmark Results That Enterprise Teams Should Track

Anthropic reports three quantified results across different evaluation settings.

The database task (CL-Bench) compared Opus 5.5 and Opus 4.7 with and without memory. Opus 5.5 improved from 0.655 to 0.838; Opus 4.7 improved from 0.383 to 0.700. The gains are large and consistent across model generations, which supports memory as a compound investment: the same memory system improves as the base model improves.

The 350,000-file document corpus (from Stainless) used 128 dreaming sessions to build a wiki. Performance on 25 questions grew from 13% (at 2 sessions) to 48% (at 128 sessions) with wiki access only. With both wiki and search, performance reached 61%, versus 53% for search alone. Token savings were about 20,000 per question. These numbers come from a private, vendor-run evaluation over a specific codebase, not an independent benchmark, so they set directional expectations rather than portable guarantees.

The concurrent-write failure test is the most practically important finding. When several agents wrote to one shared memory file, only 41 of 57 facts (72%) survived. When each agent wrote to its own page, all 57 facts survived. This is a concrete architecture recommendation: isolate agent writes.

Where Memory Systems Break Down

Anthropic documents four failure modes explicitly.

Stale notes cause loops. An agent that trusts a stale note will repeat the action that generated it, indefinitely, until a dreaming pass corrects the error. Teams that cannot run dreaming continuously need a manual review gate for memory before high-stakes sessions.

Wikis can outgrow their sources. Without pruning, a growing wiki accumulates redundant and contradicted entries. Dreaming passes that merge duplicates and check claims against transcripts keep it bounded.

Concurrent writers lose information. The 72% fact-survival rate under concurrent writes is low enough to cause problems in any task where completeness matters. Isolated per-agent pages are the fix.

Injected context is not guaranteed to work. Anthropic’s own documentation for Claude Code warns that longer instruction files reduce model adherence. Loading more into the injected layer does not linearly improve performance.

What This Means for Enterprise AI Builders

The design guide has direct implications for teams building multi-session agents today, whether on Claude or other models with similar memory architectures.

Treat transcripts as the source of truth. Notes and wikis are derived artifacts. Preserving immutable transcripts and running dreaming passes over them is safer than trusting any compressed representation.

Keep the injected layer small and accurate. The first 200 lines of an instruction or memory file should be a navigable index, not an exhaustive list. Push detail into lower layers and add links to it from the top.

Isolate concurrent agent writes. Shared memory files are a correctness risk in any parallelized workflow. Assign each agent its own memory page and use dreaming to consolidate.

Budget for dreaming compute. Building a usable wiki from a 350,000-file corpus required 128 sessions. That is a one-time upfront cost, but ongoing dreaming to keep the wiki current is recurring. Factor it into the total cost of operation for any long-running agent.

For teams building enterprise workflows on top of Claude, Anthropic’s multi-agent systems governance guidance covers the broader governance surface that memory management sits inside. For content and knowledge-intensive use cases, the patterns in AI content systems at scale map closely to the wiki-based memory approach Anthropic describes. And for teams integrating these patterns into platform deployments, Anthropic’s computer use and skills API GA covers the adjacent infrastructure that memory-enabled agents run on.

The full research post is available at anthropic.com/research/components-of-agent-memory. The Managed Agents dreaming preview requires an access request through Anthropic’s enterprise channel.