Orchestrator
The orchestrator is the central coordination layer that manages task execution, agent delegation, and workflow optimization. It uses a DAG-based scheduler to maximize parallelism while respecting task dependencies.
Starting the Orchestrator
Interactive Mode
In interactive mode, use slash commands to control the orchestrator:
# Run until all tasks complete
> /orchestrator run
# Run continuously (watches for new tasks)
> /orchestrator run --infinite
# Stop the orchestrator
> /orchestrator stop
# Check status
> /orchestrator statusOrchestrator Commands
| Command | Description |
|---|---|
/orchestrator run | Run the orchestrator (processes tasks until complete) |
/orchestrator run --infinite | Run continuously, watching for new tasks |
/orchestrator generate <description> | Generate AGILE tasks from a project description |
/orchestrator status | Show current orchestrator status |
/orchestrator agents | Live agent monitoring with real-time status |
/orchestrator kanban | Open interactive kanban board |
/orchestrator stop | Stop the running orchestrator |
/orchestrator clear | Clear all tasks for the current project |
/orchestrator logs <task-id> | Show agent execution logs for a task |
DAG-Based Task Management
The orchestrator uses a Directed Acyclic Graph (DAG) to manage task dependencies. This allows it to:
- Determine execution order - Tasks are processed in dependency order
- Maximize parallelism - Independent tasks run simultaneously
- Handle complex chains - Multi-level dependencies are resolved automatically
- Prevent cycles - Invalid dependency configurations are rejected
DAG Commands
| Command | Description |
|---|---|
/orchestrator dag | Show DAG status with statistics |
/orchestrator dag ascii | ASCII visualization of task dependencies |
/orchestrator dag dot | Export DAG in DOT format (for Graphviz) |
Managing Dependencies
Use natural language to manage dependencies:
> Add a dependency so task 3 must complete before task 7> Make the login task depend on the database setup task> Remove the dependency between tasks 2 and 5> Show me which tasks are ready to startParallel Execution
The orchestrator can run multiple agents in parallel. Configure parallelism in your config:
[orchestrator]
max_parallel_agents = 4 # Number of agents that can run simultaneouslyEach parallel agent can work in its own isolated environment:
- Git Worktrees - Separate working directories for each branch
- Container Sandboxes - Podman containers with resource limits
Generating Tasks
The orchestrator can generate AGILE tasks from a project description:
Interactive Mode
> /orchestrator generate "Build a REST API for user management with CRUD operations"Agent Monitoring
View live agent status:
> /orchestrator agentsThis shows:
- Which agents are currently active
- What task each agent is working on
- Real-time progress and status updates
Viewing Logs
Check execution logs for any task:
> /orchestrator logs 5This shows the complete agent execution history for the specified task.
Execution Modes
Standard Mode
Processes all pending tasks until the queue is empty:
> /orchestrator runThe orchestrator will:
- Query the DAG for ready tasks
- Assign tasks to available agents
- Process until all tasks are done or blocked
- Stop automatically
Infinite Mode
Runs continuously, picking up new tasks as they’re added:
> /orchestrator run --infiniteThe orchestrator will:
- Process all ready tasks
- Wait for new tasks to be added
- Continue indefinitely until stopped
Stop with:
> /orchestrator stopWorkflow Example
# Initialize the project
> /init
# Generate tasks from a description
> /orchestrator generate "Add user authentication with login, logout, and password reset"
# View the generated tasks
> /orchestrator kanban
# Adjust dependencies if needed
> Make sure password reset depends on login being complete
# Start processing
> /orchestrator run
# Monitor agent progress
> /orchestrator agents
# View specific task logs
> /orchestrator logs 3
# After completion, view results
> /orchestrator statusConfiguration
Orchestrator settings in your config file:
[orchestrator]
max_parallel_agents = 1 # Number of parallel agents
use_worktrees = false # Enable git worktrees
worktrees_dir = ".worktrees" # Worktrees directory
cleanup_worktrees_on_complete = false # Auto-cleanupSee Configuration for all options.
The orchestrator includes self-healing recovery—it automatically detects and recovers from orphaned tasks, stale executions, and other failure scenarios.