Skip to content
Development
Command

/session

Manage agent sessions: list, inspect, rename, kill, restore, clean up, and claim PRs.

From plugin
agent-orchestrator
9.1k13 skills13 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/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.md

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
Read more
Ships withagent-orchestrator

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.

Get the whole plugin
Stats
9,094
Stars
1,322
Forks
Active
Maintenance
Go
Language
Apache-2.0
License
58m ago
Last commit
5mo ago
Created

Repo: Untrivial-ai/agent-orchestrator