# Claude Managed Agents Flows: Running 1,000 AI Agents

> Published 2026-10-21T22:55:02.382Z on https://youblog.app/p/claude-managed-agents-flows-running-1-000-ai-agents/
> Source video: https://www.youtube.com/watch?v=kiClTcJUnhc

A lead agent can split one request into hundreds of isolated context windows, and Anthropic caps a Flows run at 1,000 agents. Claude Managed Agents Flows ship that orchestration as an API surface instead of a terminal session, so a workflow can be triggered by a schedule, a webhook or your own product.

## What are Claude Managed Agents Flows?

Claude Managed Agents Flows are an orchestration feature inside Anthropic Claude Managed Agents API that lets a lead agent write its own plan and spawn sub-agents to execute it. Each sub-agent runs in a separate session thread, and Anthropic API caps a single run at 1,000 agents.

The product sits inside [Claude Managed Agents](https://docs.claude.com/en/api/agent-sdk/overview), an API surface Anthropic shipped in April 2026 for running agent sessions on its platform. Managed Agents stores agents and sessions as stateful API resources and exposes a durable event log. Flows, announced at AI Engineer NYC on 16 October 2026, add self-directed multi-agent topology on top of that surface.

The mechanics are simple. You create an agent with a multi-agent config, OpenAI session, and send a first event telling Claude to run a workflow. The lead agent then decides how many sub-agents to spawn per phase, what each one does, and when to retire them. You do not draw the graph.

Anthropic CJ Avilla and Harrison Stall frame the design around an old software problem: one person can hold a small system in their head, but a large project needs layers of trust. Flows apply that argument to agents.

## Why single agents fail: laziness, self-preference bias and goal drift

Single agents fail on long, verifiable tasks for three recurring reasons: agentic laziness, self-preferential bias and goal drift. Anthropic names all three in the AI Engineer NYC 2026 session as the motivation for splitting work across isolated contexts.

Agentic laziness shows up when a model checks 35 of 50 services, sees mostly healthy results, and decides the rest are probably fine. Self-preferential bias shows up when the agent that wrote the code is asked whether the code is good. Goal drift shows up when a constraint like "do not touch production" falls out of context after repeated compaction.

Flows address all three with structure rather than better prompting. A dedicated agent per service means every item gets checked. A reviewer in its own context is not influenced by the generator's reasoning. The original constraint can be copied verbatim into each sub-agent.

The claim does not establish that multi-agent topologies beat single agents on every task. Anthropic own presenters say the approach suits ambitious, long-running work and is a poor fit for something a single agent finishes in 30 seconds.

## Flows compared with Ultra Code and dynamic workflows

Flows and Ultra Code share lineage but target different surfaces: Ultra Code is an interactive feature in Claude Code, while Flows is an API feature in Claude Managed Agents. Anthropic describes Flows as the Ultra Code methodology generalized for programmatic use.

Harrison Stall said on stage that Anthropic took the Ultra Code abstraction and generalized it into Flows on the managed agents API. That makes the two products related but not interchangeable, and the distinction matters when you choose where to build.

| Dimension | Ultra Code (Claude Code) | Flows (Managed Agents) |
| --- | --- | --- |
| Where it runs | Terminal session you drive | Anthropic, or self-hosted sandbox |
| Trigger | Your prompt | Schedule, webhook, CI or your app |
| Setup effort | Type and go | Define agent, environment, budget |
| Best fit | One-off interactive work | Repeatable, embedded workloads |
| Control surface | Local permission prompts | Budgets, interrupts, tool policies |

Claude Code and Claude Managed Agents are separate systems. Claude Code runs on your machine or in a cloud environment and makes API calls to create agents and sessions. The dashboard Anthropic demoed is itself built on the public API.

## How to run a multi-agent workflow through the API

Running a Flows workflow requires an agent definition, an environment, a session and one initial event. Anthropic demo creates an agent with a system prompt, attaches an environment, starts a session with a ticker list, and watches events stream in.

Here is the sequence the presenters walked through in the console and in code.

## Controlling cost and direction: budgets, interrupts and outcomes

Budgets and interrupts are the two levers that keep a Flows run bounded. A session budget stops token spend at a threshold, and an interrupt event lets you halt a run mid-flight, add information and restart from the lead agent's current state.

When a budget is hit, the platform emits a budget-reached event. If you raise the budget, the run picks up where it stopped instead of redoing completed work. Anthropic noted that the model itself does not see the budget; it functions as a guardrail rather than a planning input.

Interruption is the answer when new information arrives. The lead agent holds the state of the run, so after an interrupt it can plan a new flow that accounts for what you told it. What you cannot do today is inject a single step into an existing plan and re-run only the later phases.

Anthropic recommends spending test-time compute unevenly. A cheap, fast model can scan broadly, and a stronger model can review in depth, with agent counts per phase adjusted to match how much each stage matters.

## Templates worth starting from: Bug Hunter and Explainer Studio

Anthropic ships Flows templates that encode working multi-agent patterns rather than blank canvases. Bug Hunter and Explainer Studio are the two the presenters demonstrated, and both are available from the console and from Claude Code.

Bug Hunter slices a pull request into pieces, gives each slice to a reviewer agent, then hands candidates to a prover phase that tries to reproduce the issue before reporting it inline on the PR. The saving is review latency, and the pattern also addresses self-preference bias by keeping review out of the author's context.

Explainer Studio turns a topic into a short animation through research, fact-checking, brief, scene production and sound phases. Anthropic uses it for promotional videos, and the presenters described compressing a process that once took many hours of manual animation.

## Agent safety at scale: vaults, tool policies and network lockdown

Running 1,000 agents safely depends on keeping credentials out of the sandbox the model can read. Anthropic separates the brain, which runs inference and holds session state, from the hands, which are containers and tools where actions happen.

Anthropic egress proxy substitutes real secrets on the way out; the sandbox only ever holds placeholders that fail if used directly. Tool permissions let you deny requests per tool and per path, and environment networking rules restrict egress to named hosts such as api.twilio.com.

Auto mode replaces repeated human approval prompts with a classifier that judges whether a tool call is safe. Anthropic cited the pattern of humans approving nearly everything after enough prompts, which is why a default answer is weaker than a checked one.

These controls support an isolated architecture. They do not by themselves establish regulatory compliance, tenant isolation or suitability for healthcare or financial deployment; those depend on the application and the organization running it.

## Limits and open questions in Anthropic current design

Flows today supports one layer of agent nesting, not arbitrary depth. The presenters said deeper topologies may come later but that safety work has to land first, which is a concrete constraint for anyone designing a fan-out that assumed nested teams.

Sub-agents share a file system and cannot message each other directly through a dedicated API. They can pass information through files, and you can observe thread message sends and receives in the event stream, but there is no permission layer for directory paths.

Anthropic it has no measured curve for diminishing returns as agent counts grow. One presenter disclosed a personal run that spawned 1,000 agents to build a Unix-compatible operating system with a Python interpreter; after roughly 85 hours it had not finished. That is a first-hand anecdote from the talk, not a published benchmark.

Custom tools bridge the sandbox to outside machines and can carry a human-feedback step. Flows is not a real-time control loop for something like a game, because round trips take too long for frame-level decisions.

## Frequently asked questions about Claude Managed Agents Flows

- **How many agents can a single Flows run use?** Anthropic caps a run at 1,000 agents, and the lead agent can also start additional flows in sequence. The presenters noted the previous coordinator-and-roster design had tighter sub-agent limits.

- **Does Flows replace Claude Code?** No. Claude Code is the interactive terminal tool, and Flows is an API surface inside Claude Managed Agents for workloads you trigger from your own systems, schedules or CI. Anthropic describes Flows as a generalization of the Ultra Code approach rather than a replacement.

- **How do you stop a Flows run that is going wrong?** Set a session budget, then send an interrupt event and re-prompt the lead agent. Raising the budget after a pause resumes the run without discarding completed work.

- **Can agents see each other's context?** Each sub-agent gets its own session thread and system prompt, and context windows are separate by default. Sub-agents can exchange information through the shared file system, and you can watch the handoffs in the event stream.

- **What should you check before running Flows in a regulated setting?** Verify the environment networking rules, tool permission policy, vault configuration and auto mode settings, then confirm compliance obligations with your own security team. Anthropic controls help contain an agent; they do not certify an application.

[Source video](https://www.youtube.com/watch?v=kiClTcJUnhc)
