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

TL;DR

Anthropic’s Claude Code team has described dynamic workflows, a capability that lets Claude write a task-specific JavaScript harness to spawn and coordinate subagents. The company frames it as useful for complex, high-value work, while warning that it can use far more tokens than a single-agent task.

Anthropic’s Claude Code team has described a capability called dynamic workflows, in which Claude can write a task-specific JavaScript harness to spawn and coordinate subagents during one complex job, a change that could reshape how developers and teams use AI for large, high-value tasks.

The confirmed development is that Claude Code can use dynamic workflows to create orchestration code around the model, rather than relying on one agent to plan, execute, review, and finish the work inside a single context. According to the source material, the harness can route work, fan tasks out to multiple agents, wait for results, merge structured outputs, and assign an independent reviewer or judge.

Anthropic’s own caveat is central to the announcement: dynamic workflows use meaningfully more tokens and are meant for complex work, not routine edits. The source frames the feature as best suited to tasks such as large refactors, deep research, large-scale ticket ranking, root-cause reviews, backlog triage, model routing, and adversarial fact-checking.

The mechanics described are specific: Claude writes a small JavaScript program that uses functions for spawning and coordinating subagents, while ordinary JavaScript handles data management. Each subagent can receive its own clean context window, focused goal, and, according to the source material, potentially a different model depending on cost or capability needs.

At a glance
announcementWhen: described by Anthropic on June 2, 2026;…
The developmentAnthropic’s Claude Code team has published details on dynamic workflows, a Claude Code capability that lets Claude assemble and coordinate temporary subagents for a single complex task.
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

A Shift From Agent To Team

The development matters because it moves Claude Code from a single-worker pattern toward a temporary team model for AI tasks. That could help with work where one agent is more likely to miss steps, favor its own answer, or lose the original objective across a long run.

The source material identifies three risks dynamic workflows are meant to address: agentic laziness, where an agent declares work done too early; self-preferential bias, where it grades its own work too kindly; and goal drift, where original constraints fade as context is compressed or summarized. Those are claims about behavior patterns, not independently measured outcomes in the provided material.

For readers using AI coding tools, the practical impact is cost and control. A workflow that spawns many subagents may produce broader coverage or stronger review, but it can also burn far more tokens and require tighter budgets, stop conditions, and pilot runs before being trusted on production-scale work.

Intelligent Agentic AI Systems with JavaScript in 2026: Designing Autonomous Workflows with LLMs, Tools, and Real-World Integrations (Practical AI Systems Engineering Series Book 2)

Intelligent Agentic AI Systems with JavaScript in 2026: Designing Autonomous Workflows with LLMs, Tools, and Real-World Integrations (Practical AI Systems Engineering Series Book 2)

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Third Part Of Claude Code Arc

The Thorsten Meyer AI source describes dynamic workflows as the third part of a loose Claude Code arc: Skills package what an organization knows, loops decide how long delegation continues over time, and dynamic workflows let Claude organize multiple agents inside one task.

Anthropic’s June 2, 2026 Claude blog post, credited in the source to Thariq Shihipar and Sid Bidasaria, is cited as the basis for the mechanics, patterns, and use cases. The “org chart” comparison in the supplied material is attributed to the Thorsten Meyer AI framing, not to Anthropic as a direct product term.

The listed workflow patterns include classify-and-act, fan-out-and-synthesize, adversarial verification, generate-and-filter, tournament-style judging, and loop-until-done. The security pattern highlighted in the source is quarantine: agents that read untrusted public content should be kept away from high-privilege actions, while a separate agent performs the action.

“The feature is called dynamic workflows, and the plain description is that Claude writes its own harness — the orchestration scaffolding around the model — custom-built on the fly for the task in front of it.”

— Thorsten Meyer AI, citing Anthropic’s Claude Code team

Hierarchical Sub-Agent Orchestration in CrewAI and LangGraph: Optimizing task delegation and state-persistence to reduce token overhead and prevent agentic loops

Hierarchical Sub-Agent Orchestration in CrewAI and LangGraph: Optimizing task delegation and state-persistence to reduce token overhead and prevent agentic loops

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Costs And Results Still Open

Several details remain unclear from the supplied material. Anthropic is said to warn of higher token use, but the source does not provide public benchmark figures showing average cost increases, success-rate gains, or performance differences across task categories.

It is also not clear how widely the capability is available across Claude Code environments, what limits apply by plan or model, or how users should audit workflow decisions after a task finishes. The examples point to promising use cases, but the provided material does not establish that dynamic workflows outperform simpler agent setups in every case.

Security claims should also be read carefully. The quarantine pattern described in the source is a risk-reduction design, not proof that autonomous workflows are safe against prompt injection, data leakage, or tool misuse in all deployments.

MASTERING CLAUDE AI: The Ultimate Human-Friendly Guide to Unlocking the Full Power of Anthropic's Claude Models (Claude AI Mastery Series: Build, Automate, and Scale Intelligent Systems)

MASTERING CLAUDE AI: The Ultimate Human-Friendly Guide to Unlocking the Full Power of Anthropic's Claude Models (Claude AI Mastery Series: Build, Automate, and Scale Intelligent Systems)

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

User Testing Will Define Adoption

The next milestone is practical use: developers and teams will test whether dynamic workflows justify their added cost on jobs that are large, parallel, adversarial, or judgment-heavy. The source recommends bounding usage with token budgets, pilot runs, and clear stop conditions before letting workflows spawn many agents.

Anthropic’s documentation at code.claude.com/docs is cited as the place for current technical guidance. For now, the confirmed takeaway is narrower than the broader pitch: Claude Code can assemble temporary subagents through a task-specific harness, but users still need to decide when the extra structure is worth the spend.

AI Tools for Everyday Tasks: The Complete Beginner’s Guide To Working Smarter with AI

AI Tools for Everyday Tasks: The Complete Beginner’s Guide To Working Smarter with AI

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’s Claude Code team described dynamic workflows, a capability where Claude can write a JavaScript harness that spawns and coordinates subagents for one complex task.

Is this meant for everyday coding edits?

No. The supplied source says Anthropic cautions that the approach uses meaningfully more tokens and is built for complex, high-value tasks, not small fixes such as typo corrections.

What kinds of tasks could use dynamic workflows?

The source lists large refactors, deep research, claim checking, large-scale ticket ranking, post-mortems, backlog triage, design judging, and model routing as possible uses.

What remains unknown about the feature?

The source does not provide benchmark results, detailed token-cost ranges, or full availability limits. It is also unclear how teams will audit and govern large multi-agent runs in practice.

Why does this matter for AI coding tools?

It suggests a move from one AI agent handling everything to coordinated specialist agents. That may improve coverage on complex work, but it also adds cost, oversight needs, and security questions.

Source: Thorsten Meyer AI

Wellness content on this site is informational and not a substitute for professional medical guidance.

You May Also Like

The Delegation Ladder: The Four Agentic Loops, and What Each One Lets You Stop Doing

Anthropic’s Claude Code team defined four agentic loop patterns, while Thorsten Meyer AI framed them as a delegation ladder.

Memory Workout and an Antidote to Worry

Recent studies suggest that targeted memory exercises may help reduce worry and anxiety, offering a new approach to mental wellness.

Apple’s iPhone 18 Pro Features: Everything We Know So Far

Detailed overview of confirmed and rumored features for Apple’s upcoming iPhone 18 Pro, including design, hardware, and release expectations.

A Frontier AI Model Just Went Dark for 18 Days. The Kill-Switch Is Real Now.

Commerce lifted controls on Claude Fable 5 and Mythos 5 after an 18-day outage, setting a new test for frontier AI release rules.