Coordinator-Subagent (Orchestrator) Pattern
CoreOrchestrate multi-agent systems with coordinator-subagent patterns · Difficulty 3/5
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 AgentKey Principle: Hub-and-Spoke Communication
All inter-agent communication flows through the coordinator:
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
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
Related Concepts
Test Yourself1 of 2
You're designing the communication pattern between your coordinator and subagents. Which architecture best supports visibility, error handling, and information control?