Orchestration
Spawn worker sessions for parallel feature development.
AgentOS supports a conductor/worker pattern for parallel development.
How It Works
A conductor session can spawn worker sessions, each with its own:
- Git worktree (isolated branch)
- Environment setup
- Dev server port
Workers run independently while the conductor coordinates.
Creating a Conductor
- Create a new session
- Enable Conductor mode
- The session gets access to orchestration tools
Spawning Workers
From a conductor session, use Claude Code to spawn workers:
Spawn a worker to implement the auth module
Claude uses the spawn_worker MCP tool to:
- Create a git worktree with
feature/{task}branch - Copy environment files
- Run package install
- Start a new terminal session
Viewing Workers
Workers appear nested under the conductor in the sidebar:
📋 Conductor Session (3 workers)
└─ Worker: auth-module
└─ Worker: api-endpoints
└─ Worker: unit-tests
Click the conductor to toggle between:
- Terminal view - Conductor's terminal
- Workers view - List of worker sessions with status
Worker Status
Each worker shows:
- Current status (running/waiting/idle)
- Branch name
- Last activity
Getting Worker Output
The conductor can check worker progress:
What's the status of the auth-module worker?
Claude uses get_worker_output to fetch the worker's terminal output.
Killing Workers
Workers can be killed individually or all at once:
- Click the worker in the sidebar
- Select Kill Worker
Or from the conductor:
Kill all workers
MCP Configuration
AgentOS auto-generates .mcp.json for conductor sessions with these tools:
| Tool | Description |
|---|---|
spawn_worker | Create a new worker session |
list_workers | Get all workers and their status |
get_worker_output | Fetch terminal output from a worker |
Use Cases
Parallel Feature Development
I need to build a dashboard. Spawn 3 workers:
1. API endpoints for data fetching
2. React components for the UI
3. Unit tests for both
A/B Testing Approaches
Spawn 2 workers to try different approaches:
1. Worker A: Use Redux for state
2. Worker B: Use Zustand for state
Divide and Conquer
This refactor is large. Spawn workers for:
1. Migrate user module
2. Migrate product module
3. Migrate order module
4. Update all imports