c9watch-cli

c9watch-cli is a skill for Claude Code, Codex from minchenlee/c9watch. It costs 128 tokens per session (3,420 once invoked), scanned C, original, MIT.

A command-line tool for monitoring and managing Claude Code sessions, which are active coding-agent workspaces. It reports session activity as JSON, a structured data format.

In plain words
What is it for?
Use it to list active sessions, filter them by project or status, search past work, inspect pending actions, review spending, or coordinate sibling agents.
Why use it?
It gives you one place to see what other agents are doing, find previous session work, track costs, and coordinate or stop sessions.

Skill for Claude CodeCodex

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

Good fit Use it to list active sessions, filter them by project or status, search past work, inspect pending actions, review spending, or coordinate sibling agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/minchenlee/c9watch/c9watch-cli
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 minchenlee/c9watch --skill c9watch-cli
Clone the repo
git clone --depth 1 https://github.com/minchenlee/c9watch

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 c9watch-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/minchenlee/c9watch/c9watch-cli/github.svg)](https://agentmods.dev/skills/minchenlee/c9watch/c9watch-cli)
Your own site
<a href="https://agentmods.dev/skills/minchenlee/c9watch/c9watch-cli"><img src="https://agentmods.dev/badge/skills/minchenlee/c9watch/c9watch-cli/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 c9watch-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/minchenlee/c9watch/c9watch-cli"><img src="https://agentmods.dev/badge/skills/minchenlee/c9watch/c9watch-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,420 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00128 $0.03420
Opus 5.5 $0.00051 $0.01368
Sonnet 5.5 $0.00026 $0.00684
Haiku 4.5 $0.00013 $0.00342

Measured today against content hash c1df3c1cb8ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

c9watch-cli scanned grade C with 2 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 today.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/minchenlee/c9watch/main/install-cli.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://raw.githubusercontent.com/minchenlee/c9watch/main/install-cli.sh | bash
skills/c9watch-cli/SKILL.md · 216 lines

How it starts

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

c9watch CLI

c9watch is a CLI tool that lets you monitor the coding-agent sessions running on the machine: Claude Code, Codex, Cursor Agent, Pi, OpenCode, GitHub Copilot CLI (preview) and Grok Build CLI (preview). Every command outputs JSON. Use it to see what other sessions are doing, search past work, track costs, and coordinate with sibling agents.

Every session carries a provider (claudeCode, codex, cursor, pi, opencode, copilot, grokBuild) and a provider-scoped sessionKey (provider:id, e.g. pi:01a06659-...). Use the sessionKey with view whenever an ID could collide across providers.

Provider support

Command Claude Code Codex Cursor Agent Pi OpenCode GitHub Copilot CLI (preview) Grok Build CLI (preview)
list, status, watch, wait yes yes yes yes yes yes yes
tree, wait --children yes (subagents, teammates) yes (threads) yes (subagent chats) yes (no links) yes (child sessions) yes (no links) yes (no links)
view yes yes yes yes yes yes no
history, search yes yes yes yes no no no
cost yes yes no yes no no no
activity yes yes no no no no no
tasks, stop, self yes no no no no no no

OpenCode needs no setup. c9watch reads OpenCode 2's own database (~/.local/share/opencode/opencode.db, or under $XDG_DATA_HOME) read-only, while an opencode process runs. If C9WATCH_OPENCODE_URL is set, c9watch reads that OpenCode 1 server instead.

  • OpenCode sessions show Working, WaitingForInput or Connecting. They never show NeedsAttention: a permission wait looks like Working, because OpenCode does not write it to its database.
  • A finished session is listed for 30 minutes after its last write. A child session is a subagent of its parent. A turn with nothing written for 10 minutes shows Connecting with statusCertainty: "uncertain".
  • c9watch opens the database only while OpenCode runs, and never when that would create a file next to it.
  • If the database is locked or has a layout c9watch does not know, it is named in diagnostics.unreadableSources and no OpenCode status is shown: an empty result then does not mean no OpenCode session is running.
  • view opencode:<session-id> reads the conversation. history, search, cost and tasks have no OpenCode data.
  • They cannot be opened, stopped or renamed (pid is 0).

Read the full file on GitHub · 216 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. today Changed · +71 lines · +9 tokens per session c1df3c1cb8ad
  2. 4d ago Changed · -12 lines 83bf9a60cf68
  3. 1mo ago Changed · +13 lines ebaadf8ba20f
  4. 1mo ago Changed 999911748951
  5. 3mo ago Changed · +3 lines 91c3d26ee134
  6. 3mo ago First seen · 141 lines · 119 tokens per session scan C 84ea4b923056

Subscribe to this mod's changes

c9watch-cli is a skill published in the GitHub repository minchenlee/c9watch (139 stars, last pushed today), licensed MIT. It adds 128 tokens to every session and 3,420 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

c9watch-cli compared with skills from other repositories

c9watch-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
c9watch-climinchenlee/c9watchSkill139todayMITC128Claude Code, Codex
harbofly-cleanupcarloshpdoc/HarboflySkill283d agoGPL-3.0A99Claude Code, Codex
anti-sleepsickn33/agentic-awesome-skillsSkill51ktodayMITA22Claude Code
onlyswitch-deeplinkjacklandrin/OnlySwitchSkill6.1kyesterdayMITA85Claude Code, Codex
gmailvellum-ai/vellum-assistantSkill1.5k4d agoMITA20Claude Code, Codex
inbox-managementvellum-ai/vellum-assistantSkill1.5k4d agoMITA50Claude Code, Codex
notificationsvellum-ai/vellum-assistantSkill1.5k4d agoMITA9Claude Code, Codex