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?
In orchestrator/worker, a lead agent decomposes the task, delegates sub-tasks to worker agents, and synthesizes their results. In peer patterns, specialized agents hand work directly to each other in a pipeline (research, then synthesis, then writing). Both fail the same way: handoffs that carry too much, too little, or stale context.
Why do multi-agent systems fail more often than single agents?
Every handoff between agents is a new opportunity for context to break. UC Berkeley's MAST study of 1,600+ traces found failure rates up to 86.7%, and most of its 14 failure modes are inter-agent problems (misalignment, lost context, stale state) rather than problems any single agent has on its own.
What is context isolation in a multi-agent system?
Each sub-agent gets its own context window scoped to one task, and only a compressed result crosses back to the parent. Anthropic's multi-agent research system used this pattern to outperform single-agent Claude Opus 4 by 90.2%: sub-agents explored in tens of thousands of tokens but returned only 1,000 to 2,000 token summaries.
Should agents pass full conversation history at handoffs?
No. Passing full histories causes context explosion, where token counts cascade as each agent inherits everything upstream. Production systems pass structured summaries instead, with explicit fields for reasoning, constraints, confidence, and rejected approaches, because those are the categories that unstructured prose summaries compress away.
Do I still need multi-agent architecture now that models spawn their own subagents?
In-weights subagents, like GPT-5.6's Ultra mode, automate the isolation but hide the handoff seam inside the model, so you cannot inspect or shape what each subagent passes to the next. Teams that need to control that boundary for provenance or permissioning still manage context outside the model.

Put context into practice

Create your first context container and connect it to your AI tools in minutes.

Create Your First Container