cao-session-liveness

cao-session-liveness is a skill for Claude Code, Codex from awslabs/cli-agent-orchestrator. It costs 70 tokens per session (1,336 once invoked), scanned A, original, Apache-2.0.

A procedure for checking whether a CAO agent session is truly running and what it actually output.

In plain words
What is it for?
It helps verify sessions by comparing their reported status with recent terminal output before reporting readiness, progress, or completion.
Why use it?
A session can appear idle or active even after crashing or getting stuck, so a status value alone can give a false progress or completion report.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit It helps verify sessions by comparing their reported status with recent terminal output before reporting readiness, progress, or completion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awslabs/cli-agent-orchestrator/cao-session-liveness
About the project

CLI Agent Orchestrator is a tool that coordinates multiple AI coding command-line programs by running them as separate workers in isolated terminal sessions. A supervisor uses it to delegate software tasks to specialist agents in parallel or in sequence while the workers retain their normal command-line capabilities. The catalogue skills operate this orchestration workflow.

awslabs/cli-agent-orchestrator · 1,235 stars · on GitHub · awslabs.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add awslabs/cli-agent-orchestrator --skill cao-session-liveness
Clone the repo
git clone --depth 1 https://github.com/awslabs/cli-agent-orchestrator

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cao-session-liveness

README.md
[![agentmods](https://agentmods.dev/badge/skills/awslabs/cli-agent-orchestrator/cao-session-liveness/github.svg)](https://agentmods.dev/skills/awslabs/cli-agent-orchestrator/cao-session-liveness)
Your own site
<a href="https://agentmods.dev/skills/awslabs/cli-agent-orchestrator/cao-session-liveness"><img src="https://agentmods.dev/badge/skills/awslabs/cli-agent-orchestrator/cao-session-liveness/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cao-session-liveness

Your own site · 80×15
<a href="https://agentmods.dev/skills/awslabs/cli-agent-orchestrator/cao-session-liveness"><img src="https://agentmods.dev/badge/skills/awslabs/cli-agent-orchestrator/cao-session-liveness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.01336
Opus 5 $0.00035 $0.00668
Sonnet 5 $0.00014 $0.00267
Haiku 4.5 $0.00007 $0.00134

Measured 9d ago against content hash c31bfc26f3ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

cao-session-liveness scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cao-session-liveness/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  1. Read the status (get_terminal_status, or cao session status SESSION).
  2. Read the output tail (read_session_output / get_terminal_output, or cao session status SESSION --json and inspect last_output).
  3. 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

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 127 lines · 70 tokens per session scan A c31bfc26f3ef

Subscribe to this mod's changes

cao-session-liveness is a skill published in the GitHub repository awslabs/cli-agent-orchestrator (1,235 stars, last pushed today), licensed Apache-2.0. It adds 70 tokens to every session and 1,336 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.