By kashifmanzer
re-audit: a Claude Code mod that audits code changes with evidence, plain-language edge cases, and checked citations.
npx claudepluginhub kashifmanzer/re-auditAfter Claude writes code, audit the changes: why each was needed (with evidence), missed edge cases in plain language, safe ways to shrink it, and every claim checked against the code.
A Claude Code mod that audits the code Claude just wrote, before you trust it.
Run /re-audit:run after Claude changes your code.
A reviewer that never saw Claude's reasoning checks every change and tells you:
Every finding must quote the exact code it is about. A small TypeScript checker reads your files and removes any finding whose quote is not really there.
Verified (a command or search proved it), Reasoned (the cited lines show it), or Unverified.verify_quotes tool checks every file:line quote in code and drops the ones that do not match.In Claude Code, run:
/plugin marketplace add KashifManzer/re-audit
/plugin install re-audit@re-audit
/re-audit:run audit uncommitted changes (git diff HEAD + new files)
/re-audit:run main audit everything since you branched from main
/re-audit:run src/a.py b.py audit specific files (works outside git too)
After the report, re-audit asks which "could be smaller" suggestions to apply. It runs your tests before and after, undoes any suggestion that breaks them, and re-reviews once. If Codex is installed, it offers a second opinion from a different model.
The status line shows the last citation check, for example re-audit: 5 found · 0 moved · 1 dropped.
From a real run on a change that added average(nums) with no empty-list check (trimmed):
## re-audit
**In short:** Adds an average(nums) function to calc.py. The biggest risk is that an empty list crashes it, and no test covers it.
1 change (0 needed, 0 not needed, 1 unclear) · 2 could break · 0 could be smaller
### Could break (most serious first)
1. HIGH - An empty list crashes the program instead of giving a result or a clear error.
`calc.py:6` - average([]) raises ZeroDivisionError - covered by a test: no
2. LOW - Passing a generator crashes, even though total() accepts one.
`calc.py:6` - sum() uses up the generator, then len() raises TypeError - covered by a test: no
### Checks run
- `python3 -m unittest` -> pass (1 test, test_total only)
All 3 citations passed the check. Nothing was removed.
| Path | What it is |
|---|---|
skills/run/SKILL.md | The /re-audit:run command: collects the change, runs the reviewer, checks citations, prints the report, handles shrinks and Codex. |
agents/reviewer.md | The fresh-context reviewer and its rules. Edit and Write are blocked. |
hooks/register.ts | Registers the verify_quotes tool and sets the status line. |
hooks/check.ts | The quote matcher: found, moved (with the real line), or missing. |
hooks/*.test.ts | Unit tests, run with claude plugin test . |
evals/ | Behavior tests, run with claude plugin eval . --scaffold |
__pycache__/.claude plugin eval's sandbox, Apple's /usr/bin/git launcher cannot run, so the git-based cases fail there. They are meant for Linux, for example CI.claude --plugin-dir ~/path/to/re-audit # load from disk
claude plugin validate . --strict
claude plugin test .
claude plugin eval . --scaffold --ablation none --allow-tools Edit "Bash(git *)" "Bash(python3 *)" "Bash(command -v *)" mcp__re-audit__verify_quotes
MIT
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.