/session
Manage agent sessions: list, inspect, rename, kill, restore, clean up, and claim PRs.
$ npx -y skills add Untrivial-ai/agent-orchestrator --agent claude-codeHow 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
/session
Context preview
What this command does when you run it.
Manage agent sessions: list, inspect, rename, kill, restore, clean up, and claim PRs.
Command definition
session.mdao session
Manage agent sessions: list, inspect, rename, kill, restore, clean up, and claim PRs.
Syntax
ao session <subcommand> [args] [flags]
Subcommands
---
ao session ls
List sessions.
**Syntax:**
ao session ls [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `-a, --all` | Include orchestrator sessions | - | | `--include-terminated` | Include terminated sessions | - | | `--json` | Output as JSON | - | | `-p, --project string` | Filter by project ID | - |
**Examples:**
# List all active worker sessions
ao session ls
# List all sessions including terminated, scoped to one project
ao session ls --include-terminated -p agent-orchestrator
---
ao session get
Fetch one session.
**Syntax:**
ao session get <id> [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `--json` | Output as JSON | - | | `-p, --project string` | Project id to scope the lookup | - |
**Examples:**
# Get details for session mer-3
ao session get mer-3
# Get session details as JSON
ao session get mer-3 --json
---
ao session kill
Terminate a session.
**Syntax:**
ao session kill <id> [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `-p, --project string` | Project id to scope the lookup | - |
**Examples:**
# Kill session mer-3
ao session kill mer-3
---
ao session rename
Rename a session.
**Syntax:**
ao session rename <id> <name> [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `-p, --project string` | Project id to scope the lookup | - |
**Examples:**
# Rename session mer-3 to a new display name
ao session rename mer-3 "fix-auth-bug"
---
ao session restore
Relaunch a terminated session.
**Syntax:**
ao session restore <id> [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `-p, --project string` | Project id to scope the lookup | - |
**Examples:**
# Restore a terminated session
ao session restore mer-3
---
ao session cleanup
Clean up terminated sessions by reclaiming eligible workspaces. Dirty worktrees are skipped by the daemon.
**Syntax:**
ao session cleanup [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `-p, --project string` | Filter by project ID | - | | `-y, --yes` | Skip confirmation prompt | - |
**Examples:**
# Clean up all terminated sessions (skip prompt)
ao session cleanup -y
# Clean up terminated sessions for one project
ao session cleanup -p agent-orchestrator
---
ao session claim-pr
Attach an existing PR to a session.
**Syntax:**
ao session claim-pr <session-id> <pr-ref> [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `--json` | Output as JSON | - | | `--no-takeover` | Refuse if another active session owns the PR | - | | `-p, --project string` | Project id to scope the lookup | - |
**Examples:**
# Attach PR 88 to session mer-3
ao session claim-pr mer-3 88
# Claim PR 88 but refuse if another session already owns it
ao session claim-pr mer-3 88 --no-takeover
Read more
ao session
Manage agent sessions: list, inspect, rename, kill, restore, clean up, and claim PRs.
Syntax
ao session <subcommand> [args] [flags]
Subcommands
---
ao session ls
List sessions.
**Syntax:**
ao session ls [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `-a, --all` | Include orchestrator sessions | - | | `--include-terminated` | Include terminated sessions | - | | `--json` | Output as JSON | - | | `-p, --project string` | Filter by project ID | - |
**Examples:**
# List all active worker sessions ao session ls
# List all sessions including terminated, scoped to one project ao session ls --include-terminated -p agent-orchestrator
---
ao session get
Fetch one session.
**Syntax:**
ao session get <id> [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `--json` | Output as JSON | - | | `-p, --project string` | Project id to scope the lookup | - |
**Examples:**
# Get details for session mer-3 ao session get mer-3
# Get session details as JSON ao session get mer-3 --json
---
ao session kill
Terminate a session.
**Syntax:**
ao session kill <id> [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `-p, --project string` | Project id to scope the lookup | - |
**Examples:**
# Kill session mer-3 ao session kill mer-3
---
ao session rename
Rename a session.
**Syntax:**
ao session rename <id> <name> [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `-p, --project string` | Project id to scope the lookup | - |
**Examples:**
# Rename session mer-3 to a new display name ao session rename mer-3 "fix-auth-bug"
---
ao session restore
Relaunch a terminated session.
**Syntax:**
ao session restore <id> [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `-p, --project string` | Project id to scope the lookup | - |
**Examples:**
# Restore a terminated session ao session restore mer-3
---
ao session cleanup
Clean up terminated sessions by reclaiming eligible workspaces. Dirty worktrees are skipped by the daemon.
**Syntax:**
ao session cleanup [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `-p, --project string` | Filter by project ID | - | | `-y, --yes` | Skip confirmation prompt | - |
**Examples:**
# Clean up all terminated sessions (skip prompt) ao session cleanup -y
# Clean up terminated sessions for one project ao session cleanup -p agent-orchestrator
---
ao session claim-pr
Attach an existing PR to a session.
**Syntax:**
ao session claim-pr <session-id> <pr-ref> [flags]
**Flags:**
| Flag | Meaning | Default / Required | |---|---|---| | `--json` | Output as JSON | - | | `--no-takeover` | Refuse if another active session owns the PR | - | | `-p, --project string` | Project id to scope the lookup | - |
**Examples:**
# Attach PR 88 to session mer-3 ao session claim-pr mer-3 88
# Claim PR 88 but refuse if another session already owns it ao session claim-pr mer-3 88 --no-takeover
The orchestration layer for parallel AI coding agents An Agentic IDE that supervises parallel AI coding agents in isolated workspaces, with complete control and automatic feedback loops from CI failures, review comments, and merge conflicts.
Other commands on agent-orchestrator.
- /browser
Inspect and control the current AO session's target-isolated browser. The desktop app must be open. The agent and user share the same live page, cookies, navigation state, and `WebContentsView`; the runtime remains usable while the Browser panel is hidden. Tabs in this worker
Open command - /doctor
Run local AO health checks. Use this to diagnose setup problems or verify the environment is correctly configured.
Open command - /import
Import reads the legacy Agent Orchestrator flat-file store (`~/.agent-orchestrator`) read-only and ports its projects and per-project settings into the rewrite database. Legacy files are never modified, and a re-run skips rows that already exist, so it is safe to run more than
Open command - /orchestrator
Manage orchestrator sessions.
Open command - /preview
Open a URL or workspace file in the desktop browser panel for the current session, or start a deterministic session-owned dev server from an existing `.ao/launch.json`.
Open command - /project
Manage projects: register repos, inspect, configure per-project settings, and remove.
Open command

