# Anthropic Agent Memory: How Claude Dreams to Learn

> Anthropic's Nov 6 agent memory post: Claude dreams over its logs to fix wrong notes, build wikis and keep a small always-loaded memory.

- Author: Nitish Garg, Founder & CEO, CellCog
- Published: 2026-11-06
- Canonical (HTML): https://cellcog.ai/blog/anthropic-agent-memory-dreaming/
- Section: Insights / Memory & continuity
- Publisher: CellCog (https://cellcog.ai), the AI employee platform. Blog index for agents: https://cellcog.ai/blog/llms.txt

## Key points

- Anthropic published The components of agent memory on November 6, 2026, describing how Claude keeps knowledge between sessions as files.
- Dreaming is offline time in which Claude rereads its logs to fix wrong notes, write new ones, build wikis and choose what loads next time.
- At about 10,000 steps of Pokemon Red, Sonnet 3.7 kept 413 memory files and won one badge; Fable 5 kept nine files plus one dashboard and won four.
- A wiki built over 128 dreaming sessions raised scores on 25 company questions from 13% to 48%; search plus wiki reached 61% vs 53% for search alone.
- Telling strong models to record only failures weakened them; Anthropic's rule is to say what memory is for, not how to use it.
- The always-loaded memory layer must stay small; Claude Code loads only the first 200 lines or 25 KB of MEMORY.md as an index.

## At a glance

- **What is dreaming in Claude?** Anthropic's name for offline time between sessions in which Claude rereads its logs to correct wrong memory notes, write new notes, build wiki pages and decide what gets loaded into future sessions.
- **Does more memory make agents better?** Not by volume. In Pokemon Red, Sonnet 3.7 kept 413 files and won one badge while Fable 5 kept nine files and won four. Judging what is worth saving mattered more.
- **What is Anthropic's main design rule?** Tell Claude what memory is for, but not how to use it. Fixed rules like record only failures weakened the strongest models.

Anthropic published a long engineering post on November 6, 2026, on how it gives Claude memory that lasts between sessions. The centrepiece is a process Anthropic calls dreaming: offline time in which Claude rereads its own logs, corrects notes that turned out to be wrong, builds linked wiki pages, and decides which few notes get loaded into every future session.

The most useful line in it is a design rule, not a benchmark: "We've found that it helps to tell Claude what memory is for, but not how to use it." Strong models did worse when Anthropic told them exactly what to write down.

## What Anthropic means by memory

Anthropic separates memory, knowledge Claude keeps between sessions as files it can read later, from weight changes, in-context learning and compaction. The post frames each note as a bet on the future: "Memory is, occasionally, a prediction. By writing down a rule, an agent predicts that the pattern it's describing will be relevant again."

It then splits the work in two, borrowing from how human sleep consolidates memory:

- **Writing in the moment.** During a session, Claude tags salient events and writes notes to a memory folder.
- **Dreaming afterwards.** Between sessions, Claude reflects on its logs to fix mistakes, write new notes, build representations such as wikis, and shape what is loaded next time. Anthropic credits the idea of sleep-time compute to researchers at Letta and UC Berkeley.

## Newer models write less, and better

Two tests show the change across model generations.

On the CL-Bench 1.0 database task, each question started in a fresh session with only a persistent memory folder. Sonnet 4.6 left scattered, untested guesses. Opus 4.7 consolidated one reference file. "Claude Opus 5 was the first of these models to close the loop", writing rules with how it knew they were true, plus warnings about traps. Opus 5.5 and Sonnet 5.5 closed the loop too.

In Pokémon Red, the gap was about judgment. At about 10,000 steps, "Sonnet 3.7 wrote 413 memory files across 225 folders and earned one badge." Fable 5 "wrote nine files in two folders, plus a single top-level file called global.md, and earned four badges." Sonnet 3.7 kept recording things the screen already showed, like money and map position, and spent turns maintaining notes instead of playing. Opus 5.5 kept a small folder of goals and next steps "and beat the game."

## What dreaming changed in the tests

*Table: Anthropic's memory and dreaming results (Anthropic, November 6, 2026)*

| Test | Setup | Result |
|---|---|---|
| Company corpus, 25 questions | Wiki built over 2 vs 128 dreaming sessions, wiki only | 13% to 48% of graded criteria |
| Company corpus, 25 questions | Search plus wiki, as the wiki grew | 54% to 61% |
| Company corpus, 25 questions | Search tool alone | 53% |
| Company corpus | Search plus wiki vs search alone | About 20,000 fewer tokens per question |
| Merger questions needing several documents | Wiki vs search alone | 87% vs 73% |
| CL-Bench, Sonnet 4.6 | Prompted to read memory and test its theories | Score nearly doubled |
| CL-Bench, Opus 5 and Opus 4.7 | Told to record only failures | Lost much of the memory gain |
| Shared contract-terms page | Several agents writing at once | 41 of 57 facts survived |

The company corpus was about 350,000 internal files, roughly 420M tokens, from Stainless, which Anthropic acquired in May. Over 128 sessions, Opus 5 agents explored the files, wrote and corrected linked wiki pages, merged duplicates and checked claims against the sources, coordinating through a shared log.

The wiki did not always help. On a legal brief task where most criteria could be found in a single document, it showed no clear gain over search. On another, the wiki grew larger than the documents themselves, which Anthropic compares to Borges's map as large as the empire.

## Dreaming fixes wrong notes

The clearest example is a mistake. In Pokémon, Claude wrote down that a landmark was on the east side of a mountain when it was on the west. Trusting the note, it walked off a one-way ledge three times, then wrote "I'm going to stop rather than keep looping." Anthropic then ran dreaming on that memory folder: "Dreaming gives Claude a way to test its notes against the original transcripts." Claude caught the error, rewrote the note, went back into the cave and reached the next city.

That is the case for dreaming in one run. A note written in the moment can be wrong, and a later session will trust it. The transcript is the record that lets an offline pass check it.

![Animated diagram: a memory note reads shop east side; during dreaming a magnifier checks it against the transcript line exit faces west, which turns amber; the note is rewritten to shop west side in teal, and the route with the fixed note reaches the next city while the old note's route loops three times](https://cellcog.ai/blog/media/anthropic-agent-memory-dreaming/mem-dreaming-fix.svg)
*Dreaming checks the note against the transcript, fixes it, and the next run gets through.*

## Keep the always-loaded layer small

Dreaming can also promote notes to the top of the memory hierarchy, the layer loaded into every session. Anthropic warns this has to be done carefully, since injected notes cost tokens and a wrong one travels into every session: "So the top layer of the memory hierarchy has to stay relatively small." Claude Code's own auto memory follows that rule: "It loads only the first 200 lines or 25 KB of MEMORY.md." That header works as an index pointing to the rest.

## What it means for anyone running agents

Four lessons carry over to any agent that works across many sessions:

- **Give the purpose, not a checklist.** Fixed rules about what to save weakened the strongest models.
- **Keep the record.** Dreaming only works because the transcript exists to check memory against.
- **Small top layer, links below.** What loads every time should be an index, not an archive.
- **Several writers need structure.** Many agents editing one shared page lost facts; giving each agent its own page did better, per the post.

## Where CellCog fits

Our conflict, declared: we build CellCog, an AI employee platform, and our agents run on Claude Opus 5.5. The pattern Anthropic describes is close to how our AI employees already work: each one keeps memory in its own workspace, writes a handover at the end of a working session, reviews what it learned before it stops, and starts the next session from a small set of notes that point to the full records. Anthropic's results are a useful outside check on that design, and its warning about a bloated top layer applies to us as much as anyone.

## What is not established yet

- **Product availability.** The post describes research setups on Managed Agents and Claude Code's auto memory; it does not announce dreaming as a general product feature.
- **Cost.** No figures on how much offline compute dreaming uses per session.
- **Other labs.** All comparisons are between Claude models.

## Where to watch

- Whether dreaming ships as a feature in Claude Code or Managed Agents.
- A public release of CL-Bench and the wiki evaluations.
- How Claude Duet uses memory organized around the person it helps, which the post mentions as a goal.

## Sources

- Anthropic, [The components of agent memory](https://www.anthropic.com/research/components-of-agent-memory), Engineering blog, November 6, 2026.
- [@AnthropicAI on X](https://x.com/AnthropicAI/status/2118814753154064501), November 6, 2026.
- Lance Martin, [post on X](https://x.com/RLanceMartin/status/2118815962573291545), November 6, 2026.

## FAQ

**When did Anthropic publish the agent memory post?**

November 6, 2026, on its engineering blog, under the title The components of agent memory.

**Which Claude models closed the memory learning loop?**

On the CL-Bench 1.0 database task, Opus 5 was the first, followed by Opus 5.5 and Sonnet 5.5. Earlier models left untested guesses or partial notes.

**How much did a wiki help?**

On 25 questions about a 350,000-file company corpus, search plus a Claude-built wiki scored 61% vs 53% for search alone and used about 20,000 fewer tokens per question. On some legal tasks the wiki showed no clear gain.

**Is dreaming available as a product feature?**

The post describes research setups on Managed Agents and Claude Code's auto memory. It does not announce dreaming as a general feature.

**How does CellCog handle AI employee memory?**

Each CellCog AI employee keeps memory and records in its own workspace, writes a handover at the end of a working session, and starts the next one from a small set of notes that point to the full records.

## Related

- [Project EVE: Anthropic's Claude Agents Play EVE Online](https://cellcog.ai/blog/project-eve-claude-mmorpg/index.md)
- [One Agent or Subagents? What We Learned Running AI Employees](https://cellcog.ai/blog/one-agent-or-subagents/index.md)
- [Cellular Multi-Agents: The Harness We Built for the Endgame, Not for Today's Models](https://cellcog.ai/blog/cellular-multi-agents/index.md)

## The AI employee for this read

[AI Chief of Staff](https://cellcog.ai/ai-employees/ai-chief-of-staff): I built this page. For what it covers, hire a chief of staff: it briefs you each morning and asks before anything leaves your account.

---

Markdown alternate of https://cellcog.ai/blog/anthropic-agent-memory-dreaming/. Try CellCog free, no credit card needed: https://cellcog.ai/signup
