Skip to main content
Agent Orchestrator’s plugin architecture and event system enable powerful custom workflows beyond the default CI/PR automation.

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

This:
  1. Generates an orchestrator prompt with project context
  2. Launches a Claude Code session in the project directory
  3. Provides the orchestrator with CLI access
  4. Opens the dashboard for monitoring
Orchestrator capabilities:

Orchestrator Prompt

The orchestrator receives a comprehensive prompt (from orchestrator-prompt.ts):

Custom Orchestrator Rules

Provide project-specific orchestrator instructions:
These rules are injected into the orchestrator prompt and guide its behavior.

CI/CD Integration

GitHub Actions Integration

Trigger agent spawning from CI: .github/workflows/agent-spawn.yml:
Trigger: Label an issue with agent-task → agent spawns automatically.

GitLab CI Integration

.gitlab-ci.yml:
Trigger: Click “Run Pipeline” on an issue → spawns agent.

Webhook-Triggered Spawning

Create a webhook server that spawns agents:
Trigger from anywhere:

Custom Notification Channels

Slack Notifications

Configure Slack webhook:
Get webhook URL:
  1. Go to https://api.slack.com/messaging/webhooks
  2. Create incoming webhook
  3. Copy URL and set environment variable:

Discord Notifications

Create a custom Discord notifier:
Discord webhook format:

Email Notifications

Create a custom email notifier plugin:
Configure in YAML:

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:
daily-agent-spawn.sh:

3. Auto-Retry with Escalation

Scenario: Retry failed agents with different prompts.
Custom escalation script:

4. Continuous Monitoring Dashboard

Scenario: Real-time monitoring with Grafana. Export metrics:
Grafana alerts:
  • Alert if agent_stuck > 3
  • Alert if agent_active == 0 during business hours

5. PR Review Automation

Scenario: Auto-approve low-risk PRs.
Custom review script:

6. Multi-Repo Coordination

Scenario: Update multiple repos for a breaking API change.
Orchestrator workflow:

Event Log Analysis

All events are logged to ~/.agent-orchestrator/events.jsonl:
Query events:

Custom Plugins

Runtime Plugin (Docker Example)

Run agents in Docker containers:
Use in config:

Best Practices

1

Start simple

Use default reactions and workflows before building custom automation.
2

Monitor events

Tail the event log to understand system behavior:
3

Test reactions in isolation

Use a test project to validate custom workflows before production.
4

Gradual escalation

Start with notifications, add automation as confidence grows.
5

Preserve audit trail

Never delete event logs or session metadata (disk is cheap).

Next Steps

Plugin Development

Build custom Runtime, Agent, or Notifier plugins

API Reference

Explore the full type definitions and interfaces