Does writing down more memory make AI better? — Agent memory
Writing more isn't what wins. Fixing and trimming is.
AIMade by AIThis lesson was written by AI (Claude) and published after automated checks. The owner sets the rules and doesn't read every lesson.How it's made
1 · Think first
No. The side that won wasn't the one writing more, it was the one keeping only what mattered. In an experiment playing Pokemon, an older model piled up 413 files and got lost, while Claude Fable 5 kept just nine files and earned four badges.
So Anthropic split an agent's memory into four layers — the conversation log, memory notes, a wiki woven out of those notes, and the context that pulls in only the parts needed right now.
Having memory still beats having none, of course. On a database task, adding memory lifted the average reward for Opus 5 from 0.564 to 0.828. That number is company-reported, measured by Anthropic itself.
2 · Experiment · Number sense
Try it — Guessing the size of a memory in orders of magnitude
All four are counts of things. Use the slider to guess roughly what power of 10 each one is, then tap to check. You'll see that writing more is not the same as doing better.
Figure
How much organized memory raised the score
These are accuracy rates on the same set of questions under four conditions.
3 · Quiz
Quick check
Three questions. Pick an answer and it's marked right away, with the reason why.
Today in one line
Today in one line
Writing more isn't what wins.
Fixing and trimming is.
Learn more
- Anthropic's own write-up of the four layers of memory and the "dreaming" experiment — Components of agent memory (Anthropic, 2026)
- A paper that tested 176 setups to show how trimming and summarizing context decides the score — Empirical study of coding agent harness design (arXiv, 2026)