Lv.1 0 XP

Hub-and-Spoke Architecture — The Production Standard for Multi-Agent Systems

Core 10 min +40 XP
💡
THE ANALOGY

A hospital emergency department. The triage nurse (coordinator) receives every patient, assigns them to the right specialist (subagent), collects all results, and decides what happens next. The specialists don't talk to each other — the triage nurse is the single point of coordination. This is not inefficiency. It is how you maintain safety and observability in a complex system.

⚠️ EXAM TRAP — The Wrong Answer People Choose

Letting subagents communicate directly with each other to 'save time.' This removes observability, makes error recovery impossible at the coordinator level, and creates dependency chains that break in unpredictable ways.

KEY POINTS
1 In hub-and-spoke, the coordinator is the only agent that communicates with all others — subagents communicate only with the coordinator, never with each other.
2 Subagents run in isolated contexts — they have NO access to the coordinator's conversation history or to other subagents' results unless you explicitly pass that information.
3 The coordinator is responsible for ALL error recovery decisions — a subagent that encounters an error should report it upward, not attempt to recover autonomously.
4 All inter-agent communication routing through the coordinator enables complete observability — you can log, monitor, and debug every step.
5 Parallel subagent execution is achieved by emitting multiple Task tool calls in a SINGLE coordinator response, not by making multiple sequential API calls.