Multi-agent system (multi-agent orchestration)
Several AI agents with separate roles and contexts working on one task, usually coordinated by a lead agent or a fixed workflow.
A multi-agent system runs several AI agents with separate roles and contexts on one task, coordinated by a lead agent, a script or a fixed workflow. Vendors also call it multi-agent orchestration. The point is to split work that is too big or too broad for one agent’s context.
The main benefit is context isolation: each agent gets a clean, focused context window instead of one bloated conversation, and independent parts run in parallel. The costs are many times the tokens, harder debugging, and failures in the hand-offs, where one agent misreads another’s summary. Anthropic reported that its multi-agent research system used about 15 times the tokens of a chat and beat a single Claude Opus 4 agent by 90.2% on its internal research eval (June 2025). The common shapes are subagents started by a main agent, an agent team of long-running peers, a dynamic workflow where a script runs many agents, and the orchestrator-workers pattern in your own code, often built on fan-out and fan-in. The first three columns of the table follow the Claude Code docs.
A single agent with good tools is often enough; split when subtasks are truly parallel or need separate context. When control passes from one agent to another, say from a triage agent to a billing agent, that is an agent handoff. When the other agent belongs to another vendor or company, A2A is the open protocol for it.
| Question | Subagents | Agent team | Dynamic workflow | Orchestrator-workers (in your code) |
|---|---|---|---|---|
| Who decides what runs next | Main agent, turn by turn | Lead agent, turn by turn | The script | Orchestrator model, within your code’s limits |
| Where intermediate results live | Main agent’s context window | A shared task list | Script variables | Your variables, database or queue |
| Typical scale | A few per turn | A handful of long-running peers | Dozens to hundreds per run | As many as you allow |
| If interrupted | Restarts the turn | Teammates keep running | Resumable in the same session | Depends on your checkpoints |
| Best for | Focused search or review | Long parallel work needing coordination | Large sweeps, migrations, cross-checked research | Product features with fixed limits |
Sources
- Anthropic: How we built our multi-agent research system anthropic.com
- Claude Code Docs: Orchestrate subagents at scale with dynamic workflows code.claude.com
Related terms
- Subagent: A separate agent run with its own fresh context, started by a main agent for one subtask.
- Orchestrator-workers pattern (supervisor): One model plans the task, hands parts of it to worker models or subagents, and combines their results.
- A2A (Agent2Agent protocol): An open protocol for one AI agent to hand a task to another agent, possibly from another vendor, and follow it until it is done.
- Tokens: The pieces of text models read and write, and the unit you pay for.
- Agent control plane: The layer that starts, watches, limits and stops many AI agents at once: queues, permissions, budgets, logs and a view of who is doing what.
- Agent team: A lead agent coordinating several long-running agent sessions that share a task list and message each other directly.
- Dynamic workflow: An orchestration script the agent writes at run time. A runtime executes it, starting many subagents in phases and combining their results in code.
- Agent handoff: One agent passes control of a conversation, together with its context, to a specialist agent or to a person.
- Agent swarm: A mostly marketing name for many AI agents working in parallel on one task; in practice usually a coordinated multi-agent system.
