Skip to content
Agent Orchestration
Command

/spawn

Spawn a worker or orchestrator agent session in a registered project, or a standalone worker session that is not tied to a project. Standalone sessions run in an Orchestrator-managed directory. Register a project first with `ao project add` for project-scoped sessions.

From plugin
agent-orchestrator
15k25 skills25 commands
$ npx -y skills add OrchestratorInc/agent-orchestrator --agent claude-code

Command definition

spawn.md

ao spawn

Spawn a worker or orchestrator agent session in a registered project, or a standalone worker session that is not tied to a project. Standalone sessions run in an Orchestrator-managed directory. Register a project first with `ao project add` for project-scoped sessions.

Syntax

ao spawn [flags]

Flags

| Flag | Meaning | Default / Required | |---|---|---| | `--branch string` | Branch for the session worktree | `ao/<session-id>/root` | | `--claim-pr string` | Claim an existing PR. For review-only work, add `--no-takeover --review` | - | | `--kind string` | Session role: `worker` or `orchestrator` | `worker` | | `--harness string` | Agent harness to use (see list below) | Project `worker.agent`; required if the project has none | | `--issue string` | Issue id to associate with the session | - | | `--model string` | Agent model override for this session only; overrides project/role config | - | | `--effort string` | Reasoning effort override for this session only (for example `low`, `medium`, `high`); overrides project/role config | - | | `--account string` | Claude Code or Codex account id to start on (from `ao account ls`); the account must be signed in | The agent's default account | | `--name string` | Display name shown in the sidebar (max 100 characters) | Required | | `--mode chat\|tui` | Initial session interface; Chat requires harness support (including Grok Build via native ACP) | Daemon default, otherwise Terminal UI | | `--output artifact` | Ask the worker for a file in its artifact directory instead of a PR | Ordinary task | | `--review` | Claim the PR to review it, not work on it: turn off automatic CI and review-comment fixing and native auto-review before the claim. Implies `--no-takeover` | Requires `--claim-pr` | | `--no-takeover` | Refuse if another active session owns the claimed PR (requires `--claim-pr`) | - | | `--project string` | Project id to spawn the session in | Optional when `--standalone` is used; defaults to `AO_PROJECT_ID` or the current repo's registered project | | `--standalone` | Spawn a projectless worker session in an Orchestrator-managed directory | Disabled when `--project` is set | | `--prompt string` | Initial prompt for the agent | - | | `--skip-agent-check` | Skip CLI readiness warnings; the daemon still validates launch readiness | - | | `--tracker-provider string` | Issue tracker provider: `github` or `gitlab` | `github` |

`--agent` is an alias for `--harness`.

Available harnesses: `claude-code`, `codex`, `aider`, `opencode`, `opencode-v2`, `grok`, `droid`, `amp`, `agy`, `crush`, `cursor`, `qwen`, `gemini`, `copilot`, `goose`, `auggie`, `continue`, `devin`, `cline`, `kimi`, `muse`, `kiro`, `kilocode`, `vibe`, `pi`, `kimchi`, `prime-agent`, `autohand`, `omp`, `fx`, `unreal-agent`, `mimo-code`, `minimax-code`, `deepseek-harness`, `openhands`, `command-code`. Check `ao agent ls --refresh` for readiness on the installed build. `unreal-agent` is Chat-only; Gemini, MiMo Code, MiniMax Code, and OpenHands are Terminal UI-only.

`fx` is experimental and Terminal UI only: spawn it with `--agent fx --mode tui`.

`command-code` is Terminal UI only: spawn it with `--agent command-code --mode tui`.

Examples

# Spawn a worker for issue 142 in the agent-orchestrator project
ao spawn --project agent-orchestrator --issue 142 --name "fix-session-leak" --prompt "Fix the session leak described in issue 142. Branch off upstream/main."
# Spawn a worker to continue implementation on an existing PR
ao spawn --project agent-orchestrator --name "continue-pr-88" --claim-pr 88 --prompt "Continue implementation on PR 88."
# Spawn a worker to review someone else's PR: it claims the PR with automatic
# fixing and native auto-review off, so it gets none of the PR's CI failures or
# review comments
ao spawn --project agent-orchestrator --name "review-pr-88" --claim-pr 88 --no-takeover --review --prompt "Review PR 88 and submit only the requested provider review. The PR is not the user's; do not change it."
# Spawn an orchestrator using the project's orchestrator configuration
ao spawn --project agent-orchestrator --kind orchestrator --name "coordinate-fix" \
  --prompt "Coordinate the fix and report the worker PR."
# Spawn a standalone worker whose deliverable is an artifact file, not a PR
ao spawn --standalone --agent claude-code --output artifact --name "q3-report" \
  --prompt "Write a one-page summary of Q3 incidents."
# Associate a GitLab issue with a worker
ao spawn --project my-gitlab-app --issue 42 --tracker-provider gitlab \
  --name "fix-issue-42" --prompt "Fix GitLab issue 42."
Read more
@orchestratorinc
Ships withagent-orchestrator

Plan, run and supervise fleets of agents from task to merged PR. Desktop (macOS, Windows, Linux) + iPhone & Android apps. Supports Claude Code, Codex & 35+ coding agents.

Stars on GitHub

Momentum

stars in total
14.7k
Star history of OrchestratorInc/agent-orchestrator on GitHub, a chart by star-history.com

Other commands on agent-orchestrator.

More commands from other plugins.

COMMAND_COMPLIANCE_REPORT

COMMAND_COMPLIANCE_REP…

Command

Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…

@ruvnet@ruvnetInstall Command
ask

ask

Command

This compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…

@yeachan-heo@yeachan-heoInstall Command