Learning resourcesReviewed · Anthropic

Claude Managed Agents: Workflow runs (dynamic workflows) documentation

This is Anthropic's reference page on workflow runs, the background multi-agent jobs that an agent in Claude Managed Agents can write and start, aimed at developers building clients on the beta API; its main catch is that the feature is in beta, is not eligible for zero data retention except for self-hosted Managed Agents, and is separately not eligible for HIPAA. It covers run states, events, completion rules, budgets, limits and sample code for following a run in several SDK languages.

Researched 14 Nov 2026

In short.

This is Anthropic's reference page on workflow runs, the background multi-agent jobs that an agent in Claude Managed Agents can write and start, aimed at developers building clients on the beta API; its main catch is that the feature is in beta and is not eligible for zero data retention, except for self-hosted Managed Agents, and that it is separately not eligible for HIPAA, which the page says applies to all Managed Agents sub-features. The page explains that a workflow is a program the session's agent writes to run many agents and combine their results, and that a workflow run is one execution of it. It then documents the run states (running, idle, ended), the workflow_run.* events, how to tell when work is truly finished, what happens to threads, budgets, interrupts, documented limits and defaults, and a sample event-stream follower in Python, TypeScript, C#, Go, Java, PHP and Ruby. The documented limits are 64 threads working at once in one run, a number the page says the API does not guarantee, and 1,000 agents started over a run's whole life; by default a session can have 10 runs open at once and a run lasts up to 24 hours, unless the agent sets another lifetime. It is documentation only: nothing described here was run or tested, the page gives no dollar prices, and it states no licence for its text or code samples.

Researched and written by an AI model and checked by a second AI model. How it works

The scope is the single selected documentation page at [https://platform.claude.com/docs/en/managed-agents/workflow-runs.md], captured in full on 2026-11-14 (79,459 bytes). Linked pages, including the multi-agent orchestration, session threads, events and streaming, budgets, pricing and data-retention pages, were excluded and are not summarised beyond what this page itself says about them. No licence or notice file was captured for the page. Nothing was executed: the sample code was not run, no API calls were made, and no feature behaviour, performance, reliability or price was tested or verified.

The overview

What this resource is

This is a single documentation page, Workflow runs, in the Managed Agents section of Anthropic's developer documentation at [https://platform.claude.com/docs/en/managed-agents/workflow-runs]. Its stated purpose is to help you follow an agent's workflow runs: their states and events, when the work is done, requests while a run is open, budgets and limits.

The page defines the terms it uses. A workflow is a program that an agent writes to run many agents and combine what they return. A workflow run is the execution of one workflow. Dynamic workflows is the feature that lets an agent write workflows and start runs, and it is turned on or off with the workflows setting in the agent's multiagent block.

The page's metadata marks the feature as beta, requiring the beta header managed-agents-2026-04-01, with beta status on the Claude API, Claude Platform on AWS and Claude Models on Google Cloud (Anthropic managed). The evidence does not name a page author or a page version beyond that.

Overall assessment

As a reference for people building on this feature, the page is detailed and specific. It names every workflow_run event, lists the possible result types and what each means, gives numeric limits, and works through awkward cases such as paused runs, archived threads, late tool results and reconnecting after a dropped stream. It is also candid about what the API does not guarantee, for example that phases run one at a time in order, and that a run's agents get all of the session agent's tools.

The most useful warning for newcomers is that a run ending as completed does not mean the work succeeded: the page says a run can complete even though work on its threads failed, so you must read each thread's events to find failures. A second is that a session going idle with end_turn does not by itself mean the work is done while a run is still open.

What the page does not do: it does not show how to create the agent or enable workflows (it links to a separate multi-agent orchestration page for that), it does not quote prices, and it does not show output from a real run; its three small JSON event examples and its contract-review scenario are illustrations. How the feature performs in practice, in quality, speed or reliability, is not assessed by this page and was not assessed here.

Who it is for

The main audience is developers who write the client or backend that talks to a Managed Agents session: they open the event stream, send user messages, answer tool calls, and need to know when a long multi-agent job has really finished. The page assumes you already know Managed Agents concepts such as sessions, session threads, the event stream, budgets and stop reasons, and it links to pages for those.

It is also useful to technical decision-makers weighing whether to let an agent fan work out across many sub-agents, for example the page's scenario of finding which of 300 contracts contain a change-of-control clause. The page says this suits tasks too large for one conversation.

It is a poor fit if you need zero data retention or HIPAA coverage, since the page states the feature is not eligible for either (self-hosted Managed Agents are the one ZDR exception named). Complete beginners to agent APIs will find the plain-language explanations helpful, but the page is a reference rather than a tutorial and does not teach the basics.

What the documented feature can do

According to the page, the agent that a session runs writes a workflow program for the task you describe, and the server runs it in the background. The program can run many agents at the same time (fanning out), pass one agent's result to another, decide the next step itself without returning to the session's agent, repeat work and branch on results (for example revising a draft until a review passes or a set number of rounds is used), and handle a failed agent. When an agent fails, the server usually runs it once more on a new thread; if it fails again the program can handle the failure or let it end the run.

A workflow can divide work into named phases, and you follow progress through phase_started and phase_ended events. Agents in a run can be inline agents the program defines itself, or predefined agents you list in the predefined_agents list under workflows. All agents in a run work on the same files in the session's sandbox, each in its own session thread with its own conversation history.

A session can have several runs open at once. The page also covers how to rebuild run state after reconnecting by listing past events with type filters, how to see a run's token usage by summing thread usage, and how to ask the agent to print the workflow it wrote word for word after the run has ended.

Using it

What you need to use it

From the page: a Claude Managed Agents session whose agent has dynamic workflows turned on through the workflows setting in its multiagent block; the beta header managed-agents-2026-04-01; and a client that can open the session's event stream and send events. The page lists many supported models, including claude-haiku-4-5-20251001, claude-opus-4-5-20251101, claude-sonnet-4-5-20250929 and later-named Opus, Sonnet, Haiku, Fable and Mythos models, and says dynamic workflows are in beta on every model.

The page's sample code is shown for Python, TypeScript, C#, Go, Java, PHP and Ruby. For cURL and the CLI it says the workflow needs more logic than a single shell command and to use an Anthropic SDK instead. Your own code must supply a tool-calling function if your agent uses custom tools; the samples call placeholder functions (callTool or call_tool) that you would write.

An Anthropic account and API credentials are implied but not described on this page. Account tiers, rate-limit levels you would need, and any access-approval process are not stated in the evidence. Rate limits are covered only in outline: a run's model requests count against your existing Messages API limits for the model each thread uses, and your client's read requests count against the Managed Agents read limit.

How it works

The server runs each workflow in the background as a workflow run, and creates session threads for its agents as the workflow needs them. Run events arrive on the session's event stream (the primary thread's stream). They are workflow_run.created (with the run's name, description and declared phases), status_running, status_idle, phase_started, phase_ended, status_ended (always the last event of a run, with a result) and workflow_run.error. Run events do not trigger webhooks. Threads announce themselves with session.thread_created carrying the run's workflow_run_id, and their thread status events also arrive on the primary stream, while their message events stay on their own streams.

A run is open from created until status_ended, whether running or idle. A run starts as running or idle, and pauses (idle) for example at the session's budget. It ends when the workflow completes, the agent stops it, it fails, its lifetime passes, or the session is archived. Result types are completed, stopped, and error with timeout_error, program_error, thread_limit_error or unknown_error.

The page says work is done only when every run you saw created has its status_ended, and after that a session.status_idle arrives with stop_reason end_turn that your own interrupt did not cause. A paused run does not keep the session running, so the session can go idle with budget_reached while a run is still open. The server archives each run thread no later than the end of its run. There is no approval step before a run starts: the agent starts it in the same turn that it writes the workflow, though you can instruct the agent to describe the run and wait for your approval. Only the primary thread's agent can start runs, so runs do not nest.

Setup and first steps

This page is not a full setup guide. Enabling the feature is described on a separate page (the Turn on dynamic workflows section of the multi-agent orchestration documentation), which is outside the captured scope, so the exact configuration fields beyond workflows and predefined_agents are unknown from this evidence.

What the page does describe for a client is the pattern in its sample: open the event stream first, then send the user.message, so you do not miss events, because the stream does not replay events from before the connection. Track each run in a map from workflow_run_id to name, record phase names from workflow_run.created, print phases as phase_started arrives, and remove the run on status_ended. Answer agent.custom_tool_use events as soon as they arrive, because a run's thread can wait on your client while the session stays running. Stop when no run is open and the session goes idle with end_turn, or when the session terminates, or on an idle with a stop reason other than end_turn or requires_action.

If your agent's tools ask for confirmation, the sample deliberately omits that branch and tells you to add one that answers each tool call whose evaluated_permission is ask. To guide how a run splits work and handles failure, the page points to a Tell the agent when to use a run section on the orchestration page, not captured here.

Worked example from the page

The page's scenario: you ask a contract-review agent which of 300 contracts have a change-of-control clause. The agent starts a run. workflow_run.created names it Find change-of-control clauses and lists two phases, Read the contracts and Reconcile the findings, followed by status_running. Phase events mark each phase, and each thread the run creates sends session.thread_created with the run's workflow_run_id. status_ended arrives with result type completed, then the agent answers that 41 of the 300 contracts have one and session.status_idle arrives with end_turn.

The page shows three JSON events from that scenario: a workflow_run.created with run id, name, description and a phases array (the second phase has a null description), a phase_started event naming its phase by workflow_run_phase_id, and a status_ended event with result completed. The timestamps shown are in October 2026.

This is an illustration written by the documentation. The figures (300 contracts, 41 matches) are example numbers, not measured results, and nothing in this review ran the scenario or the code samples.

Assessment & evidence

Limitations and caveats

Feature limits stated by the page: 64 threads working at once in a run (not guaranteed by the API); 1,000 agents started over a run's whole life, after which the run ends with thread_limit_error (retried agents can push the thread count higher); a 24 hour default lifetime unless the agent sets another, ending in timeout_error with no event saying what lifetime was set; 10 open runs at once per session by default, with idle runs counting, after which you get a workflow_run.error of type max_workflow_runs_error. Run and phase names are cut to 64 characters and descriptions to 256. The server has other limits that the page does not list.

Visibility and control gaps: you do not see the workflow's code unless you ask the agent to print it after the run; you do not see the agent's tool calls that start and manage runs, or the result each thread returns to the workflow; no event you send ends a run directly, but asking the agent can stop a run, and successfully archiving the session also stops its open runs; you cannot stop or archive a run's thread by its ID while the run is open; no endpoint lists runs; the stream does not replay missed events. After an interrupt, runs might pause or keep running and their events might not show which, so a status_idle or status_running event may be missing.

Behaviours to design around: archiving or deleting a session with an open run might return 400 or might succeed, and a successful archive ends open runs as stopped without the end events arriving on the stream; updating the session's agent returns 400 while any run is open; a late tool result for an archived thread can return 400, and a late confirmation returns 200, which does not establish that the tool ran; a run can create more than one thread for the same piece of work, so tools must be safe to call twice; a run that handles a failure internally can still end completed; the cause of program_error is not named. The page is for a beta feature, so these details can change.

Reasoning behind this assessment

The conclusions above come directly from the page's own statements. Where the page says something is not guaranteed, or that an event might not be sent, the report keeps that hedge instead of turning it into a firm rule. Where the page is silent, such as pricing amounts, licence terms, setup fields, performance and failure rates, the report says unknown.

The page is judged useful because it is specific and checkable: exact event names, result types, numeric limits, stop reasons, HTTP error behaviour and error_code values, and per-language sample code. It is judged limited because it is one page of a larger documentation set, it describes a beta feature, and none of its claims were verified by running anything. Any statement about real-world reliability, quality of the agent-written workflows, or cost at scale would go beyond the evidence and is not made.

Alternatives and related approaches

The page does not present or compare alternatives to dynamic workflows. It does describe related components that work together with it. Predefined agents are agents you list in the predefined_agents list under workflows in the multiagent block, and a run can use them. Inline agents are agents the workflow program defines itself; according to the page they use the session agent's model, a system prompt the workflow wrote, and a subset of the session agent's tools, MCP servers and skills. Session threads, covered on a separate page, are the base mechanism: each agent in a run works in its own session thread.

The page positions workflows for tasks too large for one conversation, such as a review of hundreds of documents, but it does not say when a single agent without a workflow, orchestration code you write yourself, or another vendor's agent framework would be the better choice. The comparative properties of those other approaches, such as visibility, predictability, cost or reliability, are unknown from this evidence. What the page does make clear about dynamic workflows themselves is that the agent starts a run in the same turn that it writes the workflow, with no built-in approval step (the page suggests telling the agent to describe the run and wait for your approval if you want to review a plan first), and that you do not see the workflow's code unless you ask the agent to print it.

Evidence base

The report rests on one source: the full text of Anthropic's Workflow runs page in the Managed Agents documentation, at [https://platform.claude.com/docs/en/managed-agents/workflow-runs.md], captured on 2026-11-14 (79,459 bytes). The capture includes the page's metadata (topic, beta status, beta header, ZDR and HIPAA eligibility, supported models and platforms), the explanatory text, the event and result tables, the limits tables, and the sample code in several languages.

Everything is taken from that page. No linked page was read, no code was executed, no API call was made, and no independent source was consulted, so claims about behaviour are the vendor's own descriptions and are unverified here.

Access & freshness

Costs

The page says a run has no price of its own. The tokens its agents use are billed like the session's other tokens, at each model's rates, and a run's model requests count toward the session's budget. For all session charges it points to the Claude Managed Agents section of Anthropic's pricing page, which is not part of the captured evidence. The actual prices, any session runtime charge amount, and any minimums are therefore unknown from this evidence.

Because a workflow can start up to 1,000 agents over a run's life, with up to 64 threads working at once, the token use of a run could be large; the page gives no cost estimate or typical usage, so how much a typical run costs is unknown.

Budget behaviour the page documents: at the budget every open run pauses and the session reports idle with budget_reached (or requires_action if a tool call is also waiting). Each thread completes the model request it already started, so a run can pass the budget by one request for each working thread. Raising or removing the budget resumes the paused runs unless an interrupt also paused them; if the session's usage includes a model with no list price, only removing the budget does. To see one run's usage, list the session's threads and add the usage token counts of threads with the run's workflow_run_id. Summing list_cost instead leaves out session runtime and rounds each figure separately. A paused run's lifetime keeps passing, so a run left paused can time out.

Rights, licence and data handling

The page states no licence or reuse terms for its own text or for the code samples, and no licence information was captured, so the right to copy, redistribute or adapt the content is unknown. Treat it as Anthropic's published documentation and read the site's terms before reusing it beyond reading it.

On data, the page states the feature is not eligible for zero data retention, except for self-hosted Managed Agents, and not eligible for HIPAA, applying to all Managed Agents sub-features. It notes that sessions are stateful resources and transcripts persist until you delete them. The applicable endpoints listed are /v1/agents, /v1/sessions and /v1/environments. Anyone planning to put regulated or sensitive data through workflow runs should take these statements into account. What the wider Anthropic terms say about data use is not covered by this page.

Freshness

The content was captured on 2026-11-14. The page does not show its own last-updated date or a changelog in the captured text, so when it was last edited is unknown. The example JSON events carry timestamps in October 2026; these are illustrative event times within the documentation's example and establish neither when the page or the example was written nor that any run actually took place.

The feature is marked beta and tied to the beta header managed-agents-2026-04-01, and the page itself says several details are not guaranteed by the API. Event behaviour, limits (for example the 64 concurrent threads and 10 open runs), supported models and data-handling eligibility may change, so check the live page before relying on a specific number.

Suggested next steps

If you plan to build on dynamic workflows: first confirm the data-handling fit, because the page says the feature is not eligible for ZDR (outside self-hosted Managed Agents) or HIPAA and that transcripts persist until deleted. Then read the linked orchestration page to see how to turn on workflows and list predefined agents, since this page does not cover that in full.

In your client, open the event stream before sending the first message; track open runs by workflow_run_id; treat a run as finished only on status_ended, and the work as done only when no run is open and a non-interrupt idle with end_turn arrives; handle budget_reached, retries_exhausted and requires_action idles; answer tool calls as they arrive; give each tool result its own request; and make tools safe to call twice. After a run ends, read each thread's events, because a completed result does not prove success.

To limit surprise and spend, set a session budget, remember that a run can pass it by one request per working thread, and consider telling the agent to describe its plan and wait for your approval before starting a run. Test in a non-production session first, because none of this behaviour was exercised during this review.

Evidence for this report

selected-page.txtselected · checked 2026-11-14