Field noteNov 5, 20266 min read1 source

Dreaming with a dynamic workflow

In one minute

Anthropic’s Claude Cookbook shows how to build a background workflow that turns completed Claude Managed Agents sessions into a linked, searchable memory store for future runs. The recipe makes agent memory an updateable workflow rather than a larger prompt, and includes example cost, runtime, setup, and data-handling constraints.

What changed: The cookbook adds a hands-on dynamic-workflow implementation of Managed Agents dreaming, including transcript loading, wiki-style memory updates, and a nightly cron option.

What happened

Anthropic published “Dreaming with a dynamic workflow” in its Claude Cookbook on November 2, 2026. It is a build-it-yourself cookbook for Managed Agents, not a claim that a general-purpose dreaming feature has shipped. The workflow reads completed session transcripts, distills useful information into small linked files, organizes those files into a wiki-style memory store, and lets later agent sessions mount that store read-only. Anthropic describes the goal as retaining commands and flags that worked, decisions and their timing, and lessons learned so a new session need not rediscover them.

The cookbook’s workflow has a lead agent, analyzer agents, and an organizer agent. The builder exports finished sessions as transcript files, one per session. A lead agent writes and starts a dynamic workflow run; analyzer agents each receive a transcript and create or update memory files; then an organizer tidies the store. The cookbook says the analyzers need to handle stale facts by dating and superseding them, preserve details buried in tool output, and add to or link existing files when topics overlap. Future sessions mount the resulting store read-only. Builders choose when the process runs, which transcripts it reads, and what it does with them; a nightly cron schedule is one suggested option.

The default cookbook example uses Claude Sonnet 5.5 for the lead agent and Claude Haiku 5.5 for analyzers and organizer. Those model choices can be changed with environment variables. Eleven synthetic transcripts about a fictional Python project total 283 KB; Anthropic reports that a run cost about $0.36 at list price and took roughly two and a half minutes. For more than 50 long transcripts, about 12 MB of text, it reports around $8 and ten minutes. The page compares that with about $10 and nine minutes without its cost-saving settings, while saying the two resulting memories held about the same share of a fixed list of facts.

To adapt the notebook, the page lists Python 3.11 or later, anthropic Python SDK 2.0 or later but below 3.0, repository files, and Claude API credentials with Managed Agents beta access. Its example run stops if the estimated budget exceeds $40 by default, but Anthropic warns that estimates on long transcripts can be several times the actual cost. The notebook saves a local copy of the session and then deletes the session. Managed Agents sessions are not eligible for zero data retention or HIPAA, and session contents remain stored until deletion. Run records are placed in a private temporary directory by default, with an option to choose a persistent location.

What the archive adds

The archive has covered related Managed Agents material, including AG-UI compatibility and agent state as a frontend contract and scheduled proactive agents. This is a new cookbook workflow on a known platform thread: it supplies a concrete memory-distillation recipe and example costs, not evidence that the earlier items describe this feature.

Trend signal

This supports company memory needs write and correction loops: useful memory here is updated from work, reorganized, and exposed to later runs rather than merely retrieved from a static document pile. The cookbook’s handling of dated and superseded facts is a particularly relevant design detail. The example remains a recipe, not proof that this pattern is reliable in production at scale.

Why now

The cookbook is dated November 2, 2026 and addresses a specific limitation it identifies: each new agent session otherwise starts without knowledge of prior sessions. The source positions the workflow as a way to reuse accumulated operational context across runs; it does not give a broader market or product-launch rationale.

Why it matters

For teams running agents repeatedly, a memory pipeline can preserve operational details that are expensive to recover from logs: exact commands, decisions, and lessons from tool use. The workflow also makes responsibilities visible. Builders decide what histories are eligible, analyzers extract and update facts, an organizer maintains structure, and later sessions consume the result without editing it. That makes it easier to reason about memory as a maintained artifact with inputs and a refresh schedule, rather than as an opaque promise that a model will remember.

The numbers provide a starting point for estimating a prototype, not a budget guarantee: the reported scale ranges from eleven small synthetic transcripts to more than fifty long ones, and the source itself warns that estimates may overstate actual cost. Data policy is equally material. Teams handling sensitive transcripts must account for Managed Agents’ stated retention and eligibility limits before building this into a workflow. A successful demo does not establish that the generated wiki is accurate, safe, or current enough to drive consequential actions without review.

Limits and uncertainty

The source demonstrates a cookbook workflow on synthetic example data and gives reported costs and timings, but it does not establish accuracy on real company histories, long-term memory quality, or whether generated facts remain correct as projects change. It does not provide a production reliability guarantee, independent evaluation, or a comparison with alternative memory systems. Costs depend on transcript size, model settings, and run configuration; the page cautions that budget estimates can be several times the actual cost. Its data-handling statements are specific to Managed Agents sessions and should not be generalized to other Anthropic services.

Skill to build now

Prototype a bounded memory refresh for one low-risk agent workflow. Export a small set of completed sessions, define what counts as a dated fact, and test whether the analyzer updates or supersedes old commands instead of duplicating them. Keep the store read-only for the consuming agent, inspect the generated links and claims, and record actual cost and runtime before setting a schedule. Do not use sensitive transcripts until the team has checked the Managed Agents retention and compliance constraints described in the cookbook.

Reader takeaway

The cookbook’s useful idea is not simply “give the agent memory.” It is to make memory a deliberate background workflow: select histories, distill and organize them, then mount the result read-only for future sessions. Treat the example’s economics as a prototype benchmark and validate both the facts and the data policy against your own use case.

Evidence / sources

  1. 1platform.claude.com/cookbook/managed-agents-cma-dreaming-with-a-dynamic-workflow
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicClaudeExplore the claude topic hub.
  2. 02topicAnthropicExplore the anthropic topic hub.
  3. 03topicAgent MemoryExplore the agent-memory topic hub.
  4. 04archiveField NotesOpen the latest editorial analysis.
  5. 05source ledgerSource LedgerInspect the public source evidence graph.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract