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.

Reviewed 8 min read

On this page
  1. Building blocks every pattern shares
  2. Supervisor and workers
  3. When supervision needs more than one layer
  4. Sequential pipeline with validation gates
  5. Parallel fan-out and fan-in
  6. Shared blackboard state without agents overwriting each other
  7. Critique and debate loops that know when to stop
  8. Choosing between the six patterns
  9. Controls to build into every pattern
  10. Interoperability between agents built on different frameworks
  11. Questions and answers
  12. Sources

Building blocks every pattern shares

Role
A named agent with its own instructions, tools and context, responsible for one kind of work.
Task contract
The agreed objective, inputs, output schema, acceptance criteria and budget for one piece of delegated work.
Shared state
Wherever intermediate results live between steps: a message history, a structured store or a shared document.
Coordinator
The role, or plain code, that decides what runs next, assigns work and assembles results.
Reviewer
A role that checks outputs against acceptance criteria before they move on, ideally without seeing how they were produced.
Stop condition
A rule that ends a run or a loop: criteria met, budget spent, time elapsed or no progress between iterations.

Supervisor and workers

One supervisor plans the task, delegates bounded pieces to specialist workers and assembles what they return.

01Supervisor02Research worker03Analysis worker04Drafting worker05Reviewer
  1. Supervisor

    Breaks down the request, assigns sub-tasks with contracts and decides when the work is complete.

  2. Research worker

    Gathers sources for an assigned question and returns structured notes with references.

  3. Analysis worker

    Turns notes into comparisons, calculations or findings within its contract.

  4. Drafting worker

    Assembles approved findings into the requested deliverable.

  5. Reviewer

    Checks the assembled draft against acceptance criteria and returns pass, fail or a list of issues.

Conceptual supervisor and worker layout: the supervisor sits at the center and every handoff passes through it. It does not depict any specific product.

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.

01Intake and classify02Extract03Validation gate04Analyze05Review and release
  1. Intake and classify

    Normalizes the request and rejects inputs outside the pipeline's scope.

  2. Extract

    Pulls structured fields from documents into a defined schema.

  3. Validation gate

    Checks schema, required fields and business rules; failures go back a stage or to a person.

  4. Analyze

    Applies the task logic to validated data only.

  5. Review and release

    Confirms the result meets acceptance criteria before it leaves the pipeline.

Conceptual pipeline with illustrative stages; place a gate after any stage whose errors would be expensive further down.

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.

sub-task A + contractsub-task B + contractfindings + sourcesfindings + sourcesmerged draft, conflictspass or issues01Coordinator02Agent A03Agent B04Aggregator05Reviewer
  1. Coordinator

    Splits the work into parts that do not depend on each other and sets a deadline for each.

  2. Agent A

    Works on its part with its own context and tools.

  3. Agent B

    Works in parallel on a different part, without seeing Agent A's reasoning.

  4. Aggregator

    Merges results, removes overlapping findings and records conflicts explicitly.

  5. Reviewer

    Checks the merged output and the recorded conflicts against acceptance criteria.

  1. Coordinator to Agent Asub-task A + contract
  2. Coordinator to Agent Bsub-task B + contract
  3. Agent A to Aggregatorfindings + sources
  4. Agent B to Aggregatorfindings + sources
  5. Aggregator to Reviewermerged draft, conflicts
  6. Reviewer to Coordinatorpass or issues
Conceptual message sequence with two workers; real systems may run many more in parallel.

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.

Shared blackboard state without agents overwriting each other

In a blackboard design, agents do not message each other directly. They read from and write to a shared, structured workspace, and a controller decides which agent acts next based on what the board contains. It suits problems where many specialists contribute partial results in an unpredictable order, such as assembling a case file from several types of evidence.

The risk is concurrent writes. Give every entry a named owner and a version, let only the owning role change it, and have other roles add linked annotations instead of editing. An append-only log of board changes lets you replay a run and see which agent changed what.

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

PatternFits whenState lives inTypical failureWhere review sits
Supervisor and workersSub-tasks emerge as the work proceedsThe supervisor's context and task recordsSupervisor overload; vague delegationA reviewer worker before the supervisor finishes
Hierarchical teamsLarge, separable workstreams need different expertiseOne store per team, with summaries passed upwardDetail lost in summaries between levelsAt each team lead and again at the top
Sequential pipelineEvery task has the same shapeStructured output handed from stage to stageRigid when inputs varyValidation gates between stages
Fan-out and fan-inIndependent parts can run at the same timePer-agent results merged by an aggregatorConflicts hidden during mergingAfter aggregation, on the merged output and its conflicts
Shared blackboardMany specialists contribute in an unpredictable orderA shared, versioned workspaceConcurrent overwritesA reviewer that reads the board before release
Critique loopClear criteria exist and iteration improves resultsDraft history and critic feedbackEndless revision or polite agreementThe 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

0 of 8 checked

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

  1. Building effective agents — Anthropic · checked 10 October 2026
  2. 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

More in Agent Swarms

Back to Agent Swarms

Next step

Share your agent workflow and we will map it to a pattern

Send a description or diagram of the work your agents need to do and where it currently breaks. We will suggest a pattern, the controls it needs and how to test it against a simpler design.

Review my agent architecture