2026-11-26 15:49 UTC

Anthropic details Claude’s layered memory and offline “dreaming”

state: significantheat: lowuncertainty: mediumrelevance: highagent-memory agent-architecture continual-learningAnthropic

What is this?

Anthropic’s Engineering team published “The components of agent memory” on Nov. 6, 2026, describing how it organizes Claude’s information between sessions. The proposed hierarchy runs from searchable session transcripts to Claude-written memory notes, synthesized representations such as linked wikis, and a small amount of context injected into future sessions. An offline process Anthropic calls “dreaming” can review transcripts, correct notes, build or maintain representations, and decide what to promote. Anthropic reports experiments using Claude Managed Agents and internal document collections; this is a research account of an approach and its evaluations, not evidence that every part of the architecture is a newly released general-purpose feature. The supplied web results offer no substantial independent validation; they include older, loosely related material.

Why it matters

Layered memory and selective consolidation could make agents more useful across sessions without changing model weights; the approach and reported task gains are still company-described, with real-world reliability, costs, and availability unresolved.

Current assessment

Anthropic’s Nov. 6, 2026 Engineering post describes a layered agent-memory approach: searchable session transcripts, written notes, synthesized representations such as wikis, and selected context injected into later sessions. An offline process it calls “dreaming” can review and correct memories and maintain representations. Anthropic reports improvements on selected long-horizon and cross-document evaluations, including gains from persistent memory and selective consolidation; these are company-run results, not independent validation. The post describes an approach and links cookbooks, but does not establish broad availability of the full architecture as a product feature. Memory can be wrong, stale, oversized, or costly to maintain, and synthesized representations do not help every task. A second Hacker News discussion grew substantially, but offers reactions rather than new implementation evidence; current measured engagement is zero and below its peak. Follow-up questions remain independent reproduction, real-world error rates, maintenance costs, and product availability.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 506h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-05 13:00⭐ origin echo-reconstructedAnthropic’s article presents its own research and evaluations of agent memory, with the framing: “Dreaming gives Claude an opportunity to lo
Anthropic on blog (echo) · attributed from hn.story.50398678
—
11-06 21:19first on hacker news · published · +32.3hThe Components of Agent Memory
mfiguiere
—
11-06 21:19amplified on hacker newshn.story.50398678
mfiguiere
peak 8 · 0 comments · 3% of case engagement
11-07 06:39amplified on hacker news 👑hn.story.50402212
geoffbp
peak 190 · 105 comments · 97% of case engagement
11-06 21:20our radar first saw it · +32.3hdiscovery anchor: hn.story.50398678—
pace: p87 vs 1845 stories at the 336h mark (now 506h old) — ahead of tinyworldformer-pico-world-model (1.0x), behind momentic-agentic-app-testing-launch (1.0x)

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnThe Components of Agent Memory
Retrieved article excerpt

Open article · Retrieved 2026-11-06T21:21:48.018684+00:00

# The components of agent memory

Illustration of two offset half circles with a grid pattern, one green and one pink, facing each other across a gap on a light blue background.

- Published

  Nov 6, 2026
