AI Research

Anthropic details how Claude repairs memory

Background review reorganizes notes between sessions.

Published Updated
AnthropicClaudeAgent Memory

Anthropic published engineering findings on agent memory on November 6, examining how Claude can revisit earlier work between sessions. The process, called dreaming, checks stored notes against conversation records and reorganizes knowledge for later use. In a Pokémon navigation experiment, reviewing the original record corrected a mistaken location note that had sent the agent repeatedly in the wrong direction. Memory here means saved context, rather than changes to a model's trained parameters.

The research also tested linked collections of notes, or wikis, for work involving many documents. On merger questions requiring connections across files, Claude scored 87% with a wiki versus 73% with search alone. Other tasks showed no clear improvement when the necessary facts already sat together in one document. Another wiki became larger than its source material, illustrating that an elaborate memory structure can preserve too much instead of making information easier to use.

The approach builds on earlier work rather than introducing the idea of offline computation. A paper submitted by Letta and UC Berkeley researchers on April 17, 2025, proposed spending computing resources on a context before the user's next question arrives. An assistant can examine information during that interval, anticipate possible questions and prepare useful intermediate work. This moves some effort away from the moment when the user is waiting for an answer.

That paper tested modified mathematics problems, reporting roughly five times less computation at answer time for the same accuracy on two tasks. A separate setup spread preparation across several related questions and reduced average cost per query by a factor of 2.5. These results explain why background preparation attracts interest, while also exposing a condition: its effectiveness correlated with how predictable the coming questions were. Those earlier measurements do not measure Claude's new memory experiments.

Anthropic's implementation guidance predates the research article, too. A November 2 cookbook shows a developer choosing completed agent sessions, exporting their records and having analyzer agents turn them into small linked files. An organizer then merges duplicates and repairs links before later sessions read the resulting store. Developers choose the schedule and input sessions. The example is an adaptable workflow, while the separate Managed Agents Dreams capability is described as a research preview.

The cookbook gives the background workers permission to edit memory, while subsequent working sessions mount that store read-only. Its analyzers have file tools but no shell or web access, and their instructions treat transcripts as evidence rather than commands. They are also told not to copy secrets. These constraints address a practical risk: hostile instructions inside an old tool response could influence tomorrow's memory. Reviewing the resulting store remains part of the example's operating guidance.

Existing Claude Code documentation shows how a smaller memory layer works in everyday development. Each conversation starts with fresh context, with persistent project instructions and automatically written notes carrying information forward. Only the first 200 lines or 25 KB of the memory index, whichever comes first, enter the conversation automatically. More detailed topic files are opened when needed, so accumulating notes does not mean loading the entire archive before every task.

Those notes are ordinary files that people can inspect, edit or delete; the memory command also provides an on-off control. The documentation says local auto memory is shared across worktrees in the same repository but does not automatically travel between machines or cloud environments. It also distinguishes remembered context from enforced configuration. A note can guide the assistant, while a separate tool-use control is needed to block an action regardless of the model's judgment.