Orchestrator Agent Workflows
The orchestrator agent is a special session that manages worker agents. It can:- Spawn multiple agents for a batch of issues
- Monitor agent progress and intervene when stuck
- Coordinate multi-agent workflows
- Handle escalations and notifications
Starting the Orchestrator Agent
- Generates an orchestrator prompt with project context
- Launches a Claude Code session in the project directory
- Provides the orchestrator with CLI access
- Opens the dashboard for monitoring
Orchestrator Prompt
The orchestrator receives a comprehensive prompt (fromorchestrator-prompt.ts):
Custom Orchestrator Rules
Provide project-specific orchestrator instructions:CI/CD Integration
GitHub Actions Integration
Trigger agent spawning from CI:.github/workflows/agent-spawn.yml:
agent-task → agent spawns automatically.
GitLab CI Integration
.gitlab-ci.yml:
Webhook-Triggered Spawning
Create a webhook server that spawns agents:Custom Notification Channels
Slack Notifications
Configure Slack webhook:- Go to https://api.slack.com/messaging/webhooks
- Create incoming webhook
- Copy URL and set environment variable:
Discord Notifications
Create a custom Discord notifier:Email Notifications
Create a custom email notifier plugin:PagerDuty Integration
For urgent escalations:Advanced Use Cases
1. Coordinated Multi-Agent Workflow
Scenario: Frontend and backend changes for a feature.2. Scheduled Batch Processing
Scenario: Process all new issues daily. Cron job:3. Auto-Retry with Escalation
Scenario: Retry failed agents with different prompts.4. Continuous Monitoring Dashboard
Scenario: Real-time monitoring with Grafana. Export metrics:- Alert if
agent_stuck > 3 - Alert if
agent_active == 0during business hours
5. PR Review Automation
Scenario: Auto-approve low-risk PRs.6. Multi-Repo Coordination
Scenario: Update multiple repos for a breaking API change.Event Log Analysis
All events are logged to~/.agent-orchestrator/events.jsonl:
Custom Plugins
Runtime Plugin (Docker Example)
Run agents in Docker containers:Best Practices
Next Steps
Plugin Development
Build custom Runtime, Agent, or Notifier plugins
API Reference
Explore the full type definitions and interfaces