- Team

  [Engineering](https://www.anthropic.com/engineering)

Søren Kierkegaard wrote that life can only be understood *backward*, but it must be lived *forward*. We’ve encountered a similar bind when designing memory for AI agents.

As humans, we encode memory constantly as we go about our lives. [The hippocampus](https://stanford.edu/~jlmcc/papers/McCMcNaughtonOReilly95.pdf) plays a central role in this, capturing experiences in the moment so that memories form quickly and are immediately available. But only [some experiences](https://www.science.org/doi/10.1126/science.adk8261?referrer=https%3A%2F%2Fwww.google.com%2F) are consolidated into long-term knowledge.

Much of that consolidation appears to happen when our brains are offline. As we sleep, and during quiet [rest](https://www.nature.com/articles/s41467-018-06213-1), the hippocampus replays our recent experiences. This is thought to gradually distill [those experiences and integrate them](https://www.nature.com/articles/s41593-019-0467-3) into the neocortex—the part of our brains that stores most of what we think of as knowledge.

Agent memory can use a similar division of labor. Agents capture much of their work in logs or transcripts. Researchers at Letta and UC Berkeley proposed [sleep-time compute](https://arxiv.org/abs/2504.13171) as a way for models to use idle time between interactions to reorganize their existing context. The same idea can help agents organize their memory by reflecting on logs to fix mistakes or produce new notes and representations. This process is often [called](https://platform.claude.com/docs/en/managed-agents/dreams) [*dreaming*](https://research.google/blog/the-sleep-framework-a-new-way-for-llms-to-retain-knowledge-in-continual-learning/) (Figure 1).

We’ve found that dreaming has been a useful tool for helping us give Claude effective memory. In this post, we share how we’ve come to think about agent memory and walk through several evaluations we’ve used to explore agent memory, including the use of dreaming, and what each component contributes to memory organization.

Diagram of a memory hierarchy between one session and the next. From bottom to top: transcripts (a searchable event log), memory notes written by Claude, memory representations such as wikis, and injected context loaded into every session. Inside a box labeled “Dreaming,” arrows run from transcripts up to each layer, and in both directions between neighboring upper layers.

Claude can use dreaming to organize memory. This can correct mistakes, create notes, build new memory representations, or shape what’s preemptively loaded into future sessions.

### Memory notes

By “agent memory,” we mean knowledge that Claude gains from experience—including interactions with users and tasks it’s been assigned—and that it retains between sessions, saved as context it can read later. It excludes other ways models can learn or manage context, such as changes to their *weights* (the internal parameters set during training), [*in-context learning*](https://www.anthropic.com/research/in-context-learning-and-induction-heads) (knowledge gained within a single conversation), and [*compaction*](https://platform.claude.com/docs/en/build-with-claude/compaction) (summaries written by Claude that replace its older turns so it can continue working in a new context window).

In the human brain, chemical signals released before, during, or after an experience can [mark a memory](https://www.nature.com/articles/385533a0) as important. Marked memories tend to be replayed more often than unmarked ones during offline periods. This process, called *replay*, helps stabilize and integrate them into long-term memory.

Similarly, Claude can tag salient events in a session log as they happen, so they’re easier to find later, or it can [write](https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool) them to a memory store, such as a folder of memory notes (Figure 2). But how can Claude tell what’s salient in the moment, before it knows what’s coming next?

The same memory hierarchy, with the memory notes layer highlighted. An arrow runs from the session directly to the memory notes, described as salient observations written by Claude.

Claude can write notes to memory.

### Memory can be a prediction about what the future will need

Memory is, occasionally, a prediction. By writing down a rule, an agent predicts that the pattern it’s describing will be relevant again. For instance, writing down a verified fact is a prediction that an agent in a future session will want to rely on that fact without double-checking it. Over time, Claude has become much better at making these kinds of predictions.

Consider a task from [Continual Learning Bench (CL-Bench) 1.0](https://continual-learning-bench.com/news/cl-bench-1-0/), a benchmark that measures an agent’s ability to use memory in order to tackle long-horizon tasks. One particular task asks Claude to answer a series of questions by looking up information in a database. After Claude gives an answer, it’s told the correct solution and can write a memory to help answer future questions.

Memory can support a learning loop here. If Claude gets a question wrong, it can record the failure, come up with theories about what went wrong, test those theories, and turn what it finds into a rule about how to answer in the future.

We ran the CL-Bench 1.0 task using [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview). Claude started each question in a fresh session, with one exception: it could retrieve files from a [memory directory](https://platform.claude.com/docs/en/managed-agents/memory) that persisted from one session to the next.

Different models achieved different levels of success at creating their own learning loops. Claude Sonnet 4.6 got as far as generating theories about why an answer was wrong. Its memory directory contained a scattering of files, each listing several untested guesses.

Left: bar chart of mean reward on the CL-Bench database task, stateless baseline versus memory store. Opus 5.5: 0.655, 0.838. Sonnet 5.5: 0.644, 0.833. Opus 5: 0.564, 0.828. Opus 4.7: 0.383, 0.700. Sonnet 5: 0.306, 0.610. Sonnet 4.6: 0.330, 0.364. Right: line chart of running-mean reward over 30 questions for the same models, with and without memory.

CL-Bench database task, comparing memory with a stateless baseline across models.

Claude Opus 4.7 consolidated its notes into a single reference document and began marking which facts it had checked and which were still unconfirmed. Claude Sonnet 5 marked each answer as confirmed after the grader had checked it, and wrote a correction when it had answered wrong.

Claude Opus 5 was the first of these models to close the loop. Most of its entries included a rule (and also how it knew the rule was true), answers to earlier questions, and clear warnings about traps it had discovered along the way (Figure 3).

Like Opus 5, Claude Opus 5.5 and Claude Sonnet 5.5 both closed the loop, using memory to capture validated rules about how to best answer future questions. With memory, both scored about the same as Opus 5, though their baseline performance without memory was slightly higher.

### Claude has learned to judge salience

We also evaluated Claude’s ability to play *Pokémon Red*, a game that [challenges Claude to navigate](https://www.youtube.com/watch?v=CXhYDOvgpuU) complex long-horizon tasks, as a test of Claude’s judgment about *what* to save to memory. At the start of each run, we gave each model a folder of memory files that it could read from and write to while it played (Figure 4).

We compared the memory folders from one run each of Claude Sonnet 3.7 and Claude Fable 5, when each was about 10,000 steps into the game. A key difference we noticed was what each model thought was worth remembering. Sonnet 3.7 assumed everything might matter and wrote to memory indiscriminately. Its memory folder contained an archive of encounters, often with a separate file for each battle it fought, each item it found, and each non-player character it met. Ultimately, Sonnet 3.7 wrote 413 memory files across 225 folders and earned one badge (badges mark a player’s progress through the game).

Fable 5, by comparison, wrote nine files in two folders, plus a single top-level file called `global.md`, and earned four badges.

Two treemaps of Pokémon memory directories at the same scale, where area shows characters of memory. Claude Sonnet 3.7’s is large and crowded, with 413 files and 977,930 characters across folders such as locations, main, battles, and several “consolidated” folders. Claude Fable 5’s is small, with 10 files and 43,406 characters in locations, gameplay, and global.md.

Claude’s memory directories for Sonnet 3.7 versus Fable 5 while playing Pokémon.

Sonnet 3.7’s approach was a problem mainly because the game state of Pokémon changes constantly—Sonnet 3.7’s detailed record was continuously going out of date. As a result, as Claude progressed, it had to spend more time and resources combing through its memories rather than playing the game. Around step 10,000, for example, Sonnet 3.7 started its fourth folder of “master” memory files. Over the next 17 steps, it created six files, deleted nine others, and took no actions in the game itself.

Fable 5’s approach used memory for things the game didn’t explicitly tell it. Some of the kinds of information Sonnet 3.7 wrote to memory—such as how much money the player has or where the player is on the map—can be read off the screen every turn, so storing it is redundant. By contrast, memory files about strategy, plans, and tested rules exist only if Claude works them out, and they disappear unless Claude writes them down.

Fable 5 organized its memory accordingly. Its `global.md` file acted as a dashboard, holding the current goal, a prewritten plan for tackling gyms (the challenges where badges are won), and the model’s own rules for using memory. A `locations` folder held plans for navigating particular routes, and a `gameplay` folder held strategies based on what it had learned about how the game works. For example, after seven Poké Balls in a row failed to catch a Magikarp (one of the easiest Pokémon to catch), Claude wrote, “If 3+ balls fail in a row, VARY the timing (insert extra ‘wait’ presses between menu steps) - the catch landed right after doing this.”

With a much smaller memory folder, Fable 5 progressed much further in the game than Sonnet 3.7. Opus 5.5 took a similar approach: it kept a small folder of memory notes that tracked its current goal and next steps, rewrote them as it played, and beat the game.

### Steering Claude to write memory

We’ve found that it helps to tell Claude what memory is for, but not *how* to use it. On CL-Bench, we simply told Claude that a memory folder was available. That general guidance was enough for Opus 4.7 and Opus 5 to use memory effectively, and it gave both a noticeable boost in performance (Figure 3).

We also tested giving the models specific rules about what they should write to memory, with one rule per test. We compared how much each model gained from memory with each rule against how much it gained without it. When we set a rule to “record only failures,” both Opus 5 and Opus 4.7 lost much of the performance boost that memory gave them (Figure 5, right). For stronger models, giving them freedom to judge salience was more effective than setting fixed rules in advance, and those rules could end up weakening performance.

Left: bar chart of Sonnet 4.6’s mean reward on the CL-Bench database task: 0.330 at baseline, 0.364 with memory, and 0.641 with memory and refined instruction. Reference lines mark Opus 4.7 with memory at 0.700 an
mfiguiere80
🟧 echo.blog ⭐Anthropic’s article presents its own research and evaluations of agent memory, with the framing: “Dreaming gives Claude an opportunity to loAnthropic——
🟧 hnThe Components of Agent Memorygeoffbp190105

Interpretation history

Decision trace