Multi-agent orchestration
Splitting work across subagents or cooperating agents with separate context.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
Overview
Multi-agent systems split a job across several agent instances: an orchestrator hands focused subtasks to subagents, each with its own context window and tools, and combines what they return. Coding agents use this for parallel searches and reviews; research systems use it to explore several leads at once.
The benefits are cleaner context and parallelism; the costs are more tokens, harder debugging and agents that duplicate or contradict each other. Doing it well means giving each subagent a precise brief and an expected output format, limiting what it can change, isolating parallel work (for example in separate git worktrees), and tracing the whole run.
What you will practise
- Write subagent briefs with a clear scope and output format
- Run parallel agents in isolated workspaces such as git worktrees
- Trace a multi-agent run end to end
- Judge when one agent with better tools would do the job
Learning paths
- Production AI agents: approval, multi-agent and evals
For engineers moving past single-agent demos: add code-level approval gates, context isolation, multi-agent patterns and automated evals you can trust in CI.
Tutorials
- Connect two agents with the A2A protocol
Publish an agent card, send a task from one local agent to another with the official Python SDK, and see where MCP fits.
- Subagents in Claude Code: delegate without losing control
Define Claude Code subagents with their own tools, model and permissions, keep noisy work out of your main context, and avoid conflicts in parallel runs.
Workflow recipes
- Refactor in parallel with git worktrees and two agents
Use git worktrees to run Claude Code and Codex in parallel on the same refactor from one written plan, compare tests, diff size and readability, then merge one.
Articles
- Multi-agent systems: when one agent is not enough
Orchestrator-workers, subagents and handoffs compared on context, cost and failure modes.
- Agent frameworks compared: Claude Agent SDK, OpenAI Agents SDK, LangGraph, Pydantic AI, Mastra, Google ADK
Six agent frameworks on one fixed table: language, durable execution, tracing, MCP support and lock-in, with notes on which kind of project each one fits.
- Workflows vs agents: start with the simplest thing that works
Most LLM features should be a fixed workflow, not an agent. How to tell which one you need, when an agent earns its cost, and the useful patterns in between.
Tools for this skill
9 of 13 tools tagged with this skill.
A2A (Agent2Agent protocol)
Open protocol for agents on different systems to share tasks.
Agent Development Kit (ADK)
Google's code-first framework for building, evaluating and deploying agents.
Agno
Python framework for agents, teams and workflows, served as APIs with AgentOS.
Claude Agent SDK
Build agents on the same harness that powers Claude Code.
Claude Code
Anthropic's agentic coding tool for the terminal, IDEs, desktop and web.
CrewAI
Python framework for role-based teams of agents, with a paid platform for running them.
Deep Agents
LangChain harness with planning, files and subagents.
Google Antigravity
Google's agent-first development environment, with an app, IDE and CLI.
JetBrains Air
JetBrains' workspace for running coding agents such as Junie, Codex and other ACP agents.
Key terms
Words you will meet while learning this, defined in the glossary.
- Agent card
A JSON document an A2A server publishes to describe its agent: what it does, its skills, its endpoints and how clients must authenticate.
- Agent2Agent (A2A)
An open protocol that lets agents built on different systems discover each other's capabilities and exchange tasks and results.
- Handoff (agents)
A transfer of control between agents: one agent passes the conversation and its history to another, which carries on with the user.
- Multi-agent system
An application in which several agents, often with different roles, tools or instructions, cooperate or hand work to each other.
- Orchestrator-workers
A pattern where one model breaks a task into subtasks at run time, hands each to a worker model, and combines the results.
- Subagent
A separate agent instance with its own context window, launched by a main agent to handle a focused task and report back a short result.