Intermediate14 min

Coordinator-Subagent Patterns

Hub-and-spoke architecture where a coordinator agent manages all inter-subagent communication, decomposes tasks, delegates to specialized subagents, and synthesizes results. Understand why subagents have isolated context and how the coordinator prevents coverage gaps.

Quick Reference

  • Hub-and-spoke: coordinator is the central hub, subagents are spokes -- no direct spoke-to-spoke communication
  • Subagents have isolated context -- they do NOT inherit the coordinator's conversation history
  • The coordinator's job: decompose the task, delegate to subagents, aggregate and synthesize results
  • Overly narrow decomposition causes coverage gaps -- the 'creative industries' trap
  • Iterative refinement: coordinator evaluates synthesis, identifies gaps, re-delegates as needed
  • Each subagent gets a focused system prompt and restricted tool set appropriate to its subtask
  • Subagent results flow back ONLY to the coordinator, which decides what to share with other subagents
  • Partition scope to minimize overlap -- overlapping scopes lead to contradictory findings
  • The coordinator must validate coverage before producing the final response
  • Use parallel subagent invocation when subtasks are independent

Hub-and-Spoke Architecture

Definition

In the hub-and-spoke pattern, a single coordinator agent (the hub) manages all communication with subagents (the spokes). Subagents never communicate directly with each other. The coordinator decomposes the task, delegates subtasks, collects results, and synthesizes the final output.

Coordinatororchestrates tasksWeb Searchbrowse & scrapeDoc Analysisparse & extractSynthesismerge & reasonReport Genformat & output

Hub-and-spoke: a coordinator delegates to specialized subagents

The hub-and-spoke pattern is the primary multi-agent architecture tested on the exam. Its defining characteristic is centralized control: the coordinator is the only entity that sees the full picture. Each subagent operates in isolation, focused on its specific subtask, unaware of what other subagents are doing. This isolation is a feature, not a bug -- it prevents subagents from being distracted by irrelevant context and allows the coordinator to maintain a coherent overall strategy.

Think of it like a research team lead managing specialists. The lead assigns each researcher a specific topic, collects their findings, identifies gaps or contradictions, and writes the final synthesis. The researchers do not coordinate directly -- the lead ensures coherence.