Multi-Agent Systems with LLMs: When to Split Work Across Agents
How multi-agent LLM systems work: supervisor and peer topologies, context isolation, handoffs, shared state, costs, and when one agent is better.
Published December 1, 2026
As agent tasks grow, one context window starts to overflow with tool results, instructions and history. Multi-agent systems split the work: a lead agent plans, sub-agents handle focused pieces with their own clean context, and results flow back. Done well, this improves quality on broad tasks like research. Done badly, it multiplies cost and confusion.
The concept
The main benefit is context isolation. A sub-agent investigating one question can read dozens of pages without polluting the lead agent's context; it returns only a concise summary. Sub-agents can also run in parallel, which cuts wall-clock time for breadth-first tasks such as researching several competitors at once.
The costs are real. Each agent consumes tokens for its own instructions and history, so multi-agent runs can use several times more tokens than a single agent. Coordination failures appear: duplicated work, agents waiting on each other, or sub-agents that misunderstand a vague delegation. Tasks where every step depends tightly on the previous one, like most coding changes, often work better with one agent.
Supervisor topology
Common topologies
| Topology | Shape | Good for | Risk |
|---|---|---|---|
| Supervisor / lead + subagents | Hub and spoke | Parallel research, broad tasks | Lead becomes bottleneck |
| Pipeline | Agent A → B → C | Staged processing (draft → review) | Errors cascade |
| Handoff | Agents transfer control | Support triage → specialist | Lost context on handoff |
| Peer / group chat | Agents converse freely | Brainstorming, debate | Loops, high cost |
The cost of more agents
Practical examples
A clear delegation message
Sub-agents need an objective, boundaries and an output format.
Objective: Find pgvector's index types and their trade-offs for 10M+ vectors.
Scope: official docs and the pgvector README; ignore blog benchmarks older than 2025.
Output: <=200 words, a table of index types (build time, recall, memory), and 3 source links.
Stop after: 8 tool calls.Shared scratchpad instead of passing everything around
Agents write findings to a store; the lead reads summaries.
store.write(f"findings/{agent_id}.md", summary)
# lead agent later:
context = "\n\n".join(store.read(p) for p in store.list("findings/"))Handoff with explicit context transfer
Pass the facts the next agent needs, not the whole transcript.
handoff = {
"to": "billing_specialist",
"customer_id": "c_812",
"issue": "double charge on 2026-11-02, both ₹1,499",
"already_tried": ["checked payment gateway: two captures"],
}Common mistakes
- Using multiple agents for tightly coupled sequential tasks.
- Vague delegations that make sub-agents duplicate or miss work.
- Passing full transcripts between agents instead of summaries.
- No global budget across all agents.
Key takeaways
- Multi-agent systems trade tokens for context isolation and parallelism.
- Best for broad, parallelisable tasks such as research.
- Delegate with objective, scope, output format and limits.
- Prefer a single agent when steps depend tightly on each other.
FAQ
How do agents share information?
Through messages returned to the lead agent, a shared store (files, database), or explicit handoff payloads.
Do sub-agents need different models?
Not necessarily, but a common optimisation is a strong model for the lead and cheaper, faster models for narrow sub-tasks.
How do I debug multi-agent runs?
Trace every agent's calls with a shared run ID so you can follow the whole tree of decisions.