AgenticFrameworks

Dreams (Claude Managed Agents) Documentation

by Anthropic

IntermediateDocumentationFree~30 min read; the companion cookbook runs in a few minutes on its sample data

The API reference for dreams: async jobs that read past agent sessions and write a cleaned-up memory store for the next run.

Start LearningAdded Nov 27, 2026 · Updated Nov 27, 2026

Overview

The Dreams page in the Claude Platform docs explains how to run a dream: an asynchronous job that takes a memory store plus 1 to 100 sessions as input and writes a new output memory store, leaving the input unchanged. Sections cover how it works, creating a dream with POST /v1/dreams, steering it with optional instructions, tracking progress, the lifecycle (pending, running, completed, failed, canceled), using the output, cancelling, archiving, listing, errors, billing, limits, availability and data handling. Requests need the anthropic-version 2026-10-21 header and the beta header managed-agents-2026-04-01,dreaming-2026-04-21, and the page gives samples in cURL, the ant CLI, Python, TypeScript, C#, Go, Java, PHP and Ruby. It lists error types such as input_memory_store_unavailable and memory_store_org_limit_exceeded and the 400s you get from cancelling a finished dream or archiving a running one. Dreams bill at standard token rates for the chosen model, scale with the number and length of sessions, and take minutes to a few hours. The feature is a research preview that needs an access request, and it is not ZDR or HIPAA eligible. Anthropic's November 6, 2026 engineering post 'The components of agent memory' by Lance Martin gives the reasoning behind it, including a Stainless corpus test where 128 dreaming sessions raised wiki-only accuracy on 25 questions from 13% to 48%. A Python cookbook (November 2, 2026) and a knowledge-wiki quickstart on GitHub show working pipelines.

At a Glance

Topic
Agentic
Level
Intermediate
Format
Documentation
Cost
Free
Duration
~30 min read; the companion cookbook runs in a few minutes on its sample data
Provider
Anthropic
Hands-on
Yes — code/exercises
Certificate
None

What You’ll Learn

  • ✓How to create a dream from a memory store and up to 100 sessions with POST /v1/dreams
  • ✓How to steer what a dream keeps or rewrites using the optional instructions field
  • ✓How to poll a dream through pending, running, completed, failed and canceled states
  • ✓How to mount the output memory store in the next agent session and archive old ones
  • ✓How to handle errors such as timeouts, archived inputs and the memory store org limit
  • ✓How dream cost scales with session count and length at standard model token rates
  • ✓How to schedule nightly dreaming over recent sessions, following the cookbook's cron example

Highlights

  • •Official reference with SDK examples in nine languages plus cURL and the ant CLI
  • •Backed by Anthropic's own measurements in the agent memory engineering post, including corrected notes that let a stuck Pokemon Red agent progress
  • •The companion cookbook reports real costs: 11 transcripts (283 KB) for $0.36 in about 2.5 minutes, and about 12 MB for roughly $8
  • •States its limits plainly: research preview, access by request, no ZDR or HIPAA eligibility for hosted runs

Who It’s For

Best For

  • ✓Developers already building on Claude Managed Agents with memory stores
  • ✓Teams whose agents repeat mistakes across sessions and need memory correction
  • ✓Engineers building a markdown knowledge wiki from a large document corpus

Prerequisites

  • •A Claude API account with Managed Agents beta access and an approved dreaming access request
  • •Familiarity with Managed Agents sessions and memory stores
  • •Python 3.11+ and the anthropic SDK 2.x to run the cookbook and quickstart

FAQ

What is Dreams (Claude Managed Agents) Documentation?

This is Anthropic's official documentation for dreams, a research-preview feature of Claude Managed Agents that reviews up to 100 finished sessions against an existing memory store and writes a new, corrected store. It is for developers running long-lived agents who want them to learn from earlier sessions without hand-curating memory files.

Is Dreams (Claude Managed Agents) Documentation free?

Dreams (Claude Managed Agents) Documentation is free to access.

What level is Dreams (Claude Managed Agents) Documentation for?

Dreams (Claude Managed Agents) Documentation is aimed at a intermediate audience. Recommended background: A Claude API account with Managed Agents beta access and an approved dreaming access request, Familiarity with Managed Agents sessions and memory stores, Python 3.11+ and the anthropic SDK 2.x to run the cookbook and quickstart.

How long does Dreams (Claude Managed Agents) Documentation take?

Expect roughly ~30 min read; the companion cookbook runs in a few minutes on its sample data. Most learners work through it at their own pace.

What will I learn from Dreams (Claude Managed Agents) Documentation?

You'll learn: How to create a dream from a memory store and up to 100 sessions with POST /v1/dreams; How to steer what a dream keeps or rewrites using the optional instructions field; How to poll a dream through pending, running, completed, failed and canceled states; How to mount the output memory store in the next agent session and archive old ones; How to handle errors such as timeouts, archived inputs and the memory store org limit; How dream cost scales with session count and length at standard model token rates; How to schedule nightly dreaming over recent sessions, following the cookbook's cron example.

Topics

claude managed agentsagent memorydreaminganthropic apicontext engineering

Sources

This page was written from 4 sources, 2 on domains other than platform.claude.com.

  1. 1.platform.claude.com — dreamsvendor
  2. 2.platform.claude.com — managed agents cma dreaming with a dynamic workflowvendor
  3. 3.anthropic.com — components of agent memory
  4. 4.github.com — knowledge wiki