Blog · Comparison · 16 November 2026

Multi-Agent Architectures Compared for Coding Work

Multi-agent architectures get recommended and dismissed with equal confidence, often by the same companies a year apart. For coding work the useful question is narrower: given a task, which shape of system finishes it without agents contradicting each other. This article compares five architectures (single agent, orchestrator-workers, supervisor, planner and workers in a tree, and flat swarm) using what Anthropic, Cognition, Cursor, LangChain and GitHub have published about their own systems.

The five multi-agent architectures in brief

Single agent. One agent, one context, one thread of decisions. Cognition's 2025 essay "Don't Build Multi-Agents" argues for this as the default. Its concern is reliability over long runs: parallel agents that do not share context make decisions that conflict.

Orchestrator-workers. A lead agent breaks a task down, delegates pieces to workers and combines what comes back. Anthropic lists orchestrator-workers among the basic workflow patterns in "Building effective agents", and its research system uses a lead agent that runs subagents in parallel. That post is frank that the approach costs more tokens and needs engineering to be reliable.

Supervisor. A supervisor agent routes each step to one of several specialized agents and reads their output. LangChain benchmarked this against a single agent and a swarm, comparing score and token cost. In that benchmark the single agent used more tokens as unrelated domains were added, while supervisor and swarm stayed flat, and the supervisor used more tokens than the swarm.

Planner and workers, as a tree. Planners create tasks and can spawn sub-planners for parts of the problem. Workers take one task each and do not coordinate with other workers. Cursor describes this in "Scaling long-running autonomous coding", and in a later post on agent swarms describes the same shape as trees and leaves.

Flat swarm. Agents with equal status coordinate among themselves through shared state or direct messages.

What the published evidence says

Flat structures failed at Cursor. Cursor first gave agents equal status and a shared file with locks. Agents held locks too long or forgot to release them; twenty agents slowed to the throughput of two or three; and with no hierarchy, agents became risk-averse and avoided hard tasks. Separating planners from workers solved most of the coordination problems.

Swarms show group failures. Anthropic's 2026 post on patterns and problems in multiagent systems reports experiments on swarms of agents that found coordination failures, including failures from conformity, once agents depended on each other's work in a shared software project. The same post reports that a coordinating swarm did well at finding software vulnerabilities, a problem that splits into independent parts.

Context sharing is the hinge. Cognition's argument and LangChain's "How and when to build multi-agent systems" agree on the mechanism. Tasks that mostly read (research, search, review) split well, because workers do not need each other's decisions. Tasks that write shared state split badly unless each worker's scope is disjoint.

Structure between agents matters. GitHub's engineering blog says most multi-agent workflow failures come down to missing structure and recommends typed schemas and explicit action schemas between agents.

Cognition changed its product. In 2026 Devin gained managed Devins: a coordinator that scopes work, assigns narrow pieces to full agents in separate machines and compiles results. That is orchestrator-workers, from the company that wrote the strongest argument against multi-agent designs. The positions are consistent: split only into narrow, independent pieces under one coordinator.

Comparison

Single agent Orchestrator-workers Supervisor Planner tree Flat swarm
Who decides the split Nobody The lead The supervisor, step by step Planners, recursively Everyone
Workers talk to each other — No Through the supervisor No Yes
Parallelism None High for independent pieces Limited Very high High in theory
Risk of conflicting edits None Low if scopes are disjoint Low Low if scopes are disjoint High
Token cost Lowest when the task fits one context Higher Higher Highest High
Evidence at large scale — Anthropic, Cognition LangChain benchmark Cursor Cursor reports failures; Anthropic reports failures on interdependent work

Which to choose for coding work

  1. Start with a single agent. If the task fits in one context and touches files in sequence, splitting it adds cost and risk. Anthropic's Claude Code docs say the same about agent teams: for sequential tasks and same-file edits, a single session or subagents are more effective.
  2. Use orchestrator-workers when the pieces are independent. One package per worker in a migration. One page per worker in a QA pass. One hypothesis per worker in a bug hunt.
  3. Use a planner tree when one planner cannot hold the whole problem. This is for very large projects. It costs the most.
  4. Avoid a flat swarm for writing code. The published failures are consistent. Free discussion between peers can still help for read-only work, such as debating the cause of a bug.

Each simpler option is the better choice whenever it fits. More agents is not an achievement.

What a tree needs from its infrastructure

Choosing the shape is half the work. The other half is the plumbing that keeps the shape from decaying into a swarm.

  • Results flow up, by default. A worker's output should go to its planner without the worker having to know who that is.
  • Workers should not chat. If two workers can message each other freely, you have rebuilt the flat swarm inside the tree. Limits on rate and depth keep messages to what is needed.
  • Scopes should be recorded. "Own different files" is an instruction until something checks it.
  • The planner needs a stop. If the plan was wrong, hundreds of workers should halt on one action.
  • A person needs a way in. A question nobody can answer should reach a human instead of circulating.

How Forkit supports the tree

Forkit's messaging was designed around this evidence. Its documentation says plainly that flat agent-to-agent chat stalls at a few dozen agents, and that systems reaching thousands pass typed messages along a planner tree.

  • A thread can have a parent thread. A worker's handoff goes to its planner by default, addressed as planner.
  • Messages are typed and limited by the server: 30 a minute per sender session, replies at most 8 deep, 20 per pair of agents until a person writes. When a pair spends its budget, the sender's thread goes to blocked and a person's reply allows more.
  • A question that nobody answers within two minutes is handed to a person.
  • File claims record each worker's scope; an edit under another agent's exclusive claim is refused.
  • A fan-out's keys link each worker's session to the planner's thread and stop together.

On staging, Forkit's documentation reports one run in which a planner gave one package each to 1,000 agents: all 1,000 starts, prompts and claims were accepted and all 800 handoffs were read by the planner. That is a single run on a staging system, with a scripted load, not a real fleet of coding agents.

Forkit does not supply the planner. It supplies the channel, the limits and the stop.

Related: agent-to-agent messaging patterns, what is agent orchestration and how to run 50 coding agents without merge conflicts.

Where Forkit fits

Whatever architecture you choose, the agents still need a way to report, ask and be stopped. Forkit provides that for orchestrator-workers and planner trees built from Claude Code, Codex or your own agents. It is free to try. More at forkit-mcp.com.

Sources

Read on 16 Nov 2026: