Drag each answer to line up with its matching prompt
Supervisor and workers
Multiple agents argue from different positions and a final round picks or synthesises the winner
Peer swarm
Agents take turns in a fixed cyclic order regardless of who is best suited
Round robin
Agents transfer control to each other via handoff tool calls with no central manager
Debate or council
Agents read and write a shared structured workspace; an external scheduler decides who runs next
Blackboard
A central manager agent picks which worker runs next after each hop
Market or auction
Agents bid on tasks and the coordinator awards work to the highest confidence or lowest cost bidder
Six topologies differ by who decides who runs next: supervisor (manager), swarm (peers), round-robin (order), debate (argument), blackboard (state), market (bid).
Imagine a group project. A supervisor topology is one student playing project manager: 'You do the slides, you do the research, you write the conclusion'. A peer swarm is no project manager: students just hand work to whoever is best for the next part. Round-robin is going around the table in order regardless of skill. Debate is everyone making the case for their idea before voting. Blackboard is a shared whiteboard where someone outside the group checks what is written and assigns the next task. Market is everyone bidding 'I can do that part for one cookie' and the lowest bidder wins. Same goal, six very different ways to coordinate.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Multi-agent topologies look like a long taxonomy in textbooks and a confused list of buzzwords in practice. The cheapest way to make sense of all six is to ask one question of each: who decides which agent runs next? The answers map cleanly onto six distinct mechanisms, and once you can name the mechanism for each topology, the matching exercise becomes a five-second pattern recognition.
The interview value is design-space literacy. New topologies will keep appearing through 2026 and beyond; each new one can be slotted into the taxonomy by asking the same decisive question. The pattern travels.
Mental model: six topologies, six different answers to 'who decides who runs next'.
The centralised and distributed pair: supervisor and swarm
Supervisor and workers
A central manager agent makes the routing call. The supervisor reads the task and the running state, picks a worker, hands off, reads the worker's result, picks again. The decision-making is centralised in one place; the trace shows 'supervisor decided worker A, supervisor decided worker B' as discrete events you can audit.
Production examples: LangGraph's create_supervisor prebuilt, CrewAI's hierarchical Process with manager_llm, AutoGen's SelectorGroupChat (which is a supervisor with LLM-based speaker selection).
Strength: predictable, traceable, structured. Weakness: every hop costs one supervisor LLM call on top of the worker call, which can dominate latency and cost in hot paths.
Peer swarm
The routing decision is distributed to the agents themselves. Each agent runs until it decides another agent is better suited and emits a handoff tool call. No central manager. The framework intercepts the handoff and swaps the active agent.
Production examples: OpenAI's Agents SDK (the canonical 2026 implementation), LangGraph's swarm prebuilt, smolagents' multi-agent mode.
Strength: lower per-turn cost (no supervisor call), more flexible routing because each agent's decision can incorporate context the supervisor would not have. Weakness: routing logic is spread across all agents, cycles are harder to reason about, deadlock becomes possible (the topology where the watchdog pattern earns its keep).
Situations where this technique stops working.
2–4 min · Everything important, quickly.
Real products, models, and research that use this idea.
- LangGraph ships create_supervisor (supervisor topology) and create_swarm (peer swarm) as the two dominant prebuilts.
- OpenAI's Agents SDK is the canonical peer-swarm implementation with handoff as tool call as the primitive.
What an interviewer would ask next. Try answering before peeking at the approach.
QSketch a workflow where you would deliberately pick blackboard over supervisor, and explain the tradeoff.
Multi-source data extraction where several agents fill different fields in a structured output (one agent extracts company name, another extracts financials, another extracts board members) and the scheduler watches which fields are still empty. Blackboard wins because the routing decision is data-driven (which field is empty) rather than judgement-driven, and the parallel filling is natural. Supervisor would add an LLM call per dispatch that the data-driven scheduler avoids entirely.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Treating topologies as interchangeable. Each one optimises for a different property (centralised control, flexibility, fairness, dissent, shared state, market efficiency); pick the property that matters for your workload.
60 second bullets to scan on the way to the call.
The 'who decides who runs next' question as the taxonomic lens
Supervisor + workers as centralised decision-making
Primary sources. Browse if you want the original framing.
Same topic, related formats. Practice these next.