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-build-fix)<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-build-fix"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-build-fix/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-build-fix"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-build-fix.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.00035 | $0.00833 |
| Opus 5.5 | $0.00014 | $0.00333 |
| Sonnet 5.5 | $0.00007 | $0.00167 |
| Haiku 4.5 | $0.00003 | $0.00083 |
Grade A, and why
ccc-build-fix 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 5d 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.
This is a copy
94% identical to build-fix — 97 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 — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/ccc-build-fix — fix the build, one error at a time
CC Commander · /ccc-build-fix · detects the build system, fixes errors in dependency order with minimal diffs, and proves the build is green.
What happens
-
Detect the build command. Use the first matching indicator; for Node projects pick the package manager from the lockfile (
pnpm-lock.yaml→pnpm,yarn.lock→yarn, otherwisenpm).Indicator Build command package.jsonwith abuildscriptnpm run build(orpnpm build/yarn build)tsconfig.jsononlynpx tsc --noEmitCargo.tomlcargo build 2>&1pom.xmlmvn compilebuild.gradle./gradlew compileJavago.modgo build ./...pyproject.tomlmypy .(orpython -m compileall -q .without mypy)If nothing matches, ask the user for the build command.
-
Run it and group the errors. Capture stdout and stderr, group errors by file, order them so imports and type definitions come before logic errors, and count the total.
-
Fix loop, one error at a time.
- Read the file around the error (about 10 lines of context).
- Find the root cause: missing import, wrong type, syntax error, bad config.
- Make the smallest edit that resolves it.
- Re-run the build command and confirm the error is gone and no new error appeared.
- Move to the next error.
-
Stop and ask (AskUserQuestion, plain-text question where unavailable) when:
- a fix produces more errors than it removes;
- the same error survives 3 attempts;
- the fix needs an architectural change rather than a build fix;
- the error comes from a missing dependency that needs
npm install,cargo addor similar.
Offer: 🟢 Stop here and summarize · Try the larger change I describe · Install the missing dependency (names the exact command).
Recovery strategies
| Situation | Action |
|---|---|
| Missing module or import | Check whether the package is installed; propose the install command. |
| Type mismatch | Read both type definitions; fix the narrower type. |
| Circular dependency | Trace the import cycle; propose extracting the shared piece. |
| Version conflict | Read the constraints in package.json / Cargo.toml and the lockfile. |
| Build tool misconfiguration | Read the config file and compare it with the tool's defaults. |
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.
- 5d ago Changed · +3 lines · +10 tokens per session 5e3d3baec813
- 1mo ago First seen · 67 lines · 25 tokens per session scan A fb6fa4130268
ccc-build-fix is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 833 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to build-fix, differing in 97 lines, and is treated as a copy.
Other commands, from other repositories
quick-fix
Implement→review subagent loop with no planning phase, for a fix whose cause is known and whose shape is obvious, however many files it touches. No spec, no worktree, no docs or signals at the end; one audit. Routes to /subagent-diagnose on an unknown cause and to /atomic-plan on an open approach or contract choice.
dashboard
Compact visual progress dashboard with progress bar, task table, dependency graph, and active/blocked/next status.
dev-error-handling
Implements a robust and consistent error handling strategy.
fix-issue
A command that takes a GitHub Issue—a tracked bug, request, or question—and guides its fix from investigation through testing and submission. TDD means writing a failing test first, then changing the code until the test passes.
dare-bugfix-design
Diagnostica bug em projeto existente e planeja correção cirúrgica via Método DARE. Gera DARE/DESIGN-Bugfix-[Nome].md com causa raiz, riscos de regressão e plano de ação mínimo.
bug-blitz
Emit and fire a canonical bug-backlog queue grind; dispatch, don't defer.