Skip to content
Development
Command

/spawn

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

From plugin
agent-orchestrator
12k15 skills15 commands
Install
$ npx -y skills add Untrivial-ai/agent-orchestrator --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/spawn

Context preview

What this command does when you run it.

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

Command definition

spawn.md

ao spawn

Spawn a worker agent session in a registered project, or a standalone workspace session that is not tied to a project. Standalone sessions run in an AO-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` | Immediately claim an existing PR for the spawned session | - | | `--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 | - | | `--name string` | Display name shown in the sidebar (max 20 characters) | Required | | `--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 AO-managed directory | Disabled when `--project` is set | | `--prompt string` | Initial prompt for the agent | - |

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

Available harnesses: `claude-code`, `codex`, `aider`, `opencode`, `grok`, `droid`, `amp`, `agy`, `crush`, `cursor`, `qwen`, `copilot`, `goose`, `auggie`, `continue`, `devin`, `cline`, `kimi`, `kiro`, `kilocode`, `vibe`, `pi`, `autohand`.

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 and immediately claim an open PR
ao spawn --project agent-orchestrator --name "review-pr-88" --claim-pr 88 --harness claude-code
Read more
Ships withagent-orchestrator

Run and supervise teams of coding agents from planning to merge. Any harness (Claude code, codex, +25 more). Desktop, web, mobile, and cloud agents.

Get the whole plugin
Stats
12,165
Stars
1,676
Forks
Active
Maintenance
Go
Language
Apache-2.0
License
3h ago
Last commit
7mo ago
Created

Repo: Untrivial-ai/agent-orchestrator

Other commands on agent-orchestrator.