Research12 min read

Dreaming Agents: What Anthropic's Agent Memory Research Measured, and Where Its Limits Are

Anthropic says Claude agents can use offline 'dreaming' to correct and organise their memory between sessions. We look at what its tests actually measured, from Pokémon runs to a 350,000-file wiki, and why search still matters.

Most AI agents still start every session with a blank slate. They can be brilliant inside one conversation and then forget everything the moment it ends, unless someone has built a way for them to carry knowledge forward. On 6 November 2026, Anthropic published a long research post, "The components of agent memory", setting out how it thinks about that problem for Claude and sharing results from several internal evaluations. The idea at the centre of it has an appealing name: dreaming.

This article walks through what the post actually describes, what the numbers measure, where the approach came from, and where its limits are. The figures here come from Anthropic's own write-up of its own experiments. They have not been independently reproduced, and several of them rest on small question sets, so they are best read as evidence of direction rather than settled benchmarks.

What Anthropic means by agent memory

The post is careful to draw a narrow boundary. By "agent memory", Anthropic means knowledge Claude gains from experience, such as interactions with users or tasks it has been given, that it keeps between sessions as context it can read later. It explicitly excludes three other things people sometimes lump in with memory: changes to the model's weights during training, in-context learning that only lasts for one conversation, and compaction, where Claude summarises older turns so it can keep working in a fresh context window.

That definition matters for reading the rest of the post. Nothing here involves the model retraining itself overnight. Memory, in this sense, is a set of files, notes or records that an agent writes and later reads. The question Anthropic is asking is how an agent should decide what to write, how those notes should be organised, and how they should be kept accurate as they pile up.

The human analogy, and the earlier research behind it

Anthropic frames its approach with a comparison to the brain. People encode memories constantly while awake, with the hippocampus capturing experiences as they happen, but only some of those experiences are consolidated into long-term knowledge. Much of that consolidation is thought to happen offline, during sleep and quiet rest, when recent experiences are replayed and gradually integrated.

The post maps this onto agents. An agent records its work as it goes, in logs, transcripts or quick notes. Later, in a separate pass, it reviews those records to fix mistakes, merge duplicates and build better-organised notes. That second pass is what Anthropic calls dreaming.

The company credits the underlying idea to earlier work. In April 2025, researchers from Letta and the University of California, Berkeley published "Sleep-time Compute: Beyond Inference Scaling at Test-time". That paper proposed letting models "think" offline about a context before any question arrives, by anticipating likely queries and precomputing useful inferences. On modified versions of two maths reasoning tasks, the authors reported that this cut the compute needed at question time by about five times for the same accuracy, and that spending more compute while idle raised accuracy by up to 13% on one task and 18% on the other. They also found the approach worked best when the user's next question was predictable. Letta's own write-up described shipping "sleep-time agents" in its framework, where a separate background agent manages the main agent's memory.

Anthropic's post extends the same principle from precomputing answers to maintaining a whole memory store over time.

Memory as a prediction

One of the more useful ideas in the post is that writing a memory is a kind of bet. When an agent writes down a rule, it is predicting that the pattern will matter again. When it records a verified fact, it is predicting that a future session will want to rely on that fact without checking it again.

Anthropic tested how well different Claude models make those bets using a database task from Continual Learning Bench (CL-Bench) 1.0, a benchmark for agents that must use memory over long-horizon work. In the task, Claude answers a series of questions by looking things up in a database. After each answer, it is told the correct solution and can write a memory note. Each question starts in a fresh session, and the only thing that carries over is a memory folder.

The post describes a clear progression across model generations. Claude Sonnet 4.6 got as far as writing theories about why an answer was wrong, leaving a scattering of files full of untested guesses. Claude Opus 4.7 consolidated its notes into a single reference document and began marking which facts had been checked. Claude Sonnet 5 marked answers as confirmed once the grader had checked them and wrote corrections when it was wrong. Claude Opus 5, according to Anthropic, was the first to "close the loop": most of its notes contained a rule, how it knew the rule was true, answers to earlier questions and warnings about traps it had found. Opus 5.5 and Sonnet 5.5 also closed the loop.

Knowing what is worth remembering

The second test was more playful. Anthropic has for some time had Claude play the 1990s game Pokémon Red as a test of long-horizon behaviour, and here it compared the memory folders of two models roughly 10,000 steps into a run.

