🗓️ 21032026 2100
Hierarchical task decomposition where a top-level coordinator routes subtasks to specialized agents
How It Works
- Coordinator agent receives a complex user request
- Analyzes and decomposes it into subtasks
- Routes each subtask to the appropriate specialized sub-agent
- Sub-agents can themselves be sequential or parallel workflows
- Coordinator aggregates results and returns a unified response
┌─────────────┐
│ Coordinator │
└──────┬──────┘
┌────────────┼────────────┐
▼ ▼ ▼
┌────────────┐ ┌───────────┐ ┌──────────┐
│ Food & │ │ Nearby │ │ Trip │
│ Transport │ │ Places │ │ Cost │
│(sequential)│ │(parallel) │ │ │
└────────────┘ └───────────┘ └──────────┘
Analogy
Acts like a project manager — understands the big picture, delegates to specialists, and assembles the final deliverable.
When to Use
- Complex requests that naturally decompose into independent subtasks
- When specialized agents exist for different domains (search, calculation, generation)
- When subtasks benefit from different execution strategies (some sequential, some parallel)
Trade-offs
| Pros | Cons |
|---|---|
| Highly flexible — handles diverse complex problems | Routing overhead adds latency |
| Leverages domain-specific expertise per sub-agent | Multi-level calls increase cost |
| Clean separation of concerns | Harder to debug across agent boundaries |
References
- agentic_design_patterns
- agent_as_tool_pattern — alternative approach where primary agent retains full control
- Advanced Agentic Patterns for Multi-Agent Systems