News · AI NEWS

Anthropic details agent memory: “dreaming” corrects notes, builds wikis, and promotes context

· Beijing time

Summary

Anthropic’s Engineering blog published “The components of agent memory” on November 6, 2026, written by Lance Martin. It explains how Claude retains experience across sessions as readable context, and how offline “dreaming” reorganizes that memory. Agent memory here means knowledge Claude gains from users and assigned tasks and keeps between sessions; it excludes weight updates, in-context learning inside one conversation, and compaction (summaries that replace older turns). Dreaming follows the sleep-time compute idea from researchers at Letta and UC Berkeley: use idle time between interactions to reflect on logs, fix mistakes, write new notes, build representations, and decide what to preload. On Continual Learning Bench 1.0, each question started a fresh session except for a persistent memory folder. Claude Opus 5 was the first model in the compared line to close a learning loop by writing validated rules, evidence, prior answers, and trap warnings; Opus 5.5 and Sonnet 5.5 did so as well. Telling stronger models to “record only failures” reduced the boost that memory had given them. In Pokémon Red, Sonnet 3.7 had written 413 files across 225 folders by about step 10,000 and earned one badge, while Fable 5 wrote nine files plus a global.md dashboard and earned four badges; Opus 5.5 beat the game with a small, rewritten set of notes. Dreaming can audit notes against transcripts: an incorrect note about which side of Mt. Moon held the PokéCenter was corrected, after which Claude re-entered the cave and reached Cerulean City, while the uncorrected run looped off a one-way ledge and never cleared the mountain. Dreaming can also build wiki-style maps of memory. On a Stainless corpus of about 350,000 internal files (roughly 420 million tokens) and 25 questions, scaling dreaming from 2 to 128 sessions raised wiki-only scores from 13% to 48% of graded criteria. Wiki plus search rose from 54% to 61%, versus 53% with search alone, and saved about 20,000 tokens per question. On Harvey LAB merger questions that needed multi-document judgment or math, the wiki scored 87% versus 73% for search; other tasks solvable from a single document showed no clear gain, and one wiki grew larger than the source files. In a contracts task, several agents writing one shared table preserved only 41 of 57 graded facts (72%); after an instruction loop that gave each contract its own page and verbatim quotes, 57 of 57 facts survived. Claude Code’s auto memory likewise loads only the first 200 lines or 25 KB of MEMORY.md as an index. The post treats memory as a prediction about what a future session will need, and dreaming as a chance to look backward—while leaving open when to write memory and how to limit drift.

#anthropic#claude#agent-memory#dreaming#context-engineering

This summary reflects the cited source. Visit the original for its full context.

← All AI news