10 Design Patterns for Multi-Agent Collaboration
This article presents ten battle-tested design patterns for multi-agent collaboration, moving from single-agent self-correction to decentralized collective intelligence. It explains the core architectural decisions behind multi-agent systems, compares the patterns in a single overview table, and analyzes each one in terms of its structure, orchestration techniques, applicable scenarios, and limitations. The article closes with a selection methodology based on four questions and four engineering guardrails—explicit state contracts, decidable termination conditions, graceful degradation, and full observability—to help teams choose the right topology and keep collaboration both flexible and controllable.
10 Design Patterns for Multi-Agent Collaboration
I. The Real Difficulty Is Architecture, Not Tools
When building multi-agent systems, engineering teams tend to hit the same set of problems. Should two agents collaborating on a long document use a one-shot pipeline or an iterative loop with feedback? When five roles analyze the same topic, should they work in a serial relay, split the work in parallel, or vote? When a security review step is inserted into the flow, how should its three branches—pass, block, and return for retry—be expressed in the state machine?
These problems share a common trait: orchestration frameworks provide rich interfaces, and graph structures, conditional edges, concurrent dispatch, and state persistence are all easy to call. What is missing is a reusable basis for deciding which topology fits which scenario. As a result, systems easily degrade into one of two extremes—either a rigid linear chain where any exception can only be resolved by a manual rerun, or a crowd of agents in free-form conversation where costs spiral out of control and results are not reproducible.
So the core asset of multi-agent engineering is not the amount of code but a pattern language: abstracting recurring collaboration structures into a small set of paradigms, each with explicit preconditions, state fields, termination conditions, and fallback paths. Below are ten battle-tested collaboration patterns that form a complete spectrum from single-point self-correction to decentralized collective intelligence.
II. The Ten Patterns at a Glance
| Pattern | Core Idea | Key Orchestration Technique |
|---|---|---|
| Reflection and Revision | Generate, review, revise; loop until it passes | Conditional edges + state loops |
| Multi-Party Debate | Multiple roles argue + a moderator decides | Concurrent execution + structured output parsing |
| Parallel Scatter and Gather | Fan out to subtasks, then merge | Dynamic dispatch interface |
| Supervisor Routing | A dispatcher picks the next executor | Conditional routing + budget control |
| Pipeline Relay | Each stage does one thing and hands off | Explicit state contracts |
| Ensemble Voting | Multiple independent solutions converge on consensus | Sampling aggregation + agreement checks |
| Hierarchical Orchestration | Upper layers decompose, lower layers execute, results roll up | Recursive subgraphs |
| Human-in-the-Loop Approval | Insert human confirmation at key nodes | Interruption and resumption |
| Blackboard Sharing | Multiple roles read and write a shared workspace | Shared state + conflict resolution |
| Auction-Based Assignment | Sub-agents claim tasks based on capability | Capability declaration + matching strategy |
III. Pattern-by-Pattern Analysis
1. Reflection and Revision: Turning Quality Constraints into Decidable Stop Conditions
The structure is the simplest, but the payoff is the most direct: a producer generates a draft, a reviewer scores it against an explicit checklist and returns structured feedback, and if it does not pass, it goes back to the producer with that feedback. There are three engineering essentials. First, review feedback must be structured (dimensions, scores, actionable fixes); otherwise the loop degrades into meaningless rewriting. Second, you must set a maximum number of iterations and a “stop if no improvement” check to avoid two agents pulling at each other indefinitely. Third, keep a snapshot of every round so the quality curve can be traced back.
def route_after_review(state):if state["round"] >= MAX_ROUNDS:return "finalize"if state["review"]["passed"]:return "finalize"return "revise"
Applicable scenarios: copy polishing, code review, and validation of structured extraction. Not applicable: tasks that require real-time external data or that carry a very high cost per run.
2. Multi-Party Debate: Exposing Hidden Assumptions Through Disagreement
Multiple roles (such as a supporter, a challenger, and a domain expert) produce independent arguments in parallel, and a moderator summarizes the consensus, the disagreements, and the items that still need verification. The value is not in “arguing out the truth” but in putting implicit premises on the table. The implementation requires each role to output a parseable structured conclusion, with the moderator responsible for deduplication and conflict labeling. The concurrent part needs timeouts and tolerance for partial failure, so a verdict can still be produced when one line of conclusions is missing.
3. Parallel Scatter and Gather: Controlling Fan-Out Width and Merge Semantics
For each element in a collection, a subtask is generated dynamically, executed in parallel, and then merged uniformly. Three things are key: fan-out width must have an upper limit to avoid a sudden multiplication of calls; subtasks must have no shared write conflicts; and the merge stage must clearly define whether it concatenates, deduplicates, selects the best, or performs a second synthesis. It fits chapter-by-chapter document processing, multi-source retrieval integration, and batch code migration.
4. Supervisor Routing: Centralizing Decisions in One Auditable Dispatch Point
A dispatch agent selects the next executor based on the current state, forming a star topology. The advantages are controllability, easy observability, and easy enforcement of budget and permission constraints. The drawback is that the dispatcher can become a bottleneck and a single point of misjudgment. In practice, routing is often built as a two-layer structure of “dispatcher proposes + rules validate,” where the rule layer enforces hard constraints (retry limits, prohibition of sensitive operations).
5. Pipeline Relay: Replacing Implicit Understanding with Explicit Contracts
Each stage has a single responsibility and passes work forward through clearly defined handoff fields. Its stability comes from contracts rather than intelligence: a missing field fails fast instead of making the downstream stage guess. It fits scenarios with clear processes and high auditability requirements, such as a pipeline from data cleaning to database ingestion.
6. Ensemble Voting: Trading Redundancy for Stability
The same task is solved independently by multiple agents with slightly different configurations, then converged by majority agreement or weighted scoring. What it improves is stability, not the upper bound, and the cost is a multiple increase in spend. The decision logic must distinguish three states—“full agreement,” “majority agreement,” and “no consensus”—and fall back to a human or a stronger model when there is no consensus.
7. Hierarchical Orchestration: Recursive Decomposition and Layer-by-Layer Roll-Up
The upper layer decomposes the goal and dispatches subgoals; the lower layer executes and results are aggregated layer by layer. It is essentially a recursive subgraph and needs a strict depth limit and termination conditions, otherwise it can subdivide endlessly. It fits naturally layered problems such as large-scale engineering overhauls and research reports.
8. Human-in-the-Loop Approval: Holding High-Risk Actions at Interruption Points
Execution pauses at a key node and resumes only after human confirmation. In the design, the “pending confirmation context” must be fully persisted so that resumption does not depend on session memory. It must also distinguish three outcomes—approve, reject, and needs more information—which correspond to continue, terminate, and roll back and redo.
9. Blackboard Sharing: A Shared Workspace with Conflict Resolution
Multiple roles read and write the same shared state, each contributing incrementally. The advantage is flexible collaboration; the risks are concurrent write conflicts and state bloat. You must agree on field ownership, write priority, and a versioning strategy, and impose capacity and structural constraints on the shared area.
10. Auction-Based Assignment: Matching Tasks by Declared Capability
Sub-agents declare their areas of expertise and current load, and the dispatcher selects the best match. This gives the system a degree of adaptivity, but it requires keeping capability descriptions consistent to avoid “everyone claims to be good at everything.”
IV. Selection Methodology and Engineering Guardrails
Selection can be reduced to four questions. Can the task be clearly decomposed (if so, go parallel or hierarchical)? Can quality be judged automatically (if so, use reflection or voting)? Are there irreversible actions (if so, enforce approval and interruption)? What are the failure cost and the budget (if high, reduce fan-out and add caching and quotas)?
Whatever pattern you choose, four kinds of guardrails should be in place. Make state contracts explicit, with fixed fields and default values. Make termination conditions decidable, including maximum rounds, timeouts, and stop-on-no-improvement. Make failure degradable, so that when partial results are usable the run does not fail as a whole. Make the whole process observable, recording each round’s inputs and outputs, routing decisions, and consumption into a unified logging and monitoring/alerting system, and archiving intermediate artifacts with object storage. If you need to elastically handle concurrent fan-out, long-running subtasks can be decoupled through a message queue and scaled on demand by a container platform; such general-purpose cloud capabilities can be combined as needed without binding to a specific implementation.
V. Conclusion
The maturity of a multi-agent system is not reflected in the number of agents but in the accuracy of pattern selection and the completeness of failure paths. Treat the ten paradigms as a vocabulary: clarify the constraints first, then pick the topology, and pair it with the four guardrails of contracts, termination, degradation, and observability. Only then can collaboration be both flexible and controllable.
