cao-session-liveness
Skill1.4k starsChanged 2 months agoApache-2.0View on GitHub
Verify whether a CAO session is actually alive and what it really
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-session-managementSkill
- 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-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
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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 19
Every CAO provider infers agent state by pattern-matching the rendered terminal screen.
- Distinctive: line 29
Never report readiness, progress, or completion from a status value alone.
- Distinctive: line 30
Always corroborate with output before you tell a user anything:
- Very specific: line 32
Read the status (get_terminal_status, or cao session status SESSION).
- Very specific: line 33
Read the output tail (read_session_output / get_terminal_output, or cao session status SESSION --json and inspect last_output).
- Distinctive: line 35
If the two disagree, the output wins.
- Distinctive: line 42
Treat any of the following in the output tail as proof the provider is no longer running, regardless of the reported status:
- Distinctive: line 71
Do not accuse a conductor of fabricating a delegation on the strength of a missing terminal alone.
- Distinctive: line 93
If a provider fails to launch headlessly, report the exact signature to the user and offer a different provider.
- Distinctive: line 112
Keep a short registry outside CAO — one line per session you launch: name, provider, working directory, purpose, date.
- Distinctive: line 120
Before sending to or shutting down a session you did not start yourself, ask the user first.
≈ “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 Liveness
Companion to cao-session-management, which covers the mechanics of launching
and messaging sessions. This skill covers a single question that mechanics alone
cannot answer: is the session actually alive, and is the status telling me the
truth?
Why this matters
Every CAO provider infers agent state by pattern-matching the rendered terminal
screen. There is no structured protocol between CAO and the provider CLI. A
provider that has exited, crashed, or stalled on an unanswerable dialog can
leave a screen that still matches an idle or processing pattern.
The consequence is specific and it is the failure this skill exists to prevent: reporting progress on a session that is already dead.
The two-signal rule
Never report readiness, progress, or completion from a status value alone. Always corroborate with output before you tell a user anything:
- Read the status (
get_terminal_status, orcao session status SESSION). - Read the output tail (
read_session_output/get_terminal_output, orcao session status SESSION --jsonand inspectlast_output). - If the two disagree, the output wins.
A status of idle with an output tail showing a shell prompt means the CLI
exited. Report the session as dead, not as ready.
Dead-session discriminators
Treat any of the following in the output tail as proof the provider is no longer running, regardless of the reported status:
| Signal | Means |
Session ended. / Resume with: <cli> --resume-id ... | The CLI exited on its own |
error: Conflicting options: or a usage/help banner | The CLI rejected its launch flags and never started |
API Error (...), 400, or a model/auth failure | The provider started but cannot reach a model |
| A bare shell prompt with a directory and timestamp, no agent chrome | The pane fell back to the shell |
| An output read that fails with an extraction error | No response boundary on screen; corroborate before trusting |
A session parked in waiting_user_answer that never advances is usually stalled
on a dialog nothing will answer. Treat it as dead weight, report it to the user,
and do not silently kill it.
Not a dead session: a finished handoff worker
A blocking handoff tears its worker down once it returns. The worker terminal
ID the conductor reports was valid during the call and is gone afterwards, so
querying it later is expected to fail:
get_terminal_status/GET /terminals/<id>returns not-foundcao session status SESSION --workerslists no workers
Neither is evidence the conductor invented the delegation. Confirm a handoff from
the conductor's own transcript — a full-mode output read showing the
handoff tool call, its agent_profile, and the returned output — not from the
terminal registry. Only a non-blocking assign leaves a worker alive to query.
Do not accuse a conductor of fabricating a delegation on the strength of a missing terminal alone.
Verify a provider before depending on it
Provider reliability varies, is version-sensitive, and changes as upstream CLIs release new dialogs and flags. Do not assume; verify once per environment:
- Launch a throwaway session in a scratch directory.
- Apply the two-signal rule.
- Send a trivial task with a short timeout and confirm output returns.
- Shut the session down.
Known reliability characteristics, as context for interpreting what you see:
| Provider | Detection basis | What to watch for |
kiro_cli | Version-specific prompt, credits, and separator patterns | New startup dialogs that default to a decline option; flag combinations the installed CLI rejects |
hermes | Idle timer stable across repeated polls | Custom themes break prompt matching; slowest to confirm completion. Patterns are overridable by environment variable |
opencode_cli | Alt-screen TUI completion marker | Scrollback is roughly one viewport; a long single response can lose its own top and fail extraction |
claude_code, codex | Rendered-screen detection | Generally stable headless; still apply the two-signal rule |
If a provider fails to launch headlessly, report the exact signature to the user and offer a different provider. Do not retry the same launch repeatedly — a flag rejection or a declining dialog will fail identically every time.
Interpreting a send that does not return
- A timeout is not a failure. The agent is still working; the caller stopped waiting. Say so, and check again later.
- Never re-send a task after a timeout. The original may still be running, and a duplicate risks conflicting work in the same directory.
- A busy terminal refuses input. Wait for
idleorcompleted; do not force. - An async send returns nothing by design. Poll afterwards, applying the two-signal rule.
Record what each session is for
CAO stores a session's name, not its purpose. An inventory of live sessions cannot tell you which is safe to touch.
Keep a short registry outside CAO — one line per session you launch: name, provider, working directory, purpose, date. Update it on launch and on shutdown, and read it before answering any question about what a session is doing or before acting on one.
Do not act on sessions you did not launch
Long-running sessions may hold real, unrecoverable work. Reads are always safe. Before sending to or shutting down a session you did not start yourself, ask the user first. Never issue a shutdown that targets all sessions at once.
Related
- cao-session-management — launching, messaging, and worker communication mechanics
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.

