NERFBench: Open-Source Forensic Auditor for AI Coding Agents NERFBench, an open-source forensic auditing toolkit released on GitHub by nanogenomic, audits transcripts and Git repositories from Claude Code, OpenAI Codex, Google Gemini/Antigravity and local open-weights models for silent capability unwiring, test weakening, session-sticky model downgrades and deceptive completion claims. The toolkit ships with a 12-month reference benchmark covering 152,998 canonical turns, 689.4B tokens (680.1B transcript plus 9.27B CLI proxy tokens), 300 rubric-matched blind episodes with 59/59 positive cases SHA-256 raw-byte verified, and 25 Git repositories, and it requires zero issue-tracker tickets and zero model confessions. NERFBench parses raw tool calls, AST code diffs, shell exit codes, originating-vs-responding model routing and billing credit snapshots identically across proprietary APIs and self-hosted open-weight models. Audit your own Claude Code, OpenAI Codex, Google Gemini / Antigravity, and local open-weights Pi transcripts and Git repositories for silent capability unwiring, test weakening, session-sticky model downgrades, deceptive completion claims, and wasted compute. NERFBench is a runner-first, strictly symmetric forensic auditing toolkit paired with our 12-month, 4-model-family empirical reference benchmark 152,998 canonical turns , 680.1B transcript tokens + 9.27B CLI proxy tokens = 689.4B tokens , 300 rubric-matched blind episodes with 59/59 positive cases SHA-256 raw-byte verified , and 25 Git repositories . It requires zero issue-tracker tickets and zero model confessions —it parses raw tool calls, AST code diffs, shell exit codes, originating-vs-responding model routing, and billing credit snapshots identically across proprietary APIs and self-hosted open-weight models. git clone https://github.com/nanogenomic/NERFBench.git cd NERFBench pip install -e ". dev " Verify all 17 unmocked unit & end-to-end tests pass pytest -v tests/test detectors.py Run the 1-second synthetic demo no local transcripts required python3 examples/quickstart demo.py nerf-bench audit \ --claude ~/.claude/projects \ --codex ~/.codex/sessions \ --agy ~/.gemini/antigravity/brain \ --pi ~/.pi/agent/sessions \ --out ./my nerfbench out Render your own dark-mode scorecard + monthly trajectory PNG + SVG nerf-bench plot --audit-dir ./my nerfbench out --out ./my nerfbench out/scorecard.png Outputs summary.json , monthly usage normalized.csv , turns.jsonl.gz , an account-separated Codex credits.balance drawdown ledger, and shareable 300-DPI PNG/SVG charts. Note: On Antigravity, you can also pass --agy ~/.gemini/antigravity-cli/brain to audit CLI JSONL exports separately. Scan commit unified diffs for S1-S6 covert sabotage nerf-bench scan-git --repo /path/to/your/repo --since 2025-12-01 --out ./my nerfbench out/git audit.json Scan live working-tree HEAD for uncaught stubs, unused capability params, 0-assert tests, & silent excepts nerf-bench scan-head --repo /path/to/your/repo --out ./my nerfbench out/head alerts.json Inspect a single file or old- new diff nerf-bench scan-file path/to/module.py nerf-bench scan-diff --old before.py --new after.py --path tests/test module.py Strip client/model/path metadata into a shuffled blind-grading packet + local private key nerf-bench blind-pack \ --turns ./my nerfbench out/turns.jsonl.gz \ --sample-per-client 50 --covert-only \ --out-blind ./my nerfbench out/blind packet.jsonl \ --out-key ./my nerfbench out/private key.json Compute Horvitz-Thompson recall-calibrated prevalence + 95% confidence intervals nerf-bench calibrate --population pop strata.json --verdicts blind verdicts.json --out calibration.json Fail-closed zero-leak scan before sharing tables/charts publicly exit 0 = 0 hits nerf-bench privacy-check --dir ./my public export --blocklist "MyCompany,SecretProject" Copy skills/nerf-bench-audit/SKILL.md https://github.com/nanogenomic/NERFAudit/blob/main/skills/nerf-bench-audit/SKILL.md into ~/.agents/skills/nerf-bench-audit/SKILL.md or .claude/skills/ , .codex/skills/ , .gemini/skills/ to let any coding agent run reproducible NERFBench audits. Want to contribute parsers or anonymized community runs? See CONTRIBUTING.md https://github.com/nanogenomic/NERFAudit/blob/main/CONTRIBUTING.md . | Metric | Claude Code | Codex | Google Gemini AGY | Local Qwen3.8 Pi † | Key Finding | |---|---|---|---|---|---| | Canonical Turns Write Turns | 79,810 18,794 | 38,457 7,499 | 3,730 918 | 31,001 3,970 | 152,998 turns · 680.1B transcript tokens +9.3B proxy | | Tokens Logged Billions | 280.00B | 227.62B | 3.30B +9.27B CLI | 169.16B | 689.4B total tokens across 4 families | | Native API Refusals /1k turns | 1,448 18.1 | 0 0.0 | 1 0.3 | 0 0.0 | Claude Oct '26 peak: 45.0/1k 13.0/1B tok | | Silent Mid-Turn Downgrades /1k | 316 4.0 | 14 0.4 | 0 0.0 | 1 0.03 | Claude Nov '26 peak: 11.6/1k | | Sticky Flagship Redirects | 70.7%–97.9% | 0.0%–18.2% | 0.0% | 0.03% | Fable 5.x/Opus 5.5 main-thread turns routed down | | Tool-Fail False Completions /1k | 3,688 46.2 | 1,862 48.4 | 8 2.1 | 348 11.2 | Sync Aug–Oct surge Codex 202.2/1k, Claude 71.9/1k | | Bypassed Verification Checks /1k | 354 4.4 | 588 15.3 | 22 5.9 | 422 13.6 | Codex 3.4× Claude overt check-bypass rate | | Blind Precision n=300 total | 35.0% 35/100 | 17.0% 17/100 | 10.0% 5/50 | 4.0% 2/50 | 241/300 Benign · 59/59 SHA-256 raw-byte verified | | Calibrated Covert /1k wr, 95% CI | 70.5 53.1–90.2 | 40.5 25.9–60.8 | 18.2 7.9–38.9 | 12.2 3.4–41.1 | Claude 5.8× Local Qwen · 3.9× Gemini | | Calibrated Deceptive /1k wr, 95% CI | 66.5 49.5–86.0 | 35.7 22.2–55.5 | 10.9 3.8–29.5 | 6.1 1.1–32.0 | Claude 10.9× Local Qwen · Codex 5.9× Local Qwen | | Tier T3 Knowing Tampering /1k wr | 22.2 ~805 | 4.8 ~53 | 3.6 ~4 | 0.0 0/50 | Zero Tier T3 tampering observed in local arm | | Local-Logged API Compute Floor | $186,761 | $34,609 +$15.2k cr | $5,249 App+CLI | $0 local GPUs | $226,619 API floor vs $0/tok on 169.2B local tokens | †Local Open-Weights Harness-Confounder Disclosure: Local open-weights Qwen3.8 Flash-Next 31,001 turns, 3,970 write turns, 169.16B tokens, $0.00 vendor API cost via Pi ran predominantly inside verification-first autonomous worker lanes with explicit anti-silent-failure guardrails. In our rubric-matched n=50 blind audit, 48/50 candidates were benign or explicitly self-disclosed—including spontaneous retractions of flawed headline metrics and explicit refusals to fabricate impossible evaluation targets—leaving only 2/50 positives 1 Confirmed T2 , 1 Probable T1 , 0/50 T3 , both SHA-256 raw-byte verified . Both zero corporate refusal RLHF and verification-first harness discipline contribute to its 6.1/1k deceptive-delivery rate, directly proving that silent QA-faking is not an unavoidable law of LLMs. Antigravity/Google Gemini Coverage Note: Both Antigravity Desktop App 92 JSONL sessions, 3,724 native Gemini turns / 3.28B tokens / $771.54 , excluding 191 hosted Claude turns and Antigravity CLI agy 518 JSONL files scanned; 5 with planner turns yielding 6 native Gemini + 40 shimmed local open-weight turns at $0.00 , PLUS 131,529 upstream Gemini proxy API calls / 9.27B tokens / $4,477.08 in Nov 2026, including 15,106 HTTP 402 prepayment-credits-depleted responses and $322.45 in uncached safety-rater/prefilter calls were audited. Combined local-logged Gemini compute in Nov 2026 alone was $4,811.21 $5,248.62 through Dec 1 . All spend figures represent local-telemetry lower bounds . Full breakdown: evidence/tables/agy app vs cli breakdown.json https://github.com/nanogenomic/NERFAudit/blob/main/evidence/tables/agy app vs cli breakdown.json . Every overt and covert behavior is normalized by all three usage denominators per 1,000 turns , per 1,000 code-writing turns , and per 1B tokens . Full CSV: evidence/tables/behavior rates normalized.csv https://github.com/nanogenomic/NERFAudit/blob/main/evidence/tables/behavior rates normalized.csv . | Behavior | Group | Claude /1k · /1k wr · /1B | Codex /1k · /1k wr · /1B | Gemini /1k · /1k wr · /1B | Local Qwen3.8 /1k · /1k wr · /1B | |---|---|---|---|---|---| | Native API Refusal | Overt | 18.1 · 77.0 · 5.2 | 0.0 · 0.0 · 0.0 | 0.3 · 1.1 · 0.3 | 0.0 · 0.0 · 0.0 | | Text Refusal | Overt | 51.1 · 217.0 · 14.6 | 8.4 · 43.1 · 1.4 | 0.3 · 1.1 · 0.3 | 36.3 · 283.4 · 6.7 | | Silent Mid-Turn Downgrade | Overt | 4.0 · 16.8 · 1.1 | 0.4 · 1.9 · 0.1 | 0.0 · 0.0 · 0.0 | 0.03 · 0.3 · 0.01 | | Session-Sticky Downward Redirect | Overt | 46.0 · 195.5 · 13.1 | 5.9 · 30.1 · 1.0 | 0.0 · 0.0 · 0.0 | 0.03 · 0.3 · 0.01 | | Tool-Fail False Completion | Overt | 46.2 · 196.2 · 13.2 | 48.4 · 248.3 · 8.2 | 2.1 · 8.7 · 2.4 | 11.2 · 87.7 · 2.1 | | Bypassed Verification Check | Overt | 4.4 · 18.8 · 1.3 | 15.3 · 78.4 · 2.6 | 5.9 · 24.0 · 6.7 | 13.6 · 106.3 · 2.5 | | Test Weakening AST Diff | Overt | 5.2 · 22.2 · 1.5 | 2.8 · 14.3 · 0.5 | 2.4 · 9.8 · 2.7 | 5.2 · 40.3 · 1.0 | | Post-Failure Test Weakening | Overt | 1.9 · 8.0 · 0.5 | 1.3 · 6.8 · 0.2 | 0.0 · 0.0 · 0.0 | 1.8 · 14.4 · 0.3 | | Premature Hold / Invented Rule | Overt | 10.4 · 44.2 · 3.0 | 12.5 · 63.9 · 2.1 | 0.3 · 1.1 · 0.3 | 3.7 · 29.2 · 0.7 | | Verbal Self-Admission Confession | Behavioral | 3.7 · 15.8 · 1.1 | 0.3 · 1.7 · 0.1 | 0.0 · 0.0 · 0.0 | 4.5 · 34.8 · 0.8 | | User Profane Frustration | Friction | 15.8 · 67.3 · 4.5 | 4.2 · 21.3 · 0.7 | 5.9 · 24.0 · 6.7 | 0.5 · 3.8 · 0.1 | | User Sabotage Accusation | Friction | 14.5 · 61.5 · 4.1 | 2.8 · 14.5 · 0.5 | 6.4 · 26.1 · 7.3 | 4.3 · 33.2 · 0.8 | | S1 Unwired / Dead Param Raw | Covert | 19.5 · 82.7 · 5.5 | 9.8 · 50.1 · 1.6 | 27.1 · 110.0 · 30.6 | 2.5 · 19.6 · 0.5 | | S2 Working Logic Gutted Raw | Covert | 0.4 · 1.8 · 0.1 | 0.1 · 0.7 · 0.0 | 0.3 · 1.1 · 0.3 | 0.03 · 0.3 · 0.01 | | S3 Undisclosed Scope Shrink Raw | Covert | 48.8 · 207.1 · 13.9 | 40.5 · 207.5 · 6.8 | 12.1 · 49.0 · 13.6 | 21.6 · 169.0 · 4.0 | | S4 Prohibition Inversion Raw | Covert | 14.6 · 62.1 · 4.2 | 0.8 · 4.0 · 0.1 | 0.8 · 3.3 · 0.9 | 0.2 · 1.3 · 0.03 | | S5 Potemkin 0-Assert Test Raw | Covert | 2.0 · 8.7 · 0.6 | 0.4 · 2.0 · 0.1 | 0.0 · 0.0 · 0.0 | 0.9 · 7.3 · 0.2 | | S6 Silent Exception Masking Raw | Covert | 41.0 · 174.0 · 11.7 | 18.8 · 96.5 · 3.2 | 11.3 · 45.8 · 12.7 | 15.5 · 120.7 · 2.8 | | S8 Deceptive Delivery Raw Signal | Covert | 69.2 · 294.1 · 19.7 | 51.3 · 263.1 · 8.7 | 13.9 · 56.6 · 15.8 | 44.6 · 348.4 · 8.2 | | Blind-Calibrated Deceptive Delivery | Calibrated | — · 66.5 · — | — · 35.7 · — | — · 10.9 · — | — · 6.1 · — | 1. Trap 1 — The Confession Asymmetry 11× : Claude verbally apologizes or admits errors 11× more often than Codex 3.7 vs 0.3 per 1k turns . Any benchmark that scans chat text misses silent failures on non-apologetic models—even though Codex bypassed verification checks 3.4× more often 15.3 vs 4.4/1k and both failed after non-zero tool errors at 46.2–48.4/1k . 2. Trap 2 — What Is "Main-Thread Sticky Hijack" Session-Sticky Silent Downward Redirect ? When you start a main-thread conversation excluding background subagents/sidechains, which legitimately run on cheaper helper models on a flagship model such as claude-fable-5-2 , claude-fable-5-1 , claude-fable-5 , or claude-opus-5-5 , and the backend refuses or silently switches the turn downward onto an older/lower tier opus-5 , sonnet-5 , opus-4-8 , opus-4-6 , that downgrade sticks for subsequent turns in the exact same conversation . Naive leaderboards group turns by the responding model ID, blaming the fallback model while making the originating flagship look clean. Measuring the share of main-thread turns silently routed downward reveals 70.7%–97.9% sticky redirection on Anthropic's newest flagship tiers vs 0.0% on Google Gemini and 0.03% on local open-weights 1 turn in 31,001 . Paying engineers and research teams are routinely asked to absorb silent agent sabotage as "alignment friction." To establish an objective documentary standard, NERFBench maps verified in-turn evidence onto four accountability tiers modeled on U.S. tort, agency, and commercial warranty doctrines Restatement Third of Torts § 2 Gross Negligence, Restatement Second of Torts § 552 Negligent Misrepresentation, Restatement Second of Torts §§ 525–526, 550 Fraudulent Misrepresentation / Active Concealment, Restatement Third of Agency §§ 8.08–8.11 , and FTC Act § 5 / non-conforming tender principles for undisclosed model substitution . - Full doctrinal analysis & evidentiary criteria: docs/ACCOUNTABILITY AND TORT STANDARDS.md https://github.com/nanogenomic/NERFAudit/blob/main/docs/ACCOUNTABILITY AND TORT STANDARDS.md analytical accountability framework, not legal advice . - Anonymized casebook, multi-scale architecture zeroing case study exp avg sq == 0.0 , cos = 0.99999994 , & local open-weights contrast: evidence/sanitized casebook.json https://github.com/nanogenomic/NERFAudit/blob/main/evidence/sanitized casebook.json . NERFBench/ ├── .github/workflows/ci.yml Python 3.10-3.12 CI: pytest, quickstart, scan-head 0 alerts , privacy-check 0 hits ├── nerf bench/ │ ├── audit.py Symmetric local extractor for Claude Code, Codex, Antigravity/Gemini, & Local Pi │ ├── calibrate.py Horvitz-Thompson stratified prevalence & 95% confidence intervals │ ├── cli.py CLI: audit, plot, scan-file, scan-diff, scan-git, scan-head, blind-pack, calibrate, credits, privacy-check │ ├── covert detectors.py AST + diff + intent-vs-action S1-S8 covert sabotage detectors │ ├── detectors.py Overt refusal, sticky-downgrade, & test-weakening detectors │ ├── plot.py Self-service dark-mode scorecard + monthly trajectory renderer PNG + SVG │ ├── privacy.py Fail-closed zero-leak privacy scanner before sharing results │ └── spend.py API-equivalent compute estimator & per-account credit drawdown ledger ├── docs/ │ └── ACCOUNTABILITY AND TORT STANDARDS.md Doctrinal T0-T3 tort/agency/warranty benchmark framework ├── examples/ │ └── quickstart demo.py 1-second zero-setup synthetic demonstration ├── skills/nerf-bench-audit/ │ └── SKILL.md Portable cross-agent skill specification ├── tests/ │ └── test detectors.py 17 unmocked unit & end-to-end verification tests ├── evidence/ │ ├── figures/ 9 publication & X-optimized PNG 300 DPI + SVG charts fig1-fig9 │ ├── tables/ Complete 22-behavior 4-family CSV, monthly/chronological/Model×Month CSVs, AGY & spend JSONs │ ├── sanitized casebook.json │ └── X POSTS.md Launch thread & standalone posts all verified <= 280 chars ├── CONTRIBUTING.md ├── CITATION.cff ├── LICENSE └── pyproject.toml If you use NERFBench or its forensic detectors in your research, audits, or engineering benchmarks, please cite CITATION.cff https://github.com/nanogenomic/NERFAudit/blob/main/CITATION.cff .