Claude Sonnet 3.7 treated everything as potentially important. It wrote 413 memory files across 225 folders, often a separate file for every battle, item and character it met, and had earned one badge. Claude Fable 5 wrote nine files in two folders plus a single top-level file called global.md, and had earned four badges. These are single runs per model, so they illustrate a pattern rather than prove a rate.

The reason for the gap is instructive. Much of what Sonnet 3.7 stored, such as the player's money or map position, could be read straight off the screen every turn. Storing it was redundant, and because the game state changed constantly, the records kept going out of date. At one point, the post says, Sonnet 3.7 spent 17 steps creating six files and deleting nine others without taking a single action in the game. Fable 5 instead kept notes on things the game never states directly: its current goal, a plan for the gyms where badges are won, and rules it had tested for itself. Anthropic says Opus 5.5 took a similar compact approach and went on to beat the game.

The lesson generalises well beyond games. An agent's memory is most valuable for knowledge that only exists because the agent worked it out, and least valuable for information it can simply look up again.

Telling the model what memory is for, not how to use it

Anthropic also tested how much guidance to give. On CL-Bench, simply telling Claude that a memory folder existed was enough for Opus 4.7 and Opus 5 to use it well and gain a noticeable boost. When the team imposed a fixed rule, "record only failures", both models lost much of the benefit memory had given them.

Older models were different. Sonnet 4.6 often did not read its memory folder at all and did not test its theories. Prompting it to read its memory before answering and to test those theories explicitly nearly doubled its score on the benchmark. Sonnet 5, by contrast, read its memory before answering nine times out of ten without being asked, compared with less than half the time for Sonnet 4.6.

For anyone building agents, the practical reading is that rigid memory rules can help weaker models but may hold back stronger ones. Anthropic says that with its frontier models it now typically gives only simple guidance and leaves the judgement about what to remember to Claude.

How dreaming corrects mistakes

The core problem dreaming addresses is that a note written in the moment can be wrong from the start, or can become wrong as the world changes, and a later session may trust it anyway. Dreaming gives the agent a chance to check its notes against the original transcripts.

The post's example again comes from Pokémon. Near the entrance to Mt. Moon, a cave the player must cross from west to east, there is a one-way ledge that drops the player back onto the route they came from. Claude had wrongly noted that a nearby building used as a landmark was on the east side of the mountain. It then announced that Mt. Moon was behind it, marked the cave as done, walked off the ledge, and misread where it was.

When Anthropic ran dreaming on that memory folder, Claude compared the note with the session transcript, spotted the error and rewrote it. With the corrected note, Claude went back into the cave and reached the next city. In the run with the uncorrected note, it fell back onto the earlier route three times, then retreated to the previous town and never got past the mountain. A run with no memory at all did not get past it either.

Building a map: the wiki experiment

The headline numbers in the post come from a test of whether dreaming can build new ways to organise memory. Anthropic had Claude build a wiki, a set of linked pages that each gather what Claude knows about one subject.

The corpus was a large set of internal documents, about 350,000 files and roughly 420 million tokens, from Stainless, a software company Anthropic says it acquired in May. The team wrote 25 questions about the corpus and gave Claude a search tool. Over 128 sessions, Opus 5 agents explored the files, wrote or corrected linked wiki pages, merged duplicates and checked claims against the sources, using a shared log to coordinate.

The results, as reported by Anthropic, were:

  • Wiki only, after two sessions: 13% of graded criteria met.
  • Wiki only, after 128 sessions: 48%.
  • Search tool alone: 53%.
  • Search plus the wiki: rising from 54% to 61% as the wiki grew, while using about 20,000 fewer tokens per question.

The tempting headline is the jump from 13% to 48%. The more important number is arguably that even after 128 sessions, the wiki on its own still scored below plain search. The wiki was most useful as a guide that sat alongside search, not as a replacement for it. That fits Anthropic's own description: early on, the wiki is like a new employee's knowledge, and it becomes more useful as it matures, but the source documents remain the ground truth.

It is also worth keeping the scale in proportion. Twenty-five questions is a small evaluation set, and the grading counts criteria met rather than whole questions answered correctly.

When maps help and when they do not

