ArchitectureAgent Swarms
Six ways to coordinate AI agents, and the controls each one needs
Most multi-agent systems are assembled from six coordination patterns: a supervisor delegating to workers, hierarchies of supervisors, fixed pipelines, parallel fan-out with aggregation, a shared blackboard and critique loops. Each handles state, failure and review differently. This page explains how each works and where it breaks, the controls every pattern needs and how agents on different frameworks interoperate.
On this page
- Building blocks every pattern shares
- Supervisor and workers
- When supervision needs more than one layer
- Sequential pipeline with validation gates
- Parallel fan-out and fan-in
- Shared blackboard state without agents overwriting each other
- Critique and debate loops that know when to stop
- Choosing between the six patterns
- Controls to build into every pattern
- Interoperability between agents built on different frameworks
- Questions and answers
- Sources
Supervisor and workers
One supervisor plans the task, delegates bounded pieces to specialist workers and assembles what they return.
- Supervisor
Breaks down the request, assigns sub-tasks with contracts and decides when the work is complete.
- Research worker
Gathers sources for an assigned question and returns structured notes with references.
- Analysis worker
Turns notes into comparisons, calculations or findings within its contract.
- Drafting worker
Assembles approved findings into the requested deliverable.
- Reviewer
Checks the assembled draft against acceptance criteria and returns pass, fail or a list of issues.
When supervision needs more than one layer
The supervisor pattern is the usual starting point for good reason: the plan lives in one place, budgets are enforced in one place and there is one trace to start from when something fails. It corresponds to what Anthropic's agent guidance calls orchestrator-workers, suited to tasks whose sub-tasks cannot be predicted in advance1. Its weakness is the supervisor's own context, which fills with every worker's output as the task grows.
Hierarchical teams add supervisors of supervisors: a top-level planner hands whole workstreams to team leads, each managing its own workers. The extra layer pays off when workstreams are large, independent and need different expertise, such as the legal, financial and technical strands of a due diligence review. Every level adds a round of summarizing that loses detail, so require team leads to pass up references to the evidence, not only conclusions.
Sequential pipeline with validation gates
Fixed stages run in order, and each output is validated before the next stage starts.
- Intake and classify
Normalizes the request and rejects inputs outside the pipeline's scope.
- Extract
Pulls structured fields from documents into a defined schema.
- Validation gate
Checks schema, required fields and business rules; failures go back a stage or to a person.
- Analyze
Applies the task logic to validated data only.
- Review and release
Confirms the result meets acceptance criteria before it leaves the pipeline.
Pipelines are the most predictable pattern because the order never changes; Anthropic's guidance calls the same idea prompt chaining, with programmatic checks between steps1. Use them when every task has the same shape, such as processing one standard document type. They handle tasks whose next step depends on what was found poorly, because every branch has to be designed in advance.
Parallel fan-out and fan-in
A coordinator sends independent sub-tasks to several agents at once, then an aggregator combines what comes back.
- Coordinator
Splits the work into parts that do not depend on each other and sets a deadline for each.
- Agent A
Works on its part with its own context and tools.
- Agent B
Works in parallel on a different part, without seeing Agent A's reasoning.
- Aggregator
Merges results, removes overlapping findings and records conflicts explicitly.
- Reviewer
Checks the merged output and the recorded conflicts against acceptance criteria.
The hard part is fan-in. Results arrive at different times, some agents time out and some findings contradict others. Decide in advance whether the aggregator waits for every agent or proceeds after a quorum or deadline, and mark missing parts in the output. Record conflicting findings with their sources for the reviewer or a person to resolve; a vote between agents sharing a model mostly measures their shared assumptions.
Critique and debate loops that know when to stop
A critique loop pairs a producer with a critic: one drafts, the other evaluates against stated criteria and returns specific issues, and the producer revises. Anthropic describes this as the evaluator-optimizer pattern, useful when clear criteria exist and iteration measurably improves the result1. Debate variants put two agents on opposing sides and ask a third to judge between them.
Loops need hard limits. Cap the number of iterations, and stop when a revision no longer changes the critic's verdict or the critic starts repeating itself. Give the critic the acceptance criteria and evidence rather than the producer's reasoning, and where possible a different model, so it is not simply agreeing with a familiar style of argument.
Choosing between the six patterns
| Pattern | Fits when | State lives in | Typical failure | Where review sits |
|---|---|---|---|---|
| Supervisor and workers | Sub-tasks emerge as the work proceeds | The supervisor's context and task records | Supervisor overload; vague delegation | A reviewer worker before the supervisor finishes |
| Hierarchical teams | Large, separable workstreams need different expertise | One store per team, with summaries passed upward | Detail lost in summaries between levels | At each team lead and again at the top |
| Sequential pipeline | Every task has the same shape | Structured output handed from stage to stage | Rigid when inputs vary | Validation gates between stages |
| Fan-out and fan-in | Independent parts can run at the same time | Per-agent results merged by an aggregator | Conflicts hidden during merging | After aggregation, on the merged output and its conflicts |
| Shared blackboard | Many specialists contribute in an unpredictable order | A shared, versioned workspace | Concurrent overwrites | A reviewer that reads the board before release |
| Critique loop | Clear criteria exist and iteration improves results | Draft history and critic feedback | Endless revision or polite agreement | The critic itself, under an iteration cap |
Real systems often combine patterns, for example a supervisor that runs one fan-out step and then a critique loop on the final draft.
Controls to build into every pattern
Interoperability between agents built on different frameworks
Patterns describe how agents coordinate; protocols describe how they communicate when they were not built together. The Agent2Agent (A2A) protocol, originally developed by Google and now hosted by the Linux Foundation, is an open standard for agents to discover one another and exchange tasks across frameworks and vendors; the Linux Foundation called its version 1.0 the first stable specification in April 20262. It complements the Model Context Protocol, which connects an agent to tools and data rather than to other agents.
A protocol solves transport and discovery, not trust. Agents connected over A2A still need task contracts, scoped authority and independent review, and an agent run by another organization should be treated as untrusted input until its outputs are checked. Confirm the current specification on the project's own site before building on it.
Questions and answers
How do I choose an orchestration pattern for my task?
Start from the shape of the dependencies. If every task follows the same steps, use a pipeline. If the parts are independent, fan them out. If sub-tasks only become clear as the work proceeds, use a supervisor. Add a hierarchy only when workstreams are large and need different expertise, and add a critique loop only when you have criteria that a critic can actually apply.
How should a multi-agent system be tested before release?
Test each role against its own contract with fixed inputs, then test the handoffs by feeding malformed, empty and conflicting outputs to see whether the next stage rejects them. Finally, run the whole system on a frozen set of representative tasks, recording quality, cost, time and escalations, and compare the results with a simpler baseline before every release.
Do we need the Agent2Agent protocol to build a multi-agent system?
No. Agents inside one system built on one framework can coordinate through that framework or through plain code. A2A matters when agents built by different teams, vendors or organizations need to delegate tasks to each other without sharing a codebase. Even then, adopt it for the interfaces between systems and keep internal coordination as simple as the chosen pattern allows.
Sources
- Building effective agents — Anthropic · checked 10 October 2026
- A2A protocol surpasses 150 organizations, lands in major cloud platforms and sees enterprise production use in first year — The Linux Foundation · checked 10 October 2026