Glossary · T2 Context & memory

Agent dreaming

Last reviewed 10 Nov 2026by Pratima Chainani

A memory step where an agent, between tasks, rereads its own past transcripts, checks its saved notes against what really happened, and rewrites them: wrong notes fixed, stale ones dropped, repeated lessons turned into rules.

Why it exists. An agent's memory is a set of notes it writes while it works. Notes written mid-task are often wrong or go stale, and an agent keeps trusting them. Dreaming is the clean-up pass that happens offline, when no user is waiting.

How it works. Read the notes. Read the transcripts they came from. Mark each note true, stale or wrong. Rewrite the set so it is short and true. Anthropic put it simply: dreaming lets Claude test its notes against the original transcripts.

Not new, newly explained. Anthropic shipped dreaming in Claude Managed Agents in May 2026. On 6 Nov 2026 it published how its memory system works, with numbers: a wiki rebuilt over 128 dreaming sessions raised answers from 13% to 48% of graded criteria.

Memory is notes, not weights. Dreaming changes text the agent reads at the start of a session (in Claude Code: CLAUDE.md and the auto-memory MEMORY.md). It never changes the model. For changing the model itself, see weight-space programming.

Do it by hand today. Claude Code saves every session on your machine. Pull out what you typed, ask Claude to find where you corrected it, and turn that into at most five rules. Issue 03 of the newsletter has the exact steps (Try this).

Common misread

Dreaming means the model learns or retrains itself overnight.

It rewrites notes the agent reads next time. The model's weights don't change.

For your code

Run one dreaming pass a week on your coding agent: extract your own messages from the last 20 sessions, have the agent propose at most five rules from your corrections, and keep only the ones you agree with. Don't commit the extracted file: it holds everything you typed.

For your roadmap

If your agents run long or repeat work, budget for a memory clean-up step, and decide who reviews the notes it writes. Wrong memory is worse than no memory: the agent trusts it.

Sources

  1. Anthropic: The components of agent memory · 6 Nov 2026
  2. Claude: New in Claude Managed Agents (dreaming, outcomes, multiagent orchestration) · May 2026
  3. Claude Code docs: memory · read 10 Nov 2026

More on T2 Context & memory

Every term, by layer