To see which kinds of tasks benefit, Anthropic used two more document sets: the Harvey LAB benchmark, where Claude writes legal briefs from a set of documents and is graded against a checklist, and a collection of documents about a merger.

On 24 questions about the merger, more than half required combining information from several documents, and many required judgement or arithmetic. On those harder items, Claude scored 87% with the wiki compared with 73% using search alone.

On one LAB task where most criteria could be found in a single document with a text search, the wiki showed no clear gain. On another, the wiki ended up larger than the documents it was meant to summarise. Anthropic compares this to the Borges story about mapmakers who draw a map as large as the empire itself, a map that "effectively abstracted nothing". It is a candid admission that a memory system left unchecked can simply recreate the pile of information it was meant to organise.

Telling dreaming what matters

One of the clearest results concerns instructions. In a simulated acquisition task from the LAB benchmark, the brief is graded on whether it describes contract terms correctly. With basic wiki-building instructions, several agents wrote to one shared table of contract terms at the same time and overwrote each other's work. A brief generated from that wiki included 41 of 57 graded facts, or 72%.

Anthropic then ran a loop in which Claude reflected on its failures, proposed changes to the wiki-building instructions and rebuilt the wiki. The revised approach gave each contract its own page, written by a single agent, quoting terms word for word rather than summarising them into a shared table. A brief generated from the new wiki met all 57 criteria.

The practical lesson is familiar to anyone who manages shared documents: parallel writers on one page lose information, and summaries lose the exact wording that legal or contractual work depends on.

What gets loaded at the start of each session

The post also covers a quieter part of memory design: which notes are loaded automatically at the start of every session. Dreaming can promote important notes to the top of a memory hierarchy, so an agent sees them without needing to search, or even knowing to search.

Anthropic is cautious here. Loaded memories use up context, an incorrect note can be carried into every session, and loading a note does not guarantee the model follows it. The company points out that its Claude Code documentation already warns that longer instruction files reduce adherence. Its own Claude Code auto memory loads only the first 200 lines or 25 KB of a MEMORY.md file, which works as an index pointing to everything else. Much of dreaming's job at this level, the post says, is keeping the top layer small by pushing detail further down and leaving links behind.

The open questions

The post ends with problems rather than a finished design. Writing notes during a task captures what seems important at the source but distracts the agent from its main work. Pushing memory creation into background dreaming avoids that distraction, but the results may not be available straight away.

Keeping memory current is also expensive. Dreaming costs compute, and checking every memory continuously may not be practical. Anthropic suggests focusing dreaming on information likely to change, or tuning how often it runs based on how often memories are used. It also notes that transcript search could reasonably be treated as the foundation of memory, with structures like wikis layered on top, but that any such structure has to be maintained so it does not accumulate errors or hallucinations.

What this means for people building with AI agents

Several practical points come out of the post, even for teams that do not use Claude:

  • Store what cannot be looked up again. Tested rules, decisions and lessons are worth keeping. Facts that can be re-read from a screen, file or database usually are not.
  • Keep the always-loaded layer small. A short index that points to detail is more reliable than a long file that tries to hold everything.
  • Check notes against the record. A periodic pass that compares memory with original logs can catch errors before they repeat across many sessions.
  • Do not throw away search. In Anthropic's tests, organised notes worked best alongside direct search of the source material, not instead of it.
  • Be specific about what matters. When exact wording or figures are important, tell the agent to quote rather than summarise, and avoid many agents editing one shared page.

The bottom line

Anthropic's dreaming post is less a breakthrough announcement than a practical field report on a problem every agent builder runs into. Its strongest evidence is qualitative: stronger models make better choices about what to remember, rigid rules can backfire, and a background review pass can catch mistakes that would otherwise repeat. Its numerical results are encouraging but narrow, drawn from small internal question sets, single game runs and company-chosen tasks, and the best-known figure, a wiki rising from 13% to 48%, still sits below plain search on its own.

The direction is clear, though. As agents run for longer and across more sessions, the hard part is shifting from what a model can do in one conversation to what it can reliably carry into the next. Anthropic's answer, for now, is a mix of careful note-taking, regular offline review and a healthy respect for the original source material.

Sources

  1. The components of agent memory (Anthropic)anthropic.com
  2. Sleep-time Compute: Beyond Inference Scaling at Test-time (arXiv)arxiv.org
  3. Sleep-time Compute (Letta)letta.com