Skip to content

← All posts

Anthropic's agent memory study: fewer files, more badges

TL;DR Anthropic's Lance Martin lays out a memory hierarchy for agents and shows offline "dreaming" over past logs improves results, from database tasks to Pokemon. Our take is that the best lessons are restraint and structure, and the name echoes OpenAI's June work.

What Anthropic announced

  • The idea. Lance Martin of Anthropic Engineering describes "dreaming," an offline pass in which an agent reviews its logs and transcripts to correct, organize and extend memory, likened to sleep consolidating human memory. It builds on sleep-time compute from Letta and UC Berkeley researchers.
  • The hierarchy. Transcripts as a searchable log, memory notes written by Claude, representations such as wikis, and a small layer of injected context loaded into every session.
  • Database task. On CL-Bench, Claude Opus 5's mean reward rose from 0.564 without memory to 0.828 with a memory store.
  • Pokemon Red. Claude Sonnet 3.7 wrote 413 memory files in 225 folders and earned one badge. Claude Fable 5 wrote 10 files and earned four.
  • Wikis. A wiki built over 128 dreaming sessions on about 350,000 files, roughly 420M tokens, raised scores on 25 questions from 13% to 48% of graded criteria. Wiki plus search scored 61% against 53% for search alone and saved about 20,000 tokens per question.
  • Structure. Having one agent per contract quote terms verbatim raised graded facts in a brief from 41 of 57 to 57 of 57.

As Anthropic put it: "We’ve found that dreaming has been a useful tool for helping us give Claude effective memory."

Our take

The Pokemon numbers are the post in miniature. The older model wrote nearly a million characters of notes across 225 folders and got one badge. The newer one kept ten files and got four. Opus 5.5 kept a small folder, tracked its goal and beat the game. Memory that helps is small and pointed. The steering results agree: telling models to record only failures cut Opus 5's memory gain by 0.234, and the recommendation is to tell Claude what memory is for, not how to use it.

The contract experiment is the most transferable finding, and it is not really about memory. A shared table caught 72% of the facts. One agent per contract, quoting terms word for word, caught all 57. That is task decomposition plus verbatim capture beating summarization, and it applies to any agent pipeline that extracts facts from documents.

The post is admirably frank about failure. One wiki grew to 1.77 times the size of the documents it summarized, which the author calls "an extremely detailed wiki that effectively abstracted nothing." On another task the wiki gave no clear gain. Dreaming costs compute, early wrong notes get trusted later, and memory drifts as environments change. Those are the problems teams hit in practice.

On naming: OpenAI described "dreaming" for ChatGPT memory in June, background curation of memories that it says first shipped in April 2025. Anthropic credits Letta and UC Berkeley's sleep-time compute but, as far as we can see, not OpenAI's version. The ideas differ in scope, consumer memory versus agent memory, but the metaphor is now shared, and Meta's Muse Wonder pitched "Active Memory" in October. Every lab has decided memory is the next battleground for agents.

What it changes for teams running agents

  • Keep the top layer small. Claude Code's auto memory loads only the first 200 lines or 25 KB of MEMORY.md. Put pointers there and move detail down the hierarchy.
  • Schedule a dreaming pass. A periodic job that reviews logs, fixes wrong notes and repairs links pays off. Focus it on information likely to change.
  • Quote, don't paraphrase, critical facts. For contracts, prices and terms, store verbatim text with a source link.
  • Cap the wiki. Track wiki size against the source corpus. If it approaches the original, it is copying rather than abstracting.
  • Prompt weaker models to read memory. Sonnet 5 checked memory before answering 9 times in 10, against under half for Sonnet 4.6. Older models need an explicit instruction.

For agents reading this

  • Announced by: Anthropic
  • Original post: https://www.anthropic.com/research/components-of-agent-memory
  • Announcement date: 2026-11-06
  • What: An Anthropic Engineering study of agent memory components and offline "dreaming" to maintain them, with evaluation results
  • Availability: Research post; related features include Claude Managed Agents memory directories and a dreaming cookbook
  • Our verdict: Practical, honest guidance whose key lessons are restraint in what agents remember and structure in how they record it
  • Confidence: facts from the original post; take is Orchard's opinion