A multi-agent system coordinates multiple agents to carry out tasks or pursue related goals. Instead of asking one agent to handle every responsibility, it can divide work among agents with narrower roles—like a customer support team with triage, billing, and technical specialists. section 1.4 section 1.6
Multiple agents can also work in parallel or hold different slices of a problem in their separate context windows. Some problems, such as negotiation or adversarial simulations, require independent actors with distinct goals. These benefits come with trade-offs: coordination can increase cost, latency, and unpredictability. section 1.4 section 4.1
Three common coordination patterns can be combined as needed:
- Agent flow: specialized agents work sequentially, passing results along an assembly line. Use it for well-defined, multistep tasks. section 1.6
- Orchestration: a central agent plans and delegates work to specialized agents, which report back to it. section 1.6 section 4.1
- Collaboration: agents communicate as a team, offering feedback and criticism. This can help with complex problems but may cost more computation and time. section 1.6
Figure 4.1 The three well-established patterns for building multi-agent systems: agent flow (assembly line), orchestrator (hub-and-spoke), and collaboration (peer-to-peer).
Compare the communication shapes of flow, orchestration, and collaboration. section 4.1
Design each pattern around decision-making, control, and communication. Decision-making is authority to choose the next action; control is authority to execute it. An agent can have one without the other. Also decide what context each decision-maker needs and how agents exchange results. section 4.1
Separating planning from work
A research agent may choose three sources from ten. A worker can then fetch and summarize those sources. The first agent decides what to do; the second carries out the work. section 4.1
Keep agent roles and communication channels clear, rather than assuming more agents will automatically help. Typed input and output schemas can reduce brittle string parsing between agents; tracing helps reveal interactions and tool calls when debugging. For dependable deployment, also plan where agents run, how state is maintained, and how changes are rolled out. section 4.0 section 2.6 section 8.3








