When One Agent Isn’t Enough: Claude Now Builds Its Own Team of Agents on the Fly

TL;DR

Anthropic says Claude Code can now create dynamic workflows, writing a JavaScript harness that coordinates temporary subagents for a single complex task. The company presents the approach as useful for parallel, adversarial, or judgment-heavy work, but says it uses more tokens and is not meant for simple requests.

Anthropic says Claude Code can now build dynamic workflows, allowing the model to write a small JavaScript harness that spawns and coordinates subagents for complex tasks, a shift that could change how developers use AI agents for large reviews, migrations, research, and verification work.

The feature, described by Anthropic in a Claude blog post titled A harness for every task: dynamic workflows in Claude Code, lets Claude create orchestration scaffolding around a task instead of relying on a single agent to plan, execute, and check its own work. According to the source material, the workflow can assign separate roles, wait for results, merge structured outputs, and use independent agents to review or challenge the work.

Thorsten Meyer AI framed the change as Claude drawing an org chart for one job: a dispatcher, specialists, reviewers, and judges that exist only for the task at hand. The confirmed mechanism is narrower and more technical: Claude writes a JavaScript program with functions for spawning and coordinating subagents, while using ordinary JavaScript to handle data and control flow.

Anthropic’s caveat is central to the announcement. Dynamic workflows are described as suitable for complex, high-value tasks, not small edits or routine prompts. The source material says the approach can use meaningfully more tokens, and workflows may spawn many agents if they are not bounded by budgets, pilots, or stopping conditions.

At a glance
announcementWhen: Anthropic published the Claude Code pos…
The developmentAnthropic has described a Claude Code feature called dynamic workflows, which lets Claude write and run task-specific orchestration code to coordinate subagents.
AI Dispatch · Insights · 1 July 2026

When one agent isn’t enough: Claude now builds its own team on the fly

Skills package what you know; loops decide how far you delegate over time. Dynamic workflows are the third axis — within a single task, Claude writes its own harness and assembles a temporary team of subagents. Think of it as Claude drawing an org chart for one job.

Why one agent grinding alone underdelivers
Agentic laziness
Declares done on partial work — 35 of 50 review items.
Self-preferential bias
Grades its own homework — likes what it already produced.
Goal drift
Loses the original objective across turns, especially after context is summarized.
These are the failure modes of one person doing a huge job alone. The cure is the manager’s: divide the work, give isolated briefs, and have someone independent check it.
The harness — an org chart Claude writes for one task
Orchestrator
Claude writes a JS harness on the fly
▼   fan out   ▼
Subagent
own context · model
Subagent
own worktree
Subagent
focused goal
Subagent
isolated
✕ adversarial verify
✕ adversarial verify
✕ adversarial verify
✕ adversarial verify
▼   barrier: wait for all   ▼
Synthesize
merge structured outputs
→ Result
one verified answer
Each subagent gets a clean context window and can run on a cheaper or smarter model — so no single overloaded context gets lazy, biased, or lost. Resumable if interrupted.
The six moves it composes
Classify-and-actroute by task type (switchboard)
Fan-out-and-synthesizeparallel agents → a barrier merges (map/reduce)
Adversarial verificationa separate agent attacks each result
Generate-and-filterbrainstorm wide, keep only survivors
Tournamentagents compete; pairwise judging > scoring
Loop-until-donespawn until a stop condition, not a fixed count
Where it earns its keep — often away from code
Big migrations & refactors Deep research → cited report Fact-check every claim Rank 1,000 tickets by severity Root-cause post-mortems (“why did sales drop?”) Triage a backlog at scale Design/naming by rubric Model routing
One security pattern to memorize — quarantine: agents that read untrusted public content are barred from high-privilege actions; a separate agent does the acting. Separation of duties for autonomous agents.
The take

The shift is from prompting a worker to commissioning a team — more output, more cost, and a manager’s judgment required. Reach for a workflow when a task is big, parallel, adversarial, or judgment-heavy — and when you can feel a single agent getting lazy, grading its own homework, or losing the plot. Bound it (token budgets, pilot first) — workflows can spawn hundreds of agents and burn far more tokens. For everything else, don’t hire five people to change a lightbulb.

Source: “A harness for every task: dynamic workflows in Claude Code,” Thariq Shihipar & Sid Bidasaria (Anthropic), Claude blog, 2 June 2026. Mechanics, patterns & use cases are Anthropic’s; the “org chart” framing is the author’s. A recent, still-evolving feature. Docs: code.claude.com/docs.
thorstenmeyerai.com

When Claude Needs A Team

The development matters because it targets known weaknesses in long agent runs: partial completion, self-review bias, and goal drift over extended tasks. Instead of asking one model instance to handle everything, the workflow can split work across isolated subagents, then have another agent verify the results.

That could make Claude Code more useful for tasks where parallel work and independent checking are more valuable than a single conversational thread. The cited use cases include large refactors, deep research reports, claim-by-claim fact checks, ticket ranking, post-mortem analysis, backlog triage, design judging, model routing, and security review patterns.

The tradeoff is cost and management. Anthropic’s framing makes clear that dynamic workflows do not remove the need for human judgment. They shift the user’s role from prompting one worker to commissioning a temporary agent team, which can produce more coverage but also consume more compute, tokens, and review time.

Amazon

JavaScript development tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Anthropic’s Agent Workflow Arc

The announcement sits inside a broader Claude Code push described by Thorsten Meyer AI as a three-part arc. Skills package organizational knowledge, loops decide how far work is delegated over time, and dynamic workflows coordinate several subagents inside one task.

The pattern borrows from common engineering and management practices: divide a large job, isolate responsibilities, merge outputs, and send results to an independent reviewer. In Anthropic’s description, subagents can have their own context windows, focused briefs, and in some cases different model choices, allowing the system to avoid overloading one context with every detail of a large assignment.

The source material lists six workflow patterns: classify-and-act, fan-out-and-synthesize, adversarial verification, generate-and-filter, tournaments, and loop-until-done. These are presented as composable moves Claude can use when the task benefits from routing, parallel work, judging, or repeated attempts under a stop condition.

“Claude writes its own harness”

— Thorsten Meyer AI

Amazon

AI workflow automation software

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Costs And Limits Still Open

Several details remain unresolved from the supplied material. It is not yet clear how often Claude Code will choose dynamic workflows in ordinary use, how users will set practical limits, or how predictable token costs will be when workflows spawn many agents.

Performance claims also need careful reading. The source material describes likely benefits for complex tasks, but it does not provide independent benchmark results showing how often dynamic workflows outperform single-agent runs across real projects. It also does not specify failure rates, default safety limits, or the exact model-routing behavior across subagents.

Security handling is another area to watch. The source material highlights a quarantine pattern: agents that read untrusted public content should be barred from high-privilege actions, while a separate agent acts on verified information. That is a defensive design pattern, but the supplied material does not confirm how much of it is enforced by product defaults versus left to workflow design.

Amazon

subagent management tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Developers Test The Boundaries

The next step is adoption by Claude Code users on work that is large enough to justify the added cost. Teams are likely to test dynamic workflows first on bounded pilots, such as a refactor review, a research memo, a ticket-ranking job, or a claim-checking pass where the output can be compared against a rubric.

Anthropic’s documentation at code.claude.com/docs is the place users are directed for implementation details. Readers should watch for clearer guidance on token budgets, stop conditions, model selection, safety defaults, and examples showing when a workflow beats a single-agent prompt.

Amazon

AI orchestration platforms

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

What did Anthropic announce about Claude Code?

Anthropic described dynamic workflows for Claude Code, a capability where Claude writes and runs a task-specific JavaScript harness to coordinate temporary subagents.

Is this meant for everyday coding tasks?

No. The source material says the feature is aimed at complex, high-value work. Anthropic’s caveat is that it can use more tokens, so it is not suited to minor edits or simple prompts.

How is a dynamic workflow different from one agent?

A single agent works inside one main context. A dynamic workflow can split a task among separate subagents, give them focused goals, wait for their outputs, and use independent review to check results.

What kinds of tasks could benefit?

The cited examples include large migrations, refactors, deep research, fact-checking, ticket ranking, post-mortems, backlog triage, design judging, and security review patterns.

What remains uncertain?

Open questions include real-world cost, default safety controls, how often workflows outperform single-agent runs, and how users should set budgets and stopping rules.

Source: Thorsten Meyer AI

You May Also Like

Claude Fable 5

OpenAI releases Claude Fable 5, a powerful AI model surpassing previous versions in software engineering, vision, and scientific research, with safety safeguards.

Air Purifier Sizing: CADR, Room Size, and Reality

Ineffective air purifier sizing can compromise your air quality; discover how to accurately match CADR ratings to your room size.

Claude AI recovers an 11 yrs old BTC wallet holding 400k USD

Claude AI helped a user recover an old Bitcoin wallet from 11 years ago containing $400,000 after forgotten password and bug fix.

Google Declaring War on the Web

Google shifts its search strategy towards AI-generated responses, reducing links and potentially dominating information access, raising concerns about web freedom.