mscodebase-intelligence: Command for OpenCode

.opencode/command/audit.md

audit is a command for OpenCode from ManSio/mscodebase-intelligence. It costs 10 tokens per session (486 once invoked), scanned A, original, MIT.

An audit command for checking published numbers or safeguards against a population derived by scanning the actual artifacts. It keeps machine-found items separate from items reviewed by a person and measures false positives.

In plain words
What is it for?
Use it to audit claims, coverage figures, and verification rules before publishing a number or relying on it as evidence.
Why use it?
Hand-written lists can make coverage appear complete by defining the denominator themselves. This exposes misleading counts and distinguishes missing, wrong, dead, and no-longer-reproducible results.

Command for OpenCode

Written for OpenCode: installed under .opencode/.

This is ManSio/mscodebase-intelligence's own configuration. It tells OpenCode how to work on mscodebase-intelligence itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mscodebase-intelligence configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python tools/verification/bootstrap_denominator_manifest.py.

Reuse

Borrowing it

Nothing to install: this file belongs to ManSio/mscodebase-intelligence. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ManSio/mscodebase-intelligence/main/.opencode/command/audit.md
Clone the repo
git clone --depth 1 https://github.com/ManSio/mscodebase-intelligence

Made for: OpenCode.

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 audit

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/mansio/mscodebase-intelligence/audit"><img src="https://agentmods.dev/badge/commands/mansio/mscodebase-intelligence/audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 486 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 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.00010 $0.00486
Opus 5.5 $0.00004 $0.00194
Sonnet 5.5 $0.00002 $0.00097
Haiku 4.5 $0.00001 $0.00049

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

Security

Grade A, and why

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 26d 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.

.opencode/command/audit.md · 53 lines

What it actually says

You are running the AUDIT phase. The target is not the code — it is the confidence of a number someone might believe.

The trap this exists to prevent

A hand-written list of items makes its own contents eligible by definition. The denominator becomes an assertion dressed as a measurement, and a number built that way can only ever return 100%. Derive the population; never author it.

Order of work

  1. Derive the population by scanning. A rule that finds candidates, applied to every artifact that carries claims. Print the rule next to the count.
  2. Separate two different questions. n_found is derived by the machine; n_reviewed is authored and starts at 0. Merging them makes coverage 100% by construction.
  3. Triage every finding, by hand. Automated triage was tried twice and both attempts were wrong in opposite directions — a keyword scan missed guarded files, a division regex cited filesystem paths as rate sites. Read the actual line.
  4. Measure the false-positive share. Until it is measured, the count is not a verdict. N findings without an FP ratio cannot be published.
  5. Distinguish "wrong" from "dead". A number that no longer reproduces because the path was deleted by design is SUPERSEDED, not FALSE. Different action.

After the audit

  • Anything that used to be published and no longer reproduces gets a new entry naming the old one. Never silently edit a published number.
  • Anything unmeasurable now is CANNOT VERIFY, not FALSE.
  • Update the frozen manifest and re-run:
    python tools/verification/bootstrap_denominator_manifest.py
    python tools/verification/g5_denominator.py
    

Output

## AUDIT — <subject>
**Population:** N derived by <rule>, across <files>
**Triaged:** T true · P partial · F false · U unresolved
**FP share measured:** F/N = <%>

| # | claim | verdict | referent | note |

State plainly which numbers a reader should stop trusting.

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. 26d ago First seen · 53 lines · 10 tokens per session scan A 0fd84b28e584

Subscribe to this mod's changes

audit is a command published in the GitHub repository ManSio/mscodebase-intelligence (3 stars, last pushed 5d ago), licensed MIT. It adds 10 tokens to every session and 486 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-04.