cao-session-management
Skill1.4k starsChanged 2 months agoApache-2.0View on GitHub
Interact with CAO (CLI Agent Orchestrator) — launch multi-agent sessions,
- Reads credentials
Trending
Quiet since October.about the whole repository
Who's talking about awslabs/cli-agent-orchestrator
- theplenkov-forks/cli-agent-orchestrator“Add Devin CLI provider”GitHub · Jun 28, 2026 · 4 reactions
- theplenkov-forks/cli-agent-orchestrator“Add Devin CLI provider”GitHub · Jun 23, 2026 · 4 reactions
- pavelkrotkov/aipro“fix(v3): persist CAO attribution for each accepted turn”GitHub · Sep 19, 2026 · 1 reactions
- theplenkov-forks/cli-agent-orchestrator“[feat] Official devcontainer feature for CAO”GitHub · Apr 3, 2026 · 1 reactions
- theplenkov-forks/cli-agent-orchestrator“[feat] Non-interactive / headless mode for containerized deployments”GitHub · Apr 3, 2026 · 1 reactions
The biggest 5 of 20 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 20
Talked about on GitHub (20 times).
On GitHub · 20
- Jun 28, 2026Add Devin CLI provider — theplenkov-forks/cli-agent-orchestrator4 reactions · 31 comments
- Jun 23, 2026Add Devin CLI provider — theplenkov-forks/cli-agent-orchestrator4 reactions · 30 comments
- Sep 19, 2026fix(v3): persist CAO attribution for each accepted turn — pavelkrotkov/aipro1 reaction · 1 comment
- Apr 3, 2026[feat] Official devcontainer feature for CAO — theplenkov-forks/cli-agent-orchestrator1 reaction
- Apr 3, 2026[feat] Non-interactive / headless mode for containerized deployments — theplenkov-forks/cli-agent-orchestrator1 reaction
15 more on GitHub
- Apr 3, 2026[feat] Make CORS origins configurable — theplenkov-forks/cli-agent-orchestrator1 reaction
- Apr 3, 2026[bug] tmux PTY attach inherits TERM=dumb in container environments — theplenkov-forks/cli-agent-orchestrator1 reaction
- Apr 3, 2026[bug] WebSocket PTY rejects connections from Docker bridge IPs — theplenkov-forks/cli-agent-orchestrator1 reaction
- Apr 3, 2026[feat] Add Devin CLI provider — theplenkov-forks/cli-agent-orchestrator1 reaction · 1 comment
- Apr 3, 2026[feat] Plugin/provider extension API — register providers without patching source — theplenkov-forks/cli-agent-orchestrator1 reaction
- Oct 4, 2026agent-plugins.github.awslabs.cli-agent-orchestrator: init at 2.5.1 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.awslabs.cli-agent-orchestrator: v2.5.1 → refs/tags/v2.5.1 — sudosubin/agents.nix0 reactions
- Oct 3, 2026Code review of a python segfault fix caused "cybersecurity prevention" — openai/codex0 reactions · 1 comment
- Sep 25, 2026agent-skills.github.awslabs.cli-agent-orchestrator: init at 2.5.1 — sudosubin/agents.nix0 reactions
- Sep 18, 2026RFC: modernize Passdown orchestration for ACP and cross-provider agents — vunm-io/passdown0 reactions · 8 comments
- Sep 10, 2026Add September 10 verified AI CLI discoveries — hasnocool/AI-CLI-Catalog0 reactions · 2 comments
- Jul 20, 2026feat: add CLI Agent Orchestrator (CAO) integration — ag-ui-protocol/ag-ui0 reactions · 8 comments
- Jul 20, 2026feat: add CLI Agent Orchestrator (CAO) integration — plauzy/ag-ui0 reactions · 2 comments
- Jul 20, 2026fix(cao-integration): canonical awslabs link + recurrence guard (P0-3, F-SL4) — plauzy/ag-ui0 reactions · 1 comment
- Apr 3, 2026[feat] Plugin/provider extension API — register providers without patching source — theplenkov-forks/cli-agent-orchestrator0 reactions · 1 comment
In this repository52 other files it gives its agents.
- cao-pluginSkill
- cao-providerSkill
- cao-agent-routingSkill
- cao-supervisor-protocolsSkill
- cao-worker-protocolsSkill
- aidlc-portfolioSkill
- agui-authorSkill
- cao-agent-routingSkill
- cao-contributingSkill
- cao-learningSkill
- cao-mcp-appsSkill
- cao-memorySkill
- cao-pluginSkill
- cao-providerSkill
- cao-session-livenessSkill
- cao-session-managementSkill
- cao-supervisor-protocolsSkill
- cao-worker-protocolsSkill
- cao-workflowSkill
- mcp-apps-builderSkill
- agui-authorSkill
- cao-agent-routingSkill
- cao-contributingSkill
- cao-learningSkill
- cao-mcp-appsSkill
- cao-memorySkill
- cao-pluginSkill
- cao-providerSkill
- cao-session-livenessSkill
- cao-session-managementSkill
- cao-supervisor-protocolsSkill
- cao-worker-protocolsSkill
- cao-workflowSkill
- mcp-apps-builderSkill
- migrate-agent-pluginSkill
- alphaSkill
- alphaSkill
- alphaSkill
- alphaSkill
- alphaSkill
- alphaSkill
- alphaSkill
- alphaSkill
- alphaSkill
- alphaSkill
- escaped-skillSkill
- alphaSkill
- alphaSkill
- betaSkill
- not-the-folder-nameSkill
- alphaSkill
- linkedSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Before launching a session, verify:
- Very specific: line 29
If not running, start it in a separate terminal: cao-server.
- Distinctive: line 46
If unsure which profile to use, ask the user rather than guessing.
- Very specific: line 80
Every cao launch MUST include:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CAO Session Management
Overview
CAO runs multi-agent workflows in named sessions. A conductor agent inside each session orchestrates the work.
Core Concepts
- Session: A group of agent terminals working together
- Conductor: The supervisor terminal — receives instructions, delegates to workers
- Provider: LLM backend. Default
kiro_cli, override with--provider
Prerequisites
Before launching a session, verify:
cao-serveris running atlocalhost:9889. Quick check:
If not running, start it in a separate terminal:curl -sf http://localhost:9889/sessions >/dev/null && echo OK || echo "start cao-server"cao-server.- The agent profile is installed.
cao launch --agents <profile>fails if the profile is unknown. Install built-ins or custom files withcao install <profile|path|url>.
Discovering Available Profiles
Profiles are CAO-level entities, installed with cao install regardless of which CLI provider runs them. To find available profiles:
| Source | Command |
| All available profiles across built-in store + local store + provider directories | curl -sf http://localhost:9889/agents/profiles — canonical, provider-agnostic |
| Custom/local profile files only | ls ~/.aws/cli-agent-orchestrator/agent-store/ |
Built-in profiles installed via cao install <name> | ls ~/.aws/cli-agent-orchestrator/agent-context/ |
| Profile installation and keyword discovery | see Agent profile installation and profile discovery |
Provider-native list (kiro_cli only) | kiro-cli agent list — useful because CAO mirrors profiles into ~/.kiro/agents/ |
The HTTP endpoint is the recommended check: it scans the built-in packaged store, the local store (agent-store/), and provider-specific directories (including agent-context/), then returns a deduplicated list (by profile name, built-in wins) with a source label on each entry.
If unsure which profile to use, ask the user rather than guessing.
Quick Example
A complete, copy-pasteable supervisor launch. The default provider is kiro_cli; pass --provider <name> to use another (claude_code, codex, antigravity_cli, kimi_cli, copilot_cli, opencode_cli, cursor_cli).
This example assumes a configured CAO setup (server running, profiles installed). On an already-configured host you can skip straight to cao launch. The cao install lines below are only for first-time setup; remove them if your CAO is already configured.
# Optional — skip if your CAO is already configured with these profiles.
# Provider-agnostic: `cao install` works for any provider.
cao install code_supervisor
cao install developer
cao install reviewer
# Launch headlessly (assumes cao-server is already running)
cao launch --agents code_supervisor --headless --yolo \
--session-name my-task --working-directory '/path/to/project' \
"Build a hello-world Python script. Delegate to developer, then reviewer."
# Same launch on a different provider
# cao launch --agents code_supervisor --provider claude_code --headless --yolo \
# --session-name my-task --working-directory '/path/to/project' "..."
# Check progress / final output
cao session status cao-my-task
cao session status cao-my-task --workers
# Clean up
cao shutdown --session cao-my-taskLaunching a Session
Every cao launch MUST include:
--agents PROFILE— see Discovering Available Profiles above; if unclear, ask the user--headless— required from an LLM agent; without it cao tries to attach tmux--session-name NAME— cao addscao-prefix automatically--working-directory DIR— a wrong path silently breaks the session with no recovery short of shutdown and relaunch. Ask the user if unclear. Always wrap in single quotes to pass the literal path to the server (prevents local shell expansion of~or variables before the value reaches cao).
cao launch --agents <profile> --headless --yolo \
--session-name <name> --working-directory '<path>' "<task>"--yolo skips confirmation prompts. Required when launching from an agent — interactive
prompts will stall the session.
For SOP-driven workflows (Kiro provider): launch with /prompts to discover
available SOPs, then send the matched SOP name prefixed with @ (e.g.,
@my-sop-name), then send the task — each as separate messages after
polling for completed status.
Commands
| Command | Description |
cao session list | List active sessions |
cao session status SESSION | Conductor status and last response |
cao session status SESSION --workers | Include worker terminals |
cao session status SESSION --terminal ID | Drill into a specific terminal |
cao session status SESSION --json | Machine-readable output; use to extract terminal IDs |
cao session send SESSION "msg" | Send and wait until completion (sync) |
cao session send SESSION "msg" --timeout N | Send and wait up to N seconds |
cao session send SESSION "msg" --async | Fire-and-forget without waiting |
cao session send SESSION "msg" --terminal ID | Send to a specific terminal |
cao shutdown --session SESSION | Shut down a session |
cao shutdown --all | Shut down all sessions |
cao session sendwaits for completion and returns output inline by default. With--async, it sends and returns immediately without waiting. With--timeout N, it waits up to N seconds — if the timeout expires, the agent is still running; check status later. Session names in commands use thecao-prefixed form (e.g.--session-name mywork→ usecao-mywork).
A reported status is inferred from the rendered terminal screen, not from a structured protocol, so it can disagree with reality. Before reporting readiness, progress, or completion to a user, corroborate the status with an output read — see cao-session-liveness.
Worker Communication
Inside a session, the conductor talks to workers via two MCP tools:
Prefer communicating through the conductor (cao session send SESSION "msg") rather
than directly to worker terminals. Bypassing the conductor leaves it without state on
what was asked or answered, which causes confusion. Two exceptions: unblocking a stuck
worker, and follow-up questions to a persistent async worker (see below).
handoff (blocking) — conductor sends task and waits for the worker to reach
COMPLETED status, then reads the output. If it times out, the worker is still
running — the conductor just stopped waiting.
assign (non-blocking) — conductor sends task and returns immediately. The worker
is expected to call send_message back to the conductor's terminal ID when done.
Each terminal only knows its own ID via $CAO_TERMINAL_ID.
By default the conductor uses sync (handoff). You can override this by explicitly asking it to use async or sync protocol when sending it a task.
Async workers (assign) stay alive after completing their task and can answer follow-up questions — useful for ongoing investigation where you want to keep querying the same worker. In this case, sending directly to the worker terminal is appropriate:
cao session send SESSION "<follow-up question>" --terminal <worker-terminal-id>Common Mistakes
Wrong working directory — agents won't find files, builds fail with confusing errors.
Stuck conductor — conductor is waiting on a worker that stopped responding. Check the worker's status first, then decide: prompt it to continue and send results back, or ask it to resend if it already finished. Never re-delegate work that may still be running — it risks duplicate work.
cao session status SESSION --workers
cao session status SESSION --terminal <worker-terminal-id>
cao session send SESSION "continue your work, then send results to terminal <conductor-terminal-id>" --terminal <worker-terminal-id>Get the conductor's terminal ID from cao session status SESSION --json.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

