Anthropic's official 'Dreaming' recipe compresses agent memory overnight for $0.36

sujingshen · x · 2026-11-06

Anthropic released an official Cookbook recipe called Dreaming for Claude Managed Agents: a scheduled nightly workflow that distills an agent's session history into long-term memory. Processing 11 sessions / 3M+ tokens took 2.5 minutes and cost $0.36.

Key engineering details:

The design mirrors how sleep consolidates memory, addressing the classic dilemma of agent memory: dumping full logs breeds stale context, while discarding them breeds amnesia.

Related event: Anthropic's 'Dreaming' Lets Agents Consolidate Memory While They Sleep(2 posts)→

Original post →

More from coding & agent

coding & agent channel →