Multi-Agent Teams Explained
One agent, one job
A single agent is a loop: it takes a goal, reasons, calls tools, observes the result, and repeats until the job is done or it gets stuck. That loop handles a surprising amount of work — answering a question, writing a function, summarising a document, processing an invoice. But it has limits. A single agent has one context window, one set of instructions, and one perspective. Give it a job with many parts, and it starts to lose track: it forgets an earlier instruction, mixes up two subtasks, or spends its whole context on the first half of the work and rushes the second.
Multi-agent teams exist for that moment. Instead of one agent doing everything, several agents each do one part, and they coordinate. The idea is old — it is how human teams work — and the same trade-offs apply: a team can do more than any one member, but only if the work is split well and the handoffs are clean.
How teams split work
There are a few common patterns, and each fits a different kind of job.
The simplest is the pipeline, or chain. One agent researches, the next writes, the next reviews. Each agent gets the previous agent’s output as its input, and each has one clear job. This works well for content, research and document work, where the steps are known in advance and the order is fixed.
The second is the crew of roles. Each agent has a role — researcher, writer, editor, fact-checker — and they work together on a shared goal, handing subtasks to each other as needed. CrewAI is built around this pattern: you define agents with a role, a goal and a backstory, assemble them into a crew, and let delegation happen inside it.
The third is the supervisor pattern. One coordinator agent plans the work, splits it into tasks, hands each task to a specialist agent, and combines the results. Claude Code subagents work this way: the main session delegates focused jobs to subagents, each in its own context, and takes back only a summary.
How agents hand work to each other
A handoff is a message with a job attached, and its quality decides whether the team works. A good handoff has four parts: what to do, what the input is, what done looks like, and what to do if something goes wrong. A bad handoff is “handle the billing part” with no context — the next agent has to guess, and guessing is where errors start.
Context is the hardest part of multi-agent work. Each agent has its own context window, so the coordinator must decide what to pass along: the full history is too much, a bare summary is too little. The practical answer is to pass the task, the relevant facts, and the output of the previous step, and to keep a shared record that every agent can read and update.
When one agent is not enough
Use a team when the job has parts that need different skills, different tools, or different instructions. A researcher needs web search and a sceptical brief; a writer needs the research and a style guide; a reviewer needs the draft and a checklist. One agent with all three briefs will blur them. Use a team when the parts can run in parallel and speed matters — five subagents exploring five parts of a codebase finish faster than one agent doing them in sequence. And use a team when isolation helps: a subagent with only read access can explore safely, while the main agent keeps write access.
Do not use a team when one agent can do the job. Every extra agent adds cost, latency and failure points. A team of three agents that each call a model is roughly three times the cost of one, and each handoff is a chance for information to be lost or garbled.
What goes wrong
The common failures are the same as in human teams. The work is split badly, so two agents do the same thing or nobody does a step. The handoffs are vague, so each agent invents its own version of the job. The coordinator loses track, so a failed subtask is never retried or reported.
The fixes are unglamorous. Define each agent’s job in writing, with a clear description of when it should be used. Make handoffs explicit and checkable. Give the coordinator a way to see the state of every task. Set step limits and time-outs so loops stop. And always have one agent — or one human — responsible for checking the final result before it goes out.
Sources
- CrewAI documentation: docs.crewai.com
- LangChain and LangGraph documentation: python.langchain.com
- Anthropic, Claude Code subagents: code.claude.com/docs/en/sub-agents