Orchestrator Agent (LEGACY)
DEPRECATED - This document describes the legacy OrchestratorAgent which was removed in December 2024.
DEPRECATION NOTICE: This document describes the legacy OrchestratorAgent which was removed in December 2024 as part of the loop-based agent refactoring. The system now uses a single
CloudflareChatAgentwith tool iterations and theplantool for task decomposition. See architecture.md for current implementation.
Legacy Documentation
TL;DR (Historical): Planned high-complexity tasks. Dispatched parallel Code/Research/GitHub Workers. Aggregated results. Router -> Orchestrator -> Workers.
Table of Contents
Flow
Key: Dependency levels enable parallelism. Continues on worker errors.
Parallel Execution
| Level | Steps | Workers | Example |
|---|---|---|---|
| 0 | No deps | ResearchWorker | "Latest React docs" |
| 1 | Deps L0 | CodeWorker | Review code after research |
| 2 | Deps L1 | GitHubWorker | Comment on PR |
Planner -> orchestration/planner.ts
Executor -> Levels via topological sort.
Code Snippet
packages/cloudflare-agent/src/orchestration/executor.ts
Quiz: Orchestrator vs Router?
A: Orchestrator executes multi-step; Router single dispatch ✅
Related: Workers -> | Router ->
Try: @duyetbot "Research React hooks, review code, comment PR" -> Orchestrator live!