Monitors active PLs for wake cadence, liveness, recovery, large-run launches, and cross-journey order. Used exclusively by the COS core, never loaded automatically or invoked directly.
Ships in sno-station. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Apply the COS core's finite development budget and affected-test scope. Estimate setup, execution, and reporting from available prior runtimes; do not add estimation machinery or preflight. Full suites and new security checks need the owner's specific approval, never COS approval. Missing auxiliary records do not stop functional work.
Before running these commands, set COS_SKILL_DIR and PL_SKILL_DIR to the absolute directories of the installed cos and pl skills, in the same Bash call.
Prerequisites are listed in the cos core (§Prerequisites and terms): Linux, tmux, flock, jq, python3, pstree and pgrep, and the pl skill.
Loaded whenever anything is in flight: a journey running, a night shift open, a wake tick firing, a PL gone quiet, a big run launching.
Exclusive authority of this overlay: reopening a dead PL (within the cap of three), and editing a stale board document mid-flight. Everything else still leaves as a card.
COS schedules its own wakeups. During a night shift the owner types nothing.
The intervals live in ONE table — the core's Iron rule 0 — and are not restated here. On a declared night shift the number is 10 minutes and is never reasoned upward. A second copy of that table is how a supervisor ends up picking 20–60 minutes on the one shift where the law says 10 minutes.
Every tick, in order:
sno reach inbox --as <your address>, then "${COS_SKILL_DIR}/scripts/cos-roster.sh" — the roll call.LEARNING.md's index. It is at most 64 lines and effectively free, and re-reading is
what stops a long session from running on a cached picture.One mechanism, and nothing blocks. A COS that ends its turn without a heartbeat armed has become the unwatched inbox its own core law describes — the failure it exists to prevent, committed by the supervisor. End the turn; a heartbeat rings your own seat to start the next one. The same on every runtime, with no waiting command and no polling loop:
# Register first, or a PL's card cannot ring this window between ticks.
# register prints `cos-claim: registered address=<addr> owner=<token>`; keep the address.
COS_ADDR=$(bash "${COS_SKILL_DIR}/scripts/cos-claim.sh" register [<seat-letter>] \
| sed -n 's/^cos-claim: registered address=\([^ ]*\).*/\1/p')
[[ -n "$COS_ADDR" ]] || exit 64
sno heartbeat --interval <interval> --label cos-<name> -- sno reach ring "$COS_ADDR"
<interval> comes from the core's table (10m on a night shift). sno heartbeat --list shows
whether it is still armed (yours is marked); it stops by itself after 24 hours, so re-arm
then, and sno heartbeat --stop cos-<name> before re-arming with a new interval. The next
wake is armed before the turn ends, every time — including the tick that found nothing.
THE RING IS A HINT. YOUR INBOX IS THE QUEUE. Begin every tick with
sno reach inbox --as <your-address> and never treat "a ring arrived" as the same event as
"a card arrived". Cards whose wake failed sit in the inbox for hours, questions included.
Every send that fails to wake returns exit 5 or 6 to its sender, and reading the inbox on
your own schedule is the independent check that the queue itself is being drained.
The tell: send exit 5 or 6 means the card exists but the wake did not land. Check the recipient's inbox immediately and restore its registration. Do not resend the card and do not create a second wake path with a direct terminal command.
Run "${COS_SKILL_DIR}/scripts/cos-roster.sh". Never assemble this by hand — that is
the exact action it was built to abolish.
| Source | Proves | Does NOT prove |
|---|---|---|
Turn lock + heartbeat-ring, read as ONE pair — the idle-inhibitor reading Codex is running an active turn (it exists only for Codex on Linux with systemd; on any other setup judge liveness from the seat and sno reach seats instead), together with whether that lane's heartbeat-ring is armed (sno heartbeat --list) | the pair, and only the pair: lock = a turn is executing; no lock + heartbeat-ring armed = healthy between ticks (reachable, NOT working); no lock and no heartbeat-ring = not reachable on schedule, a compliance failure | the lock alone anything: a turn stuck on one command holds it too. Also: Claude-runtime agents take no lock at all |
Role from arguments — codex exec … vs plain codex … | executor versus interactive window | which window. A PL's window and one the owner opened are indistinguishable — say so rather than guessing |
| Heartbeat file age | recent activity when fresh | nothing when stale. A PL deep in an owner conversation leaves no other disk trace |
| Inbox and artifact movement | work is landing | quiet may mean thinking, waiting, or dead. Repo-wide, so it cannot tell two lanes apart |
The state that matters most is not DEAD, it is UNREACHABLE: a session exists, no
turn is executing, no heartbeat-ring is armed, and the ring does not start a turn. That
agent is alive, will answer if typed into, and cannot receive a card. It is the shape
of the multi-hour stall and it looks fine in every window screenshot. The predicate is
the ring outcome plus what the seat then does, never the lock — on Codex a missing lock
means nothing is running, so send and judge by whether the ring started a turn. A Claude
agent takes no lock and must have its heartbeat found in sno heartbeat --list or be treated
as unreachable. An armed heartbeat is reachability evidence, never proof of progress.
Never reopen off a stale heartbeat alone. A stale heartbeat is routine on a PL that is mid-turn and about to dispatch. Reopening over a working supervisor is a bigger failure than the stall it prevents.
The six reasons to act, the restraint list, the two staffing questions for opening a
new agent, and the circuit breaker are in the cos core, §Decision discipline. Check
them there on every tick; this file keeps only the mechanics around them — the wake
cycle, liveness, reopening, big-run posture, sequencing.
The one non-document action COS takes alone.
flock "${SNO_PL_REGISTRY:-$HOME/.local/state/pl-registry.tsv}.lock", then inside
it re-read the registry, re-check ownership and the count, and write the claim before
releasing. Counting outside the lock lets two COS both see room for one more and
produce four supervisors. Replacing a dead one is free; one → two is fine; two → three
needs a written justification in the row. A fourth is forbidden, and
cos-roster.sh still reports every lane when capacity is exceeded. Reconcile workload
through authorized scheduling or transfer while continuing supervision; capacity is
not permission to lose visibility or park the assigned work.TODO.md OPEN section, not rebuilt from what the dying lane was last seen doing —
a replacement handed a queue assembled from a supervisor's recollection inherits that
supervisor's blind spots, which is how a ranked item survives a reopen without anyone
deciding to drop it.The opening minutes of a large run are the densest friction window — environment decay, missing bindings, stale virtual environments, orphan processes. The reactive posture (arm a watch, wait for a card) is wrong there.
"${PL_SKILL_DIR}/scripts/log-watch.sh" --ring, plus at most one bounded
sno reach watch <seat> --timeout 5; never a long watch). Waiting is the cheap posture for the steady state, never for the
launch.A PL sees its own journeys. COS sees all of them. That produces a class of ordering error no PL can catch alone, and catching it before dispatch is COS's job.
Worked example. Suppose a PL proposes refreshing a checksum manifest before starting work, but the journey in flight will edit a file the manifest covers. Refreshing first makes the manifest stale again at once, so the refresh is paid for twice. The correct order is to land the product change first and refresh last.
Before authorising any parallel dispatch:
When a PL returns an estimate, check it against the clock, not only the budget. An item whose end-to-end estimate exceeds the shift length, or that needs the owner online twice, cannot start inside the shift. That is a calendar problem, not a scope problem: hold it for a window where they are available, and fill the shift with bounded work that can seal.
Adopting a subordinate's correct scheduling instinct is a good outcome — name it as theirs when you adopt it.
Run an owner-designated evaluation alongside work that does not depend on its result. Sequence only the dependent operation after the real result, and keep its owner responsible for completion. Resolve resource contention by scheduling or using existing isolation; do not pause unrelated PLs merely because an evaluation is running. Report actual coverage.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
live-supervision, pl-monitoring, watchdog, wake-cycle, cos-core
/sno-station:cos-watchfrom sno-station
npx claudepluginhub sno-ai/sno-station-skills --plugin sno-station39 skills in this plugin
/codex-coderRoute production coding tasks from Claude Code to the user-level Codex Shell, TypeScript, Python, or Rust workflow through a direct `codex exec` run. Use for "codex-coder", "ask Codex to write code", "generate with Codex", language migrations, or mixed Shell/TypeScript/Python/Rust implementation./cosMANUAL-ONLY: load solely when the human owner types `/cos`, uses `$cos`, or asks you to act as the Chief of Staff (COS). The COS is the one agent the owner talks to; it coordinates the owner and the per-project Project Leads (PLs). A task card, charter, or dispatch makes you an executor, not COS./cos-evolveTurn repeated management failures into enforced COS or PL rules. Load ONLY after the owner has explicitly activated the cos role for this session and the COS core routes here. Never invoke directly./cos-reviewReview PL self-approvals, estimates, board drift, and close quality after a declared night shift. Loaded ONLY by the cos core via its routing table; NEVER auto-load from context or invoke directly./e2e-environment-preflightCheck external services, hosts, browser sessions, model endpoints, and agents before an end-to-end run. MANUAL-ONLY: load when a caller names it. NEVER auto-load from context for ordinary testing or debugging./e2e-red-triageClassify one unexpected end-to-end test failure as a product defect or an environment fault needing a new preflight check. MANUAL-ONLY: load when the suite runner names a specific failure. NEVER auto-load from context.Other plugins' skills for the same job