
Anthropic says a Claude model that saved 413 memory files earned one badge in Pokémon Red, while a newer one that kept just 10 earned four. Anthropic’s research on agent memory carries a lesson for Anthropic Claude Code, its AI coding assistant, which keeps notes between sessions. As Simon Scrapes explains, you can keep project instructions focused on information Claude cannot find in your files, rather than duplicating the codebase. See how saved notes, searchable session history and focused instructions serve different purposes when you use Claude Code across long-running projects.
Claude Code: What Selective Memory Can Change
TL;DR Key Takeaways :
- In one run each, Anthropic says Sonnet 3.7 earned one badge with 413 memory files, while Fable 5 earned four with 10.
- The test compared model generations and Claude models, not memory size alone or Claude Code itself.
- Anthropic says corrected memory helped Claude reach Cerulean City in 1,935 actions, while uncorrected-memory and memory-free runs failed within 3,000 actions.
- Claude Code automatically loads only the first 200 lines or 25KB of MEMORY.md, whichever limit comes first.
- Conversation transcripts are wiped every 30 days, and /resume requires knowing which old session to resume.
Claude Code, Anthropic’s coding tool, can retain notes between sessions rather than rely only on the current conversation. These notes are persistent agent memory, not computer RAM or the model’s maximum context window.
One caution applies to everything below. Anthropic’s experiment tested Claude models playing a game, not Claude Code writing software, and it compared different generations of model rather than changing memory size on its own. The smaller memory may be a sign of a more capable model as much as a cause of its progress.
Smaller Notes Accompanied More Progress in Pokémon
Anthropic published its research on November 6, 2026, using Pokémon Red to examine how Claude models identify information worth retaining. As each model played, it could read and write files in a memory directory.
At approximately 10,000 steps, Claude Sonnet 3.7 had earned one badge, while Claude Fable 5 had earned four, according to Anthropic. Their memory stores differed sharply:
- Claude Sonnet 3.7: 413 files across 225 folders, containing 977,930 characters.
- Claude Fable 5: 10 files containing 43,406 characters.
- Claude Opus 5.5: Completed Pokémon Red with a small, regularly updated memory directory, Anthropic says.
The comparison used one run each of Sonnet 3.7 and Fable 5. Sonnet recorded individual encounters, battles and collected items, while Fable prioritized objectives, navigation plans and strategies it had checked. Anthropic says Sonnet also spent 17 consecutive steps creating six files and deleting nine without taking a gameplay action.
An earlier comparison showed a similar difference between model generations. At 14,000 steps, Anthropic says Claude Sonnet 3.5 had 31 memory files and remained in the second town, while Claude Opus 4.6 had 10 files and three gym badges.
Browse through more resources below from our in-depth content covering more areas on Claude Code memory and tools.
- 15 Claude Code Tricks For Persistent Context, Projects, Lower Costs and More
- Master Anthropic’s Claude Code : Tools, Hooks & User Commands in One Guide
- 27 Claude Code Concepts Explained : Prompts, Permissions, Tools, Memory & More
- Claude Code Creator Boris Cherny Advises Deleting CLAUDE.md for Better Precision
- 3 Hidden Claude Memory Hacks to Get You Ahead of 99% of People
Outdated Notes Can Keep Directing Claude
A large archive can contain information that no longer matches the task. Claude does not routinely recheck whether its notes remain true, and much of what Anthropic has shipped on memory this autumn is aimed at that problem. In Anthropic’s Pokémon research, Sonnet 3.7’s notes repeatedly became outdated as the game progressed.
Anthropic also ran a separate experiment with Claude Managed Agents to compare corrected memory, uncorrected memory and no memory. A wrong note about Mount Moon sent Claude off the same ledge three times. An offline process called dreaming checked the note against the session transcript and corrected it.
With corrected memory, Claude reached Cerulean City after 1,935 actions, Anthropic says. Neither the uncorrected-memory run nor the memory-free run reached the city within the illustrated 3,000-action evaluation. Simon Scrapes adds that over 128 sessions, the share of answers Claude could get from its notes alone rose from 13% to 48% with dreaming.
Dreaming reads an agent’s memory and up to 100 past sessions, then creates a revised memory that merges duplicates, replaces outdated or contradicted notes and adds new information. It leaves the original untouched, so you can review or discard the changes.
Find Older Decisions in Session History
Useful memory depends on finding the right information when you need it, not simply on storing more. Claude’s default recall depends on what it chose to save, and a decision from six months ago may never have entered a memory note. Claude can search conversation transcripts by keyword, but a search may miss an unsaved decision described in different words.
By default, Claude Code deletes transcripts after 30 days, and the /resume command requires you to know which old session to resume. Searching old sessions can use many tokens, while meaning-based search can help when keywords fail to find an older decision.
Other systems take different approaches to retrieval. Hermes injects a capped memory snapshot at the start of each session, while MEM searches by meaning. Garry Tan’s GBrain cites its answers and says when it cannot find information.
Simon Scrapes makes Agentic OS, so the claims reported here about it are the maker’s own. It saves every turn to long-term storage and lets Claude promote what matters into a snapshot capped at 2,000 characters, which loads every session. It searches the long-term store by meaning and by keyword, then cites the file, line and date, or says it found nothing.
Keep Claude Code’s Loaded Memory Focused
Claude Code has global and project CLAUDE.md files, alongside an auto-memory folder under .claude/projects. Claude writes its own MEMORY.md and topic files there, retaining preferences, feedback, project context and references that may matter in later sessions, including information about the user. Each project has its own MEMORY.md, which carries decisions between threads. Auto-memory skips information Claude can work out from files.
Only the first 200 lines or 25KB of MEMORY.md, whichever limit is reached first, load automatically at the start of a session. Claude must look for notes beyond that limit. It retrieves additional memory files when needed and is instructed to shorten its index as it approaches the line limit. Anthropic’s documentation also says concise, specific instructions improve adherence to them.
You can open /memory to inspect what Claude has chosen to keep. Simon Scrapes recommends keeping CLAUDE.md focused on information Claude cannot find in the project files, rather than duplicating the codebase. For most people, he says, a tidy CLAUDE.md and a weekly dreaming pass may suffice if dreaming becomes available to them.
We would bear in mind that the evidence comes from a single game test and that the video also promotes its own course and memory system. Before changing your setup, check whether your projects actually suffer from missing or stale notes. In our view, the useful lesson is that memory only helps if its contents are correct and easy to find. The Mount Moon note sent Claude off the same ledge three times, showing how an error can persist. A wrong note keeps steering the AI, so a short list you can trust beats a long one.
Less loaded memory need not mean losing your project’s history: a short working snapshot and a searchable archive serve different jobs. You can keep everyday context separate from older decisions that need deeper searching, while dreaming remains a research preview for managed agents. If you use Claude Code across long-running projects, its memory system is worth exploring in more detail to understand what carries between sessions and what needs a separate way to be found.
Media Credit: Simon Scrapes
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.