Coordinator-Subagent (Orchestrator) Pattern

Core

Orchestrate multi-agent systems with coordinator-subagent patterns · Difficulty 3/5

0%
multi-agentcoordinatororchestrationhub-and-spoke

Explanation

The coordinator (orchestrator) pattern uses a central agent to manage specialized subagents, maintaining control over task decomposition, routing, and result aggregation.

Architecture

Coordinator Agent
+-- Web Search Agent
+-- Document Analysis Agent
+-- Synthesis Agent
+-- Report Generation Agent

Key Principle: Hub-and-Spoke Communication

All inter-agent communication flows through the coordinator:

  • Subagents NEVER communicate directly with each other
  • Subagents operate with isolated context -- they do not inherit the coordinator's conversation history
  • Coordinator observes all interactions
  • Coordinator handles errors consistently
  • Coordinator decides what information each subagent receives

Dynamic Routing

The coordinator should analyze query requirements and dynamically select which subagents to invoke, rather than always routing through the full pipeline. Simple queries may only need one subagent; complex ones may need several.

Iterative Refinement

The coordinator evaluates synthesis output for gaps, re-delegates to subagents with targeted queries, and re-invokes synthesis until coverage is sufficient.

Benefits

  1. Centralized visibility: See all interactions in one place
  2. Consistent error handling: One place for recovery logic
  3. Information control: Filter what each agent sees
  4. Flexible routing: Change downstream agents without affecting upstream

Key Takeaways

  • All communication flows through the coordinator (hub-and-spoke)
  • Subagents never communicate directly with each other and have isolated context
  • Coordinator provides centralized visibility, error handling, and information control
  • Dynamically select subagents based on query complexity rather than always running the full pipeline

Glossary Terms

Related Concepts

Test Yourself

1 / 2

You're designing the communication pattern between your coordinator and subagents. Which architecture best supports visibility, error handling, and information control?