---
title: "Multi-Agent Systems: Coordination and Orchestration"
description: "Patterns for designing, coordinating, and operating systems where multiple agents collaborate — topology, fan-out, and deployment."
tags:
  - agent-design
  - multi-agent
  - index
last_reviewed: 2026-05-27
---
# Multi-Agent Systems

> Patterns for designing, coordinating, and operating systems where multiple agents collaborate — from topology selection through fan-out parallelism to production deployment.

## Topology & Architecture

Choosing the right structure for agent collaboration determines failure modes, latency, and coordination overhead.

- [Multi-Agent Topology Taxonomy: Centralized, Decentralized, and Hybrid](multi-agent-topology-taxonomy.md) — Choosing the wrong coordination topology for a task type is a primary source of production agent failures; each topology carries distinct failure modes
- [Agent Composition Patterns: Chains, Fan-Out, Pipelines, Supervisors](agent-composition-patterns.md) — Multi-agent workflows follow four structural patterns — sequential chains, parallel fan-out, staged pipelines, and supervisor-coordinator — each suited to different task structures
- [Multi-Agent SE Design Patterns: A Taxonomy Across 94 Papers](multi-agent-se-design-patterns.md) — A systematic study of 94 LLM-based multi-agent SE papers identifies 16 design patterns, with Role-Based Cooperation as the dominant pattern
- [Orchestrator-Worker Pattern](orchestrator-worker.md) — A lead agent decomposes a complex task and assigns independent subtasks to specialized workers running in parallel
- [Magentic Orchestration: Task-Ledger-Driven Adaptive Multi-Agent Planning](magentic-orchestration.md) — A manager agent maintains a task ledger of facts, guesses, and plan, dispatches specialists, and revises the plan when progress stalls — fit only when the plan itself is the unknown
- [Specialist Orchestrated Queuing for Multi-Agent SE (SPOQ)](specialist-orchestrated-queuing-spoq.md) — Composes wave-based topological dispatch, dual validation gates, a tiered Opus/Sonnet/Haiku roster, and Human-as-an-Agent — gains hold only when four upstream conditions are met
- [System-Level Optimization Pipeline](system-level-optimization-pipeline.md) — A four-stage agent pipeline decomposes performance engineering into summarization, analysis, optimization, and verification across component boundaries
- [Oracle-Based Task Decomposition](oracle-task-decomposition.md) — Introduce a reference oracle to generate per-unit expected outputs, converting one monolithic task into hundreds of independently verifiable subtasks
- [Reverse-Engineered Executable Specifications for Agentic Program Repair](reverse-engineered-executable-specifications.md) — Decompose automated program repair into specification inference then constrained patching, making the intended behavior an inspectable intermediate artifact before any code is changed
- [Declarative Multi-Agent Composition](declarative-multi-agent-composition.md) — Define agents and workflows as structured data, then compose them through explicit wiring rather than imperative code
- [Declarative Multi-Agent Topology: Topology-as-Code](declarative-multi-agent-topology.md) — Encode an entire agent graph in a single declarative file that compiles to any target runtime, making topology auditable and portable
- [Static Roster vs Runtime Subagent Definition](static-roster-vs-runtime-subagent-definition.md) — Decide who defines each subagent's identity and when — static file rosters are the safer default; programmatic definition is justified only for open-ended tasks with unknown sub-task shape

## Fan-Out & Parallelism

Strategies for splitting work across parallel agents — and controlling the blast radius of concurrent execution.

- [Cohesion-Aware Task Partitioning for Multi-Agent Coding](cohesion-aware-task-partitioning.md) — Partition by dependency cohesion before fanning out — parallelism only pays off when cross-partition dependencies are sparse enough that context-transfer cost stays below the compute saved on the critical path
- [Fan-Out Synthesis Pattern](fan-out-synthesis.md) — Spawn N independent agents to solve the same problem in parallel, then use a synthesis agent to merge the strongest elements from each attempt
- [Recursive Best-of-N Delegation](recursive-best-of-n-delegation.md) — Run K parallel candidate workers at each recursion node and select the best result via a judge before the parent consumes it — preventing error compounding in recursive agent trees
- [Recursive Sub-Agent Delegation: Depth Limits and Trade-offs in Nested Hierarchies](recursive-sub-agent-delegation-depth.md) — Depth is a design lever distinct from fan-out width; each level buys one isolated context window at the cost of compounding tokens, latency, summarization loss, and tracing burden
- [Contextual Capability Calibration for Multi-Agent Delegation](contextual-capability-calibration.md) — Replace static skill-level agent profiles with context-specific Beta posteriors so routing decisions condition on the task features that actually predict success
- [Parsimonious Agent Routing](parsimonious-agent-routing.md) — A learned router emits one delegation plan — keep, single-route, or split-and-route — with per-branch budget, jointly optimizing decisions that hand-engineered pipelines treat as independent
- [Sub-Agents for Fan-Out Research and Context Isolation](sub-agents-fan-out.md) — Spawn sub-agents to parallelize independent work in isolated context windows; the main thread receives only distilled results
- [Selective Dynamic Concurrency for Long-Horizon Coding Agents](selective-dynamic-concurrency.md) — Enable runtime sub-agent concurrency per task, not by default: one study found 1.41x to 3.31x the tokens with mixed success, another about 1 to 5 points on random repository builds at 2.6 to 3.8 times the cost
- [Adaptive Sandbox Fan-Out Controller](adaptive-sandbox-fanout-controller.md) — Start with a small parallel batch, monitor quality signals, then scale up, stop early, refine the prompt, or decompose — rather than committing to a fixed N upfront
- [Swarm Migration Pattern](swarm-migration-pattern.md) — Coordinate 10–20 parallel subagents to migrate large codebases atomically, achieving 6–10x speedup for qualifying file-independent transformations
- [The Model Economics of Agent Swarms](model-economics-agent-swarms.md) — Swarm width is capped first by task decomposability, then by the planner-worker model mix that dominates cost — not by fan-out alone
- [Bounded Batch Dispatch](bounded-batch-dispatch.md) — Process large agent workloads without hitting API rate limits by dispatching work in sequential batches of fixed size
- [Staggered Agent Launch](staggered-agent-launch.md) — Launch parallel agents 30 seconds apart to break the thundering-herd dynamic so each agent claims work before the next reads the queue
- [Cache-Prefix Staggering for Sibling Agent Fan-Out](cache-prefix-staggering.md) — Delay each sibling until the first response begins so later siblings read the shared prompt prefix from cache instead of each writing their own entry
- [Define Async Task Update and Approval Contracts](async-task-update-contracts.md)
- [Host-Controlled Backgrounding for Claude Subagent Calls](host-controlled-subagent-backgrounding.md) — Host and depth determine the dispatch contract
- [Async Non-Blocking Subagent Dispatch](async-non-blocking-subagent-dispatch.md) — Decouple the orchestrator's processing loop from subagent lifecycle so it continues planning and processing partial results while delegates execute concurrently
- [LLM Map-Reduce Pattern](llm-map-reduce.md) — Split a large input into context-window-sized chunks, process each chunk independently, then combine chunk-level results into a coherent output
- [Source-Grounded Directory Contracts: Chunked Scouts with Symbol Citations](source-grounded-directory-contracts.md) — Scouts read source files in chunks cut at definition boundaries, cite a file and symbol per entry, and parents roll up leaf contracts

## Coordination

How agents hand off work, share state, and refine each other's output without a centralized controller.

- [Economic Value Signaling in Multi-Agent Networks](economic-value-signaling.md) — Attach token values to inter-agent messages so agents self-sort by task priority without a central scheduler
- [Agent Handoff Protocols: Passing Work Between Agents](agent-handoff-protocols.md) — Define explicit contracts between pipeline stages to prevent information loss at handoff points
- [Lead-to-Teammate Plan-Approval Handshake](lead-teammate-plan-approval-handshake.md) — A teammate runs in read-only plan mode until the lead approves its plan, gating writes on peer review at the cheapest point in the cycle
- [Forked vs Fresh Subagents: When to Inherit the Parent Conversation](forked-vs-fresh-subagents.md) — Fork when the parent's mental model is an asset the brief cannot reconstruct; start fresh when bias, trifecta exposure, or token budget make inherited context a liability
- [The Subagent Inheritance Contract: What Crosses Down](subagent-inheritance-contract.md) — Codex inherits the parent session's settings by default and Claude Code drops the conversation while injecting the rule hierarchy, so the unasked payload decides what a brief must carry
- [Role-Declared Context Mode: Where the Inherit Decision Lives](role-declared-context-mode.md) — deepagents fixes fork-or-isolated on the subagent definition and Claude Code requests it per spawn; declaring it keeps a verifier independent of the supervisor that dispatches it
- [Coordination Channel Policy for Multi-Agent Coding](coordination-channel-policy.md) — Task shape decides whether agents coordinate through a shared file or peer messages; the same mandate that cuts 42% of output tokens on specification work adds 10% on pipeline work
- [File-Based Agent Coordination](file-based-agent-coordination.md) — Coordinate parallel agents using lightweight file locks in a shared repository; git merge mechanics enforce task exclusivity without a central orchestrator
- [Observation-Driven Coordination: CRDT-Based Parallel Agent Code Generation](crdt-observation-driven-coordination.md) — CRDT-based shared state enables lock-free concurrent code generation with zero structural merge conflicts
- [Pre-Write Change Intent Admission (Claim Plane)](pre-write-change-intent-admission.md) — Workers declare a versioned change intent before coding and a deterministic control plane admits, constrains, or refuses it — moving interference detection ahead of the write, at the cost of frequent serialization
- [Path-Scoped Write Contracts for Shared Agent State](path-scoped-write-contracts.md) — Name which role may mutate which state path and route every write through one validator; a schema-valid blackboard still admitted 52% of unauthorized writes
- [Closed-Loop Role-Based Refinement](closed-loop-role-based-refinement.md) — Decompose the self-improving agent loop into discrete, specialized roles with persistent knowledge layers, staged validation, and gated persistence
- [Independent Test Generation in Multi-Agent Code Systems](independent-test-generation-multi-agent.md) — Separate code and test generation into independent agents so the test writer never sees the code, preventing bias that cuts test accuracy by 30%
- [Persistent Shared Search Sub-Agent for Output-Token Reuse](persistent-search-subagent.md) — Route repository lookups through one persistent searcher so a region is explored once, cutting the redundant output tokens that dominate multi-agent cost
- [Context-Graph Shared Memory for Multi-Agent Systems](context-graph-shared-memory.md) — Store cross-agent shared state as typed triples and traverse edges for join queries — beats vector RAG only when queries chain facts and entities are clean
- [Rerunnable Claim Graph as Shared Agent Memory](rerunnable-claim-graph.md) — Publish each unattended agent's result as a commit a peer can check out and rerun, so verification costs a checkout; the record still does not stop duplicate work
- [Verifier-Driven Parallel Coding Agents (Glite ARF)](verifier-driven-parallel-coding-agents.md) — Move the multi-agent coordination contract — task isolation, immutability of completed work, corrections overlay, materialized project overview — out of prose and into deterministic Python verifier scripts that fail loudly, adding ~1% wall-clock to keep per-agent lapses from compounding
- [Reviewer Precision as a Pipeline Quality Proxy](reviewer-precision-proxy.md) — A more precise reviewer stage does not improve a multi-agent pipeline unless the protocol binds its critique into the next candidate; critique uptake, not reviewer precision, is the binding variable
- [Elephant-Goldfish Design Review: Deep-Context Drafting with Zero-Context Review](elephant-goldfish-design-review.md) — A long-context session drafts a design document with the human, then fresh reviewer subagents with no conversation history read it and report gaps
- [Drafter-Side Intent Reconciliation Instead of Self-Grading](drafter-intent-reconciliation.md) — The drafting session checks its draft against the earlier brief and reports changed decisions to the human, while fresh reviewers grade design quality
- [Failed Reviewer Is Not a Clean Pass: Per-Agent Status in Fan-Out Review](failed-reviewer-not-clean-pass.md) — Record a reviewer that fails or returns nothing as not run, retry it once, and let it block a clean round instead of counting as zero findings
- [Two-Marker Isolation Probe for Fresh-Context Reviewers](two-marker-reviewer-isolation-probe.md) — Plant one marker in the parent turn and one in an auto-loaded instruction file, then check the child's own transcript for both

## Multi-Model

Patterns that leverage multiple distinct models — using diversity of reasoning to strengthen outputs.

- [Adversarial Multi-Model Development Pipeline (VSDD)](adversarial-multi-model-pipeline.md) — A six-phase pipeline where a fresh-context adversary attacks builder output until convergence, combining [spec-driven development](../../workflows/spec-driven-development.md), TDD, and formal verification
- [Multi-Model Plan Synthesis](multi-model-plan-synthesis.md) — Get independent plans from multiple frontier models, then synthesize a hybrid architecture from the strongest ideas of each before writing code
- [Voting / Ensemble Pattern](voting-ensemble-pattern.md) — Run the same task N times in parallel, then aggregate results through voting to trade compute for confidence
- [Opponent Processor / Multi-Agent Debate](opponent-processor-debate.md) — Deploy two agents with structurally opposed incentives to independently critique each other's reasoning, then synthesize into a higher-quality decision
- [Runtime Workflow Selection Across Models (Project HydraFusion)](runtime-workflow-selection-hydrafusion.md) — Pick the orchestration shape per request (single call, cascade, or cross-family critique) instead of pinning one model; the published payoff is cost at parity, not better answers
- [Reviewer Independence: Context Reset or Model Diversity](context-reset-vs-model-diversity.md) — Reviewer independence comes from a fresh context, a different model family, or evidence the author never read, and each misses a different class of error

## Operational

Deploying, observing, and optimizing multi-agent systems in production.

- [Rainbow Deployments for Agents](rainbow-deployments-agents.md) — Shift traffic between agent versions gradually so new versions prove themselves alongside old ones before full cutover
- [Emergent Behavior Sensitivity](emergent-behavior-sensitivity.md) — Small changes to a lead agent's prompt unpredictably alter subagent behavior; multi-agent prompts must be frameworks for collaboration, not rigid instructions
- [Semantic Caching for Multi-Agent Code Systems](semantic-caching-multi-agent.md) — Semantic caching with LLM-based equivalence detection achieves 67% cache hit rates and reduces token consumption by 40-60%
- [Subagent Schema-Level Tool Filtering](subagent-schema-level-tool-filtering.md) — Restrict subagent capabilities by filtering their tool schemas, making unauthorized tool use structurally impossible
- [Cross-Tool Subagent Comparison](cross-tool-subagent-comparison.md) — Side-by-side comparison of Claude Code, Gemini CLI, and Copilot CLI subagents on definition format, context isolation, tool scoping, and composition
