cd /news/ai-agents/anthropic-s-dreaming-feature-how-cla… · home › topics › ai-agents › article
[ARTICLE · art-176712] src=mindstudio.ai ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Anthropic's 'Dreaming' Feature: How Claude Cleans Up Its Own Memory

Anthropic's research-preview "dreaming" feature rewrites an AI agent's stored memory notes, merging duplicates, correcting outdated entries and adding new learnings, and in an internal run raised the share of questions an agent could answer from notes alone from 13% to 48% across 128 sessions. In a Pokémon-playing test, an agent with roughly 400 memory files earned one badge while an agent with about nine files earned four, and a single wrong note about a location called Mount Moon sent the agent off the same ledge three times until dreaming compared it against the actual transcript and fixed it. Dreaming is available only for managed agents through the API, not in the consumer Claude app, while Claude Code's built-in memory loads only the first 200 lines or 25 kilobytes of a memory.md file per session and an "auto dream" toggle sits off and hidden behind a flag in the /memory menu.

key takeaway

Dreaming rewrites an agent's memory file against up to 100 past session transcripts into a new reviewable file, lifting notes-only answer accuracy from 13% to 48% across 128 sessions, while Claude Code still loads only the first 200 lines or 25KB of memory.md per session.

by read7 min views2 publishedNov 26, 2026
Anthropic's 'Dreaming' Feature: How Claude Cleans Up Its Own Memory
Image: Mindstudio (auto-discovered)

Anthropic's dreaming feature rewrites Claude's stored memory notes, fixing outdated or wrong entries. Here's what it does and how it works.

What is Anthropic’s ‘dreaming’ feature? #

Dreaming is a research-preview feature from Anthropic that periodically rewrites an AI agent’s stored memory notes. It reads the agent’s existing memory file along with a batch of its past sessions (up to 100), then produces a cleaned-up version: duplicate notes get merged, outdated or contradicted notes get corrected, and anything new the agent has learned gets added. It writes to a new file rather than editing the original, so the change can be reviewed or discarded. Right now it’s only available for managed agents through the API, not in the consumer Claude app.

TL;DR #

  • Dreaming rewrites memory rather than appending to it , merging duplicate notes, fixing outdated ones, and adding new learnings, while leaving the original file untouched so changes can be reviewed.
  • Anthropic tested memory quality using a Pokémon-playing experiment , where an agent with roughly 400 memory files earned one badge and an agent with about nine files earned four, suggesting that a smaller, well-curated memory set beats a huge archive.
  • A single bad note caused repeated failures in that test : a wrong note about a location called Mount Moon sent the agent off the same ledge three times until dreaming compared it against the actual transcript and fixed it.
  • Dreaming significantly improved recall accuracy in Anthropic’s internal run , taking the share of questions the agent could answer from notes alone from 13% to 48% across 128 sessions.
  • Claude Code’s built-in memory is limited by design , only the first 200 lines or 25 kilobytes of a memory.md file into each session, with anything beyond that reachable only if Claude goes looking for it.
  • Auto memory in Claude Code now saves four categories of notes : who the user is, feedback given, project context, and references to where things live, skipping anything it can already infer from project files.
  • An “auto dream” toggle already exists in Claude Code’s /memory menu , currently set to off and hidden behind a flag, with no public documentation yet, suggesting a wider rollout is coming.

Remy.

Why did Anthropic run a Pokémon memory test? #

Anthropic wanted to answer a basic question: does an AI agent get better at a task simply by remembering more? To test this, they had two versions of Claude play Pokémon, each with its own memory folder to record notes as it went. One version accumulated a large archive, reportedly around 400 memory files. The other kept a much smaller set, around nine files. The smaller, more curated memory set performed noticeably better, reaching four badges compared to one for the agent that had saved far more notes.

The takeaway isn’t that memory doesn’t matter. It’s that volume isn’t the point. An agent with hundreds of scattered notes still has to find the right one at the right moment, and more files make that harder, not easier. A leaner set of accurate, relevant notes is more useful than a sprawling archive full of redundant or contradictory entries.

How does dreaming fix bad memories? #

The core problem dreaming addresses is that once Claude writes a note, nothing ever goes back to check if it’s still true. Notes can become outdated, get contradicted by later events, or just turn out to be wrong, and the agent keeps acting on them anyway.

In the Pokémon test, this played out literally: a single incorrect note about a specific location kept telling the agent to do something that led it off a ledge, and it repeated the same mistake three times before anything caught it. Dreaming works by comparing stored notes against the actual transcripts of past sessions. If a note doesn’t match what really happened, dreaming corrects it. If two notes say overlapping things, it merges them. If something new came up in recent sessions that never got written down, dreaming adds it.

Because dreaming writes a separate, cleaned-up file instead of silently overwriting the original, the process is reversible. An agent (or the person running it) can inspect what changed before accepting it, or throw the dream away entirely if the rewrite doesn’t look right.

What does Claude’s memory look like without dreaming? #

Out of the box, Claude’s memory setup has three layers: storage (what gets written down), injection (what loads automatically before you type anything), and recall (how it finds things that weren’t loaded). In Claude Code specifically, there’s a global Claude.md, a project-level Claude.md, and a hidden .claude/projects folder containing a memory.md file plus topic files.

The memory.md file is the one Claude writes on its own, capturing corrections, preferences, and project context it can’t infer from the files already in the repo. But only the first 200 lines or 25 kilobytes of that file actually load into a session automatically. Anything past that limit sits there unused unless Claude specifically goes looking for it.

› Build a loan-approval app for 2,000 bankers.

already included:✓ SOC 2✓ role-based access✓ audit log✓ self-hosted

This explains a common complaint: ask Claude what you decided about pricing months ago, and it often comes back empty, even though it happily recalls small preferences like spelling conventions. Decisions, in particular, tend not to get written down as notes at all, which means they’re not in memory.md to begin with. Recall then has to fall back on searching old conversation transcripts by keyword, and those transcripts get deleted after 30 days. If the way you phrase a question doesn’t share vocabulary with how it was originally discussed, keyword search misses it even when it’s directly relevant.

Is dreaming enough to solve Claude’s memory problems? #

Dreaming solves one real problem: notes that are wrong, duplicated, or stale. It doesn’t solve a second problem, which is that a lot of useful information never becomes a note in the first place. If a decision got made in passing during a chat and Claude didn’t judge it worth saving, dreaming has nothing to clean up, because there was never a note to begin with.

That’s where additional recall techniques matter. Some systems inject a small, capped snapshot of recent and important context at the start of every session, so nothing critical depends on remembering to ask. Others focus on citing sources when answering memory questions, including admitting when nothing relevant was found rather than guessing. Still others search by meaning instead of exact keywords, so a question about “payment processing” can match a note about “Stripe” even though the two share no words.

For most individual users and small projects, a tidy Claude.md plus periodic use of dreaming (once it rolls out more broadly) is probably enough. The need for semantic search and long-term recall systems tends to show up later, once someone is juggling multiple clients or long-running projects where decisions from many months back keep needing to resurface and keyword matching starts failing.

Frequently Asked Questions #

Is dreaming available in the Claude consumer app?

No. As described by Anthropic, dreaming is currently a research preview available only through the API for managed agents, not inside the standard Claude app or Claude Code for individual users, though a hidden “auto dream” toggle has been spotted in Claude Code’s memory menu, switched off by default.

What triggers a dream?

A dream reads an agent’s existing memory alongside a batch of its past sessions, up to 100, and uses that history to rewrite the memory file, correcting inaccurate notes and merging duplicates. The transcript doesn’t specify an automatic schedule for when dreams run in production.

Does dreaming delete the original memory file?

No. Dreaming writes a new, cleaned-up version separately from the original, so the rewrite can be reviewed or discarded without losing the prior file.

Why did the agent with fewer memory files do better in the Pokémon test?

Having fewer, higher-quality notes made it easier for the agent to retrieve the right information at the right time. A large archive of notes, many potentially redundant or outdated, made retrieval harder rather than easier, even though there was technically more information available.

Does dreaming fix the problem of decisions never being saved as notes?

No. Dreaming only cleans up and corrects notes that already exist. If a decision was never written down as a memory note in the first place, there’s nothing for dreaming to find or fix, which is a separate limitation from the one dreaming addresses.

── more in #ai-agents 4 stories · sorted by recency
── more on @anthropic 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/anthropic-s-dreaming…] indexed:0 read:7min 2026-11-26 · —