ccc-harness-audit

ccc-harness-audit is a command for Claude Code from KevinZai/commander. It costs 47 tokens per session (778 once invoked), scanned A, a copy of harness-audit, MIT.

A deterministic audit of a coding-agent setup that scores fixed areas such as testing coverage, memory, security checks, and cost efficiency. It returns findings, failed file checks, and suggested next actions.

In plain words
What is it for?
Use it to audit the whole repository or selected hooks, skills, commands, or agents, with text or JSON output.
Why use it?
It gives a repeatable health check whose results can be compared for the same repository state.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions Claude Code; mentions OpenCode.

Good fit Use it to audit the whole repository or selected hooks, skills, commands, or agents, with text or JSON output.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kevinzai/commander/ccc-harness-audit
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.

Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander

Made for: Claude Code.

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 ccc-harness-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/kevinzai/commander/ccc-harness-audit/github.svg)](https://agentmods.dev/commands/kevinzai/commander/ccc-harness-audit)
Your own site
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-harness-audit"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-harness-audit/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 ccc-harness-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-harness-audit"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-harness-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 778 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.
Origin 94% copy Near-identical to another mod 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.00047 $0.00778
Opus 5.5 $0.00019 $0.00311
Sonnet 5.5 $0.00009 $0.00156
Haiku 4.5 $0.00005 $0.00078

Measured 14d ago against content hash 24981103bf19, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ccc-harness-audit 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 14d 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.

Origin

This is a copy

94% identical to harness-audit — 93 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.

commands/ccc-harness-audit.md · 75 lines

How it starts

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

/ccc-harness-audit — deterministic setup scorecard

CC Commander · /ccc-harness-audit · a reproducible score per category, failing checks with file paths, and the top three fixes.

Arguments

$ARGUMENTS:

  • scope (optional): repo (default), hooks, skills, commands, agents
  • --format text|json (optional; text default, json for automation)

What happens

  1. Locate the audit engine, first match wins:

    • scripts/harness-audit.js in the current repository (an everything-claude-code checkout audits itself)
    • vendor/everything-claude-code/scripts/harness-audit.js in a CC Commander checkout

    If neither exists, ask the user for the path to a checkout that has it. Without the script, stop and say the audit cannot run; never produce a manual score.

  2. Run it against the current project:

    node <engine path> <scope> --format <text|json> --root "$PWD"
    

    The script auto-detects whether the root is the everything-claude-code repo or a consumer project. On a non-zero exit, show stderr and stop.

  3. The script is the source of truth. It scores fixed categories (each normalized 0–10) from explicit file and rule checks, and the same commit always yields the same score:

    1. Tool Coverage
    2. Context Efficiency
    3. Quality Gates
    4. Memory Persistence
    5. Eval Coverage
    6. Security Guardrails
    7. Cost Efficiency

    Scoped audits include only the categories that apply (applicable_categories). Report the rubric_version the script prints; do not add dimensions or points.

  4. Return:

    1. overall_score out of max_score, as reported
    2. category scores and concrete findings
    3. failed checks with exact file paths from checks[]
    4. the top three actions from top_actions[]
    5. suggested everything-claude-code skills that address the failing categories

    With --format json, return the script JSON unchanged and nothing else. With text, summarize failing checks and top actions.

Example result

Read the full file on GitHub · 75 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. 14d ago Changed · -1 lines · +32 tokens per session 24981103bf19
  2. 1mo ago First seen · 76 lines · 15 tokens per session scan A 74c0d55a4300

Subscribe to this mod's changes

ccc-harness-audit is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 778 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to harness-audit, differing in 93 lines, and is treated as a copy.