BusinessMCP

Anthropic Tests Selective Memory and Dreaming for AI Agents

Anthropic’s research on persistent agent memory favors selective notes over exhaustive logs. Its tests also examine offline “dreaming,” which reviews past sessions to correct outdated or faulty knowledge.

BusinessMCP Newsroom4 min read
Server racks in a data center connected with blue and white network cables.
Image: rawpixel / rawpixel via Openverse (CC0)

Anthropic has published research on how Claude agents should retain information between sessions, with tests favoring selective notes and background review of past transcripts. The company describes “dreaming” as an asynchronous process that can correct mistakes and reorganize persistent memory while Claude is not actively working.

Selective memory outperformed exhaustive logs

In a Pokémon Red test, Claude Sonnet 3.7 recorded roughly 10,000 game steps and produced 413 files in 225 folders, earning one badge. The same test summary says Sonnet 3.7 created six files and deleted nine others over 17 steps while taking no in-game actions.

Claude Fable 5 used a smaller archive: nine files in two folders, plus a top-level file called `global.md`, and earned four badges. It recorded plans, strategies and tested rules rather than information already visible on the screen. The comparison covered only one playthrough per model, according to The Decoder.

Anthropic’s broader lesson was that a useful memory system does not automatically save everything. In a separate benchmark, rigid instructions such as recording only mistakes removed most of the advantage for stronger models, while older models benefited from clear directions to read their notes before responding.

For teams building persistent agents, the distinction is also architectural. Anthropic’s definition covers knowledge retained between sessions and saved as context that Claude can read later, while excluding model-weight changes, in-context learning within one conversation and compaction summaries, as detailed in TechJacks Solutions.

Memory changed from an archive to a maintained system

BeforeAfter
Sonnet 3.7 stored 413 files in 225 folders and earned one badgeFable 5 used nine files in two folders plus `global.md` and earned four badges
Faulty notes could be trusted and repeatedA dreaming pass checked a note against the session transcript and identified the wrong landmark position
Search alone scored 73 percent on a legal testAdding a wiki raised the score to 87 percent for questions spanning multiple documents
Memory could include outdated or duplicate entriesDreaming could remove duplicates and outdated entries and create a reorganized store while leaving the original untouched

Dreaming is not a real-time operation. Anthropic says it runs during idle periods and uses earlier transcripts to reconcile notes, fix errors and build new memory representations. In the Pokémon test, an incorrect note about which side of a mountain contained a landmark caused Claude to fall into the same trap three times. After a dreaming pass, Claude checked the note against the transcript and found the correct path.

The underlying idea draws on sleep-time compute research from Letta and UC Berkeley. Anthropic’s own description captures the intended role:

“This process is often called dreaming. We’ve found that dreaming has been a useful tool for helping us give Claude effective memory.” — Anthropic

Larger knowledge bases benefited from reconciliation

Anthropic tested dreaming while building a linked wiki from about 350,000 internal documents from Stainless, a software company Anthropic acquired. The process was intended to generate pages while fixing gaps, duplicates and broken links. Its results were strongest when the wiki complemented search rather than replaced it.

The reported measurements differed by task. In a legal evaluation, Claude scored 87 percent with the wiki and 73 percent with search alone, while the two approaches were roughly on par for simple lookups. In a separate wiki-building test over 128 sessions, one task improved from 13 percent to 48 percent of graded criteria.

Dreaming was introduced in May as a research preview for Claude Managed Agents, Anthropic’s cloud platform for AI agents. At launch, it supported only Claude Opus 4.7 and Sonnet 4.6. The service reads an existing memory store and up to 100 past sessions, then creates a reorganized store without changing the original.

Operators should check the maintenance burden

The research identifies several practical constraints. Taking notes during a task can distract the agent, dreaming adds compute and produces results only after a delay, and notes and wikis require regular upkeep. Loading too many memories into every session consumes context and can carry bad notes into future work.

For operators working with long-running agents, the evidence supports checking:

  • Which records are worth keeping, rather than logging every step.
  • Whether notes are read before responses and corrected against source transcripts.
  • How duplicate, outdated and unsupported entries are removed.
  • Whether a knowledge wiki complements search for multi-document questions.
  • How much context is loaded at the start of each session.

The central figure is the Pokémon comparison: nine files in two folders plus `global.md` and four badges for Fable 5 versus 413 files and one badge for Sonnet 3.7. The result comes from a single playthrough per model, but it captures Anthropic’s central finding: smaller, selected memories can outperform exhaustive archives.

Sources

All news