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.
git clone --depth 1 https://github.com/KevinZai/commanderWrote 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.
[](https://agentmods.dev/commands/kevinzai/commander/ccc-pm2)<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-pm2"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-pm2/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.
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-pm2"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-pm2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.02376 |
| Opus 5.5 | $0.00018 | $0.00950 |
| Sonnet 5.5 | $0.00009 | $0.00475 |
| Haiku 4.5 | $0.00004 | $0.00238 |
Grade A, and why
ccc-pm2 scanned grade A with 1 finding 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 1mo 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
const { spawn } = require('child_process'); This is a copy
94% identical to pm2 — 316 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 252 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/ccc-pm2 — PM2 setup for a project
CC Commander · /ccc-pm2 · detects the project's services and writes a PM2 config and one-line lifecycle commands.
Arguments: $ARGUMENTS (optional: services, names or ports to use instead of detected ones).
What happens
-
Check PM2:
pm2 --versionIf it is missing, ask with AskUserQuestion:
- 🟢 Use
npx pm2— no global install; generated commands usenpx pm2. - Install globally — runs
npm install -g pm2. - Stop — nothing is generated.
- 🟢 Use
-
Detect the platform (
node -p process.platform).win32uses the Windows rules below; macOS and Linux use plain commands. -
Scan the project for services:
Type Detection Default port Vite vite.config.*5173 Next.js next.config.*3000 Nuxt nuxt.config.*3000 CRA react-scriptsinpackage.json3000 Express/Node server/,backend/orapi/directory withpackage.json3000 FastAPI/Flask requirements.txtorpyproject.toml8000 Go go.modormain.go8080 Port priority: user-specified >
.env> framework config file > script arguments > default port. Name each app<project>-<port>. -
Show the detected services and the files you will write, then ask:
- 🟢 Generate all — writes every file listed under Generated files.
- Config only — writes
ecosystem.config.cjs(and Python wrappers) only. - Cancel — nothing is written.
-
Generate
ecosystem.config.cjs, Python wrappers, the command files in.claude/commands/and, on Windows, the scripts in.claude/scripts/. -
Update the project's
CLAUDE.mdwith the PM2 section (see Post-init). -
Verify:
node -e "const c=require('./ecosystem.config.cjs');console.log(c.apps.map(a=>a.name).join(', '))" ls .claude/commands/pm2-*.mdReport the app names printed and the command files found. Do not start services unless the user asks.
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.
- 1mo ago Changed · -25 lines · +30 tokens per session b2d85777cb00
- 2mo ago First seen · 277 lines · 14 tokens per session scan A 72a940044b26
ccc-pm2 is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 2,376 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). It is 94% identical to pm2, differing in 316 lines, and is treated as a copy.
ccc-pm2 compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ccc-pm2KevinZai/commander | Command | 6 | yesterday | MIT | A | 44 | Claude Code |
| loopskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 28 | Claude Code |
| phaseskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 21 | Claude Code |
| statusskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 17 | Claude Code |
| justone-publishGodsB1025/justone | Command | 2 | 6mo ago | MIT | A | 22 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | 3d ago | MIT | A | 27 | Claude Code |