Definition
What is a Multi-Agent System?
Last updated
An architecture where multiple AI agents collaborate on a task, each with its own context window, tools, and responsibilities.
Multi-agent systems divide complex work across specialized agents (e.g., a planner, a researcher, a coder) that coordinate through structured handoffs. The main challenge is context management: how agents share information without leaking irrelevant state, duplicating tokens, or operating on stale data. Effective multi-agent architectures scope context per agent and summarize at handoff boundaries.
- Two dominant shapes: orchestrator/worker, where a lead agent delegates scoped sub-tasks, and peer patterns, where specialists hand work along a pipeline.
- Context management is the core failure mode: a UC Berkeley study of 1,600+ traces found multi-agent failure rates as high as 86.7%, mostly at the boundaries between agents.
- Every handoff is a lossy compression event; causal reasoning, implicit constraints, uncertainty signals, and rejected approaches degrade at each hop.
- Context isolation is the fix that works in production: each agent gets its own scoped window and returns a compressed summary, not its raw history.
- Isolation is moving into the models themselves: GPT-5.6's Ultra mode spawns subagents with per-agent context windows directly in the weights.
How multi-agent systems work
Multi-agent systems split work across agents in one of two shapes. In the orchestrator/worker pattern, a lead agent decomposes the task, delegates scoped sub-tasks to workers, and synthesizes their results. In peer patterns, specialists hand work along a pipeline: a researcher passes to a synthesizer, which passes to a writer. Either way, agents coordinate through handoffs, and every handoff moves context from one agent’s window into another’s.
That transfer is where the architecture succeeds or fails. A UC Berkeley study of more than 1,600 traces across seven frameworks found failure rates as high as 86.7%, and most of the 14 failure modes it catalogs are inter-agent problems: one agent’s state contaminating another’s reasoning (bleed), full histories cascading between agents (explosion), and agents acting on superseded state (drift).
Why multi-agent systems matter
Splitting work lets each agent operate in a smaller, cleaner context than one agent juggling everything, which directly counters context rot. Done well, the gains are large: Anthropic’s research system, where each sub-agent works in its own window and returns only a 1,000 to 2,000 token summary, outperformed single-agent Claude Opus 4 by 90.2% on internal evaluations.
The catch is that handoffs are lossy. Causal reasoning, implicit constraints, uncertainty signals, temporal ordering, and rejected approaches all degrade predictably at handoff boundaries, and the loss compounds across hops. This is why the first agent in a pipeline is reliable and the fifth is not, even when each agent works correctly. Structured handoff schemas, not bigger models, are the fix.
The pattern is now moving into the models themselves. GPT-5.6’s Ultra mode decomposes a task into parallel subagents, each with its own context window, baked directly into the weights. That automates isolation but seals the handoff boundary where you can no longer inspect it.
Common misconceptions about multi-agent systems
- “More agents means better results.” Each added agent adds a handoff, and each handoff loses signal. If a single agent with good context engineering can do the work, the multi-agent setup is usually overhead.
- “The failing agent is the problem.” Usually the agent is fine and what it received is not. Diagnose the boundary before swapping the model.
- “Agents should share everything.” Shared state is how bleed and explosion happen. Production frameworks from Google, Anthropic, and LangChain all converged on passing compressed results, not raw context.
- “Isolation solves coordination.” Isolation fixes accumulation, not handoff. Sub-agents that never see each other’s decisions can make locally sensible, globally conflicting choices.
Multi-agent systems and Wire
Wire gives each agent in a multi-agent system its own scoped data boundary. Every container is an isolated, permissioned environment with its own MCP tools, so a sub-agent connected to one container cannot read into a sibling’s. Handoffs become explicit and inspectable: one agent writes results with wire_write, and the next retrieves exactly what it needs with wire_search or wire_navigate instead of inheriting a full history.
FAQ
Frequently asked questions
Common questions about Multi-Agent System.
What is the difference between orchestrator/worker and peer multi-agent patterns?
Why do multi-agent systems fail more often than single agents?
What is context isolation in a multi-agent system?
Should agents pass full conversation history at handoffs?
Do I still need multi-agent architecture now that models spawn their own subagents?
Further reading
Articles about Multi-Agent System
GPT-5.6 subagents: context isolation in the weights
GPT-5.6 Sol's Ultra mode gives each subagent its own context window. It solves context isolation but not handoff, and it multiplies your token bill fast.
Five criteria of good context for AI agents
A 2026 paper formalizes five criteria for good AI agent context: relevance, sufficiency, isolation, economy, and provenance. Here's how to design for each.
Sub-agent context isolation: the fix for context rot
Sub-agent context isolation gives each agent its own scoped window, stopping the context rot that kills multi-agent runs. Here's the pattern and its limits.
Context offloading: 3 patterns for AI agents
Context offloading keeps an AI agent's working context window small by moving state to a destination outside it. Three patterns, and what each one costs.
All terms
View full glossaryPut context into practice
Create your first context container and connect it to your AI tools in minutes.
Create Your First Container