News · 11 min read

Claude Memory: Anthropic Shows How Its AI Agents Dream

On 6 November 2026, Anthropic shared new research on Claude memory for AI agents [AI that works through tasks step by step on its own]. The post explains how Claude keeps notes between sessions and reads them again later.

Its main idea is called dreaming, where Claude goes back over old work logs between tasks to fix wrong notes. This piece settles two points: whether dreaming really fixes those notes in Anthropic's tests, and what agent memory keeps about your data.

Below, we cover what Anthropic tested and the scores it reports.

Executive Summary

  • Anthropic's 6 November 2026 post explains how Claude saves notes in one session and uses them in the next.
  • Dreaming lets Claude check its saved notes against old work logs and fix the ones that are wrong.
  • In one Pokémon run each, Claude Sonnet 3.7 wrote 413 memory files and earned one badge [a mark of progress in the game], while Claude Fable 5 wrote nine files and earned four.
  • On merger questions that needed several documents, a wiki [a set of linked pages that Claude writes and keeps up to date] built by dreaming lifted scores from 73% to 87%.
  • Anthropic's own docs say its hosted memory stores and dreams are not eligible for zero data retention [an arrangement some business customers can request, under which Anthropic does not store their prompts and answers after a request].
  • Elephas keeps your documents on your computer and hides names, email addresses and phone numbers there before a question goes to a cloud model.

How Claude memory works for agents, according to Anthropic

Anthropic's research post, "The components of agent memory", was written by Lance Martin and published on 6 November 2026.

Anthropic's diagram of Claude memory layers between sessions: work logs, memory notes, linked pages, and notes loaded into every session
Anthropic's diagram of Claude memory layers between sessions: work logs, memory notes, linked pages, and notes loaded into every session

Image source: Anthropic

By agent memory, Anthropic means what Claude learns from its work and from the people it helps, saved as notes it can read in a later session. A session is one stretch of work, and each new session starts fresh. Our piece on Claude Projects covers how saved context works in the Claude app.

The post compares this to the human brain. People take in new memories during the day, and much of the sorting seems to happen during sleep. Anthropic says agents can split the work in the same way.

What Claude saved to memory in Anthropic's game test

Anthropic says Claude has become much better at choosing what is worth saving.

Anthropic's chart of the Pokémon memory folders of Claude Sonnet 3.7 and Claude Fable 5, drawn at the same scale
Anthropic's chart of the Pokémon memory folders of Claude Sonnet 3.7 and Claude Fable 5, drawn at the same scale

Image source: Anthropic

In one test, Claude played the game Pokémon Red with a memory folder it could read and write. Anthropic compared one run each of two models. About 10,000 steps in, Sonnet 3.7 had written 413 memory files across 225 folders and earned one badge.

Fable 5 wrote nine files in two folders, plus one top file called global.md, and earned four badges. Anthropic says the older model saved things it could already see on screen, so its notes kept going out of date.

Why a fixed memory rule cut the gain for stronger models

Anthropic found it helps to tell Claude what memory is for, and not how to use it.

Anthropic's charts of Sonnet 4.6 scores on CL-Bench with and without memory guidance, and how the record only failures rule cut each model's gain
Anthropic's charts of Sonnet 4.6 scores on CL-Bench with and without memory guidance, and how the record only failures rule cut each model's gain

Image source: Anthropic

On that same CL-Bench test, Anthropic says it simply told Claude that a memory folder was there. For Opus 4.7 and Opus 5, that was enough to use memory well and raise their scores.

When Anthropic added a fixed rule to "record only failures," both models lost much of the gain that memory had given them.

How Claude dreaming fixed a wrong note in a game test

Anthropic's first dreaming example comes from the same Pokémon game, where one wrong note kept sending Claude the wrong way.

Anthropic's Pokémon map showing Claude at the ledge with the wrong note and with the note fixed by dreaming
Anthropic's Pokémon map showing Claude at the ledge with the wrong note and with the note fixed by dreaming

Image source: Anthropic

In that run, Claude wrote down that a key building sat on the wrong side of a mountain cave. Trusting that note, it walked off a one-way ledge and landed back on a route it had already passed.

With the wrong note, Claude fell back onto that route three times and the run ended before the next city, Anthropic reports. After dreaming, Claude checked the note against the log, rewrote it, went back into the cave, and reached the next city.

Dreaming built wikis that helped on some questions

Dreaming can also build a wiki to help Claude find what it knows. On merger questions that needed several documents, Anthropic's research found the wiki lifted Claude's score from 73% to 87%.

Anthropic's chart of Claude's scores on 25 questions as the dreaming wiki grew, with example wikis after two and 128 sessions
Anthropic's chart of Claude's scores on 25 questions as the dreaming wiki grew, with example wikis after two and 128 sessions

Image source: Anthropic

Anthropic says it tested this on about 350,000 internal files, roughly 420 million tokens [small pieces of text that AI models read], from Stainless, a software company it bought in May. Opus 5 agents built the wiki over 128 sessions.

As the wiki grew from two sessions to 128, the share of graded points Claude met on 25 questions rose from 13% to 48%. With search and the wiki together, the score rose from 54% to 61%.

In a contract test, the wiki first kept 41 of 57 graded facts, or 72%, and all 57 after Claude rewrote its own wiki instructions.

TestWithout the wikiWith the wiki
Stainless questions, search plus wiki53% (search only)61%
Merger questions that needed several documents73% (search only)87%

What Claude memory means for your data

Anthropic's docs set out where Claude memory notes are kept and which data rules apply to them.

What Anthropic's docs say each Claude memory option keeps and where
What Anthropic's docs say each Claude memory option keeps and where

For agents Anthropic hosts, memory is kept in memory stores. The memory store docs mark these as not eligible for zero data retention or HIPAA [the US health privacy law] cover, and the dreams docs say the same for dreams.

The same docs warn about prompt injection [hidden instructions placed in web pages or files]. If an agent reads untrusted content, an attack could write bad notes into its memory, and later sessions would trust them. Our report on AI agent security risks covers more of these attacks.

Elephas keeps your documents on your computer

Elephas is a private AI app for your documents, and your documents stay stored on your computer. With cloud AI tools such as ChatGPT and Claude, your questions and uploads go to the provider's servers. Our piece on Claude shared chats covers how some of those chats ended up on Google.

What leaves your computer on each Elephas route
What leaves your computer on each Elephas route

When you use a cloud model through Elephas, it hides names, email addresses and phone numbers on your computer before the question goes out, then puts them back in the answer. Our guide to what PII is covers these personal details in more depth. You can see what was hidden under every answer.

Conclusion

Anthropic ends its post with problems it has not solved yet. Saving notes during a task pulls Claude's attention away from the work, while dreaming happens later, so its fixes may not be ready straight away. Keeping memory correct also costs computing power, so Anthropic suggests aiming dreaming at notes that are likely to change.

It also suggests tuning how often dreaming runs, based on how often each note is read. Anthropic adds that no model can really know what future sessions will need.

FAQ

What is Claude memory?

Claude memory is a set of notes Claude saves from its work and reads again in a later session. Anthropic says it covers what Claude learns from tasks and from the people it helps, kept outside the model itself.

What is Claude dreaming?

Dreaming is a separate pass where Claude reads its past work logs next to its saved notes. It merges repeated notes, fixes wrong ones, and can build linked pages that make memory easier to search.

Is Claude agent memory covered by zero data retention?

Not the hosted kind. Anthropic's docs mark memory stores and dreams for Claude Managed Agents [Anthropic's service for running agents on its servers] as not eligible for zero data retention or HIPAA cover. Zero data retention is an arrangement some business customers request, not a setting every user has.

The separate memory tool is marked eligible for both, except with some models Anthropic names in its docs, because the developer keeps the files wherever they choose.

Can I use Claude dreaming today?

Dreams are a research preview for Claude Managed Agents, and developers need to request access. Anthropic has also shared cookbook guides [step-by-step code examples] for getting started with dreaming and knowledge wikis.

What did Anthropic test Claude memory on?

Anthropic used the game Pokémon Red, a database question test called CL-Bench 1.0, and about 350,000 internal files from Stainless. It also used legal tasks from the Harvey LAB benchmark [a test that grades legal briefs written from a set of documents].

Selvam Sivakumar
Written by

Selvam Sivakumar

Founder, Elephas.app

Selvam Sivakumar is the founder of Elephas and an expert in AI, Mac apps, and productivity tools. He writes about practical ways professionals can use AI to work smarter while keeping their data private.

← Back to Resources