Coordinate multiple worker agents for project management. Handles task distribution, progress tracking, and result synthesis.
Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
Install from the preview toolbar
Copy the install command above and run it in your project — Pro patterns include a short-lived token.
Add environment variables to .env.local
OPENAI_API_KEY
Point client fetches at your API routes
Replace preview `/view/.../api/...` paths with `/api/...` in the installed files.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions for your product — Copy for AI in the toolbar helps seed that work.
Run your dev server and open the pattern route
Install dependencies if needed, then start the app and verify responses.
OPENAI_API_KEYGet keyAI SDK APIs
AgenttoolstepCountIsExperimental_AgentgatewayProviders
app/page.tsxapp/layout.tsxapp/api/orchestrator-agent/route.tslib/orchestrator-agent.tslib/orchestrator-tool-types.tslib/ai-agent-orchestrator-tools/orchestrator.tslib/ai-agent-orchestrator-tools/worker.tslib/ai-agent-orchestrator-tools/coordinator.tslib/ai-agent-orchestrator-tools/schema.tscomponents/orchestrator-chat-demo.tsxcomponents/tool-views/orchestrator-view.tsxcomponents/tool-views/worker-view.tsxcomponents/tool-views/coordinator-view.tsxREADME.mdAGENT_FLOW.mdnpm packages
6
Registry components
orchestrator-agent/route.tsAPI route wiring the orchestrator agent: uses createAgentUIStreamResponse and validateUIMessages.
lib/orchestrator-agent.tsCore agent definition implementing the Orchestrator-Worker pattern. Defines 9 specialized worker types and a mandatory workflow. Registers 3 tools (orchestrator, worker, coordinator) with stepCountIs(15).
ai-agent-orchestrator-tools/orchestrator.tsOrchestrator planning tool: breaks down requests into structured implementation plans with 6 phases, each with category, priority, complexity, dependencies, and estimated duration.
ai-agent-orchestrator-tools/coordinator.tsCoordinator process management tool: implements 6 actions (start, check_progress, resolve_blocker, complete, pause, resume). Tracks progress and produces completion summaries.
ai-agent-orchestrator-tools/worker.tsWorker execution tool: handles 9 specialized worker types, each producing typed deliverables. Shows the pattern for domain-specific task delegation.
ai-agent-orchestrator-tools/schema.tsShared Zod schemas defining data contracts between orchestrator, workers, and coordinator.
Coordinate multiple worker agents for project management. Handles task distribution, progress tracking, and result synthesis.
Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
Install from the preview toolbar
Copy the install command above and run it in your project — Pro patterns include a short-lived token.
Add environment variables to .env.local
OPENAI_API_KEY
Point client fetches at your API routes
Replace preview `/view/.../api/...` paths with `/api/...` in the installed files.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions for your product — Copy for AI in the toolbar helps seed that work.
Run your dev server and open the pattern route
Install dependencies if needed, then start the app and verify responses.
OPENAI_API_KEYGet keyAI SDK APIs
AgenttoolstepCountIsExperimental_AgentgatewayProviders
app/page.tsxapp/layout.tsxapp/api/orchestrator-agent/route.tslib/orchestrator-agent.tslib/orchestrator-tool-types.tslib/ai-agent-orchestrator-tools/orchestrator.tslib/ai-agent-orchestrator-tools/worker.tslib/ai-agent-orchestrator-tools/coordinator.tslib/ai-agent-orchestrator-tools/schema.tscomponents/orchestrator-chat-demo.tsxcomponents/tool-views/orchestrator-view.tsxcomponents/tool-views/worker-view.tsxcomponents/tool-views/coordinator-view.tsxREADME.mdAGENT_FLOW.mdnpm packages
6
Registry components
orchestrator-agent/route.tsAPI route wiring the orchestrator agent: uses createAgentUIStreamResponse and validateUIMessages.
lib/orchestrator-agent.tsCore agent definition implementing the Orchestrator-Worker pattern. Defines 9 specialized worker types and a mandatory workflow. Registers 3 tools (orchestrator, worker, coordinator) with stepCountIs(15).
ai-agent-orchestrator-tools/orchestrator.tsOrchestrator planning tool: breaks down requests into structured implementation plans with 6 phases, each with category, priority, complexity, dependencies, and estimated duration.
ai-agent-orchestrator-tools/coordinator.tsCoordinator process management tool: implements 6 actions (start, check_progress, resolve_blocker, complete, pause, resume). Tracks progress and produces completion summaries.
ai-agent-orchestrator-tools/worker.tsWorker execution tool: handles 9 specialized worker types, each producing typed deliverables. Shows the pattern for domain-specific task delegation.
ai-agent-orchestrator-tools/schema.tsShared Zod schemas defining data contracts between orchestrator, workers, and coordinator.

Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Coordinate multiple worker agents for project management. Handles task distribution, progress tracking, and result synthesis.
Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.

Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Coordinate multiple worker agents for project management. Handles task distribution, progress tracking, and result synthesis.
Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.