5.1K

Multi-agent topologies compared

How to choose between sub-agent spawning, planner-worker separation, initializer-maintainer loops, swarm migrations, board-mediated threads, and tracker reconciliation.

Start with the bottleneck

A second agent is a tax. It costs tokens, it adds a handoff, and it creates one more place for state to disappear. Pay that tax only when a single-agent loop hits a concrete bottleneck.

Three bottlenecks justify multi-agent coordination:

  1. Context saturation: one agent’s context overflows or degrades before the task is done
  2. Wall-clock parallelism: the work splits into independent pieces, and running them in series is too slow
  3. Privilege or role isolation: some work must run with narrower tools or fresher context than the main agent

If your bottleneck is “the agent is not smart enough” or “the output is unreliable”, more agents multiply the defect. Fix the loop first. Choosing the Right Patterns covers that starting stack, and Designing Reliable Agent Evals covers how to prove the fix worked.

If the bottleneck is slow I/O, try Parallel Tool Execution inside one agent before you add a second one. It runs read-only tool calls concurrently and falls back to sequence when any call modifies state.

Comparison matrix

Every topology below answers the same two questions differently: where does coordination state live, and who owns it?

TopologyCoordination MechanismBest ForPrimary Failure ModeCurrent Tier
Sub-Agent SpawningA main agent spawns sub-agents with fresh context and scoped tools, then merges their resultsA large multi-file task that overflows one context, or independent subtasks that can run in parallelOverhead: spawning and tracking sub-agents can cost more than the task savesfoundational
Planner-Worker Separation for Long-Running AgentsPlanners create tasks, workers finish them in isolation, and a judge ends each cycleMany agents on one large codebase for days or weeks, where flat peers conflict or duplicate workComplexity: it needs orchestration infrastructure and extensive prompt tuningemerging
Initializer-Maintainer Dual AgentA one-time initializer writes a feature list, progress files, and a bootstrap script; a coding agent resumes from themMany sessions over days or weeks, on an app with many discrete featuresUpfront cost: it needs a comprehensive feature spec, and the initializer must anticipate later needsemerging
Swarm MigrationA main agent fans 10 or more sub-agents out onto independent migration chunksA mechanical change across many independent files, with clear rules and good test coverageMerge conflicts, plus the burden of verifying many outputsproduction
Factory over AssistantAutonomous agents run in parallel; tests, builds, and linters give the feedback; you check in laterMany independent tasks that automated checks can verify without a humanLoss of control: you cannot steer in real time, and issues can stay hidden for 30-60 minutesproduction
Board-Mediated Inter-Agent CoordinationAgents talk through comment threads on board cards; a prefix raises an inbox card for the target agentAgents in separate sessions whose coordination decisions must stay with the work recordLatency and routing: polling delays delivery, and two instances of one agent break routingemerging
Tracker-as-Desired-State ReconciliationThe orchestrator re-reads tracker state every tick and keeps only a short-lived local claimA long-lived fleet that must survive restarts while humans edit the same ticketsPoll latency, API quota, and a buggy transition rule that can mass-move ticketsemerging

Tier is the pattern’s catalog status. proposed means 0-1 public implementations. emerging means 2+ independent implementations or one detailed production write-up. production means proven across multiple independent production systems. foundational means an industry-default baseline whenever its signals apply. The pattern page is authoritative if a tier moves.

Distinctions people get wrong

A swarm is not just many sub-agents

Swarm Migration narrows sub-agent spawning to one job: a mechanical change spread across many independent files. It adds prerequisites that plain spawning does not have: atomic migrations, unambiguous rules, good test coverage, and a sandbox that is safe to run many agents in. Under about 10 files, the pattern itself says sequential execution is more efficient.

A parent is not a factory

With Sub-Agent Spawning, a main agent tracks its sub-agents and merges the results. With Factory over Assistant, nobody watches. Tests, builds, and linters provide the feedback, and you check in later. The factory trades real-time steering for throughput. It fails on exploratory work and on tasks that need guidance nobody wrote down.

Planner-worker is not initializer-maintainer

Both target work that outlives one session. Initializer-Maintainer Dual Agent runs its initializer once, then a coding agent resumes from the feature list and progress files, one feature per session. Planner-Worker Separation keeps planners, workers, and a judge active across cycles, and it needs infrastructure to distribute tasks.

A message is not state

Board-Mediated Coordination passes messages between specific agents through card comments. Each prefix must map to exactly one active agent, or routing breaks. Tracker-as-Desired-State Reconciliation ignores messages. It re-reads ticket state every tick and derives dispatch from it, so restarts and human edits self-heal.

Decision tree

Ask these questions in order and stop at the first “yes”.

  1. Does the task fit in one agent’s context, in one session? Stay single-agent. No topology below earns its overhead yet.

  2. Is the change mechanical? The same rule applies to roughly 10 or more independent files, the rules are unambiguous, and tests can verify each chunk. Use Swarm Migration.

  3. Do you have many independent tasks that tests, builds, or linters can verify without a human? Use Factory over Assistant and check on the agents later.

  4. Does one main task split into independent subtasks that a parent can merge? Use Sub-Agent Spawning. The parent keeps ownership and aggregates the results.

  5. Will the project run for days or weeks across many sessions? Pick by shape:

  6. Do agents already run in separate sessions and need to coordinate? Pick by what you trust:

  7. Still unsure? Stay single-agent. Revisit once the single-agent loop is stable and measured.

Companion patterns for concurrency and isolation

No topology above handles concurrency on its own. These four plug into whichever one you pick.

If your bottleneck is privilege isolation, add Sandboxed Tool Authorization. Its subagent policies inherit the parent’s restrictions and can only narrow them.

Common failure modes

Failure ModeWhat It Looks LikeMitigate With
Write collisionsTwo agents fix the same file, clobber each other’s edits, or break generated artifactsDesign-Time File Partition declares write paths up front and adds a blocking dependency between overlapping tasks. Distributed Execution with Cloud Workers gives each worker its own worktree instead
Lost handoff stateA new session starts without the decisions, progress, or files the previous one producedInitializer-Maintainer Dual Agent keeps progress files and a bootstrap script. Board-Mediated Coordination and Tracker-as-Desired-State Reconciliation keep state on the work record. Filesystem-Based Agent State writes durable checkpoints
Rubber-stamp judgesThe judge approves every cycle, or reviewers approve every request, so the loop never catches a defectGive the loop evidence it cannot argue with. Rich Feedback Loops returns compiler, test, and lint output. Deterministic Grader in the Loop scores what you can count. Human-in-the-Loop Approval Framework names approval fatigue as a known risk, so keep approval volume low
Runaway token fan-outTen agents become thirty, and the budget is gone before anyone noticesContext Budget as a Governed Resource adds hard spend caps and fan-out bounds to unattended runs. Lane-Based Execution Queueing limits concurrency per lane. Budget-Aware Model Routing with Hard Cost Caps routes each request to the cheapest capable model under hard cost caps
Untraceable delegationYou cannot tell which sub-agent did what, or whySubject Hygiene for Task Delegation requires an action-plus-target subject on every delegated task

Next steps