Anthropic published a research post on November 6 that opens up the hood on how Claude remembers things between sessions. The post, called "The components of agent memory," walks through the pieces Anthropic has been testing, and the one that steals the show has a name borrowed from sleep science: dreaming.
Dreaming is offline compute. Between your chats, Claude replays its session logs, checks the notes it wrote to memory, fixes the ones that are wrong, and builds new structures like wikis to organize what it knows. The idea traces back to sleep-time compute research from Letta and UC Berkeley, and Anthropic says it has become a genuinely useful tool for giving Claude working memory.
The Pokémon test: less memory won
The clearest demo comes from an unlikely place: Pokémon Red. Anthropic gave different Claude models a folder of memory files and let them play. Claude Sonnet 3.7 wrote everything down, 413 memory files across 225 folders, and earned one badge. Claude Fable 5 wrote nine files in two folders plus a single dashboard file, and earned four badges. Claude Opus 5.5 kept a small folder of notes tracking its goal and next steps, and beat the game.
Sonnet 3.7's problem was staleness. Game state changes constantly, so its detailed record kept going out of date, and it spent more time digging through its own memories than playing. Around step 10,000 it spent 17 steps creating six files and deleting nine others without taking a single action in the game. Fable 5 saved only what the game didn't already tell it: strategy, plans, and rules it had worked out itself. After seven Poké Balls in a row failed to catch a Magikarp, it wrote a rule about varying the timing, and the catch landed right after.
Dreaming catches mistakes a session can't see
Memory written in the moment can be wrong from the start, and a later session will trust it anyway. Dreaming gives Claude a way to test notes against the original transcripts. In one Pokémon run, Claude wrote down the wrong side of a mountain for a PokéCenter, then walked off a one-way ledge and concluded it had overshot west. It hadn't.
Anthropic ran dreaming on that memory folder. Claude checked the note against the transcript, caught the error, and rewrote it. With the corrected note it went straight back into Mt. Moon and reached Cerulean City. The run with the uncorrected note fell off the ledge three times, gave up, and ended back in Pewter City, the town before the mountain. Same model, same game. The only difference was one corrected note.
Wikis built while you sleep
Dreaming can also build representations that make memory easier to search. Anthropic tested this on about 350,000 internal documents, roughly 420 million tokens, from Stainless, a company it acquired in May. Over 128 dreaming sessions, Claude built a wiki of linked pages from the corpus, and its score on 25 test questions grew from 13% to 48% of graded criteria. Pairing the wiki with a search tool pushed the score from 54% to 61%, and saved about 20,000 tokens per question.
The same pattern showed up on a legal benchmark. On merger questions, Claude scored 87% consulting the wiki versus 73% with search alone. And when Anthropic let Claude reflect on its own failures and rewrite the wiki-building instructions, a generated legal brief went from meeting 72% of the criteria (41 of 57 facts) to 100%. Dreaming isn't just tidying up. It's how the memory gets better at its job.
Our take
Here's the honest framing: this is a research post, not a feature you can switch on today. But the pieces are already visible in products. Claude Code loads only the first 200 lines or 25 KB of its MEMORY.md as an index, and Claude Duet, the proactive agent Anthropic launched in October, is the kind of assistant that needs memory organized around the person it helps. Anthropic also published cookbooks for dreaming and knowledge wikis, so builders can try the pattern themselves.
We checked every number above against Anthropic's own post, and each one is labeled for what it is: an Anthropic test, not an independent verdict. The idea that survives all the caveats is simple, and it matches how human memory works. Writing things down matters, but the real learning happens when you look back, spot what was wrong, and fix it. Claude is starting to do that too.