nanogenomic/NERFAudit
Local Python auditing and guardrails for coding-agent regressions
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
NERFAudit is a local Python toolkit with two paths. The retrospective path ingests harness-specific transcripts, normalizes them into turn records, and applies a common set of detectors to the available evidence: tool calls, code diffs, shell exit codes, routing metadata, and billing snapshots. It emits summary.json, monthly_usage_normalized.csv, and turns.jsonl.gz; plot and report render the results separately from collection.
The code-checking path can run against Git history, HEAD, staged changes, or individual files without transcripts. Its deterministic guard uses the Python standard library and .nerfaudit-rules.json; the repository requirements also list pandas, NumPy, matplotlib, and pytest. Integration surfaces are CLI commands, Git and Claude Code hooks, portable agent skills, and action.yml. Nothing in those interfaces requires an MCP server.
Key Capabilities & Differentiators
Documented transcript inputs cover Claude Code, Codex, Gemini/Antigravity, Pi, Hermes, Grok sessions, and Grok Bot exports or desktop caches. The 22 detectors cover both behavior visible in transcripts, such as completion reports at odds with tool results, and code signals, such as unwired parameters or weakened tests. watch-redirect records requested-versus-served model mismatches from supplied identifiers; it does not independently identify the backend model. Grok Bot inputs without tool calls yield a warning and provide weaker evidence.
The v1 smoke suite has eight single-turn workspaces; v2 has six stateful workflows totaling 38 turns. Both offer deterministic grading, with clean and project-context modes. For production telemetry, the reference corpus spans 268,979 canonical turns and 45,039 code-writing turns. blind-pack and calibrate provide a separate workflow for reviewing and estimating detector prevalence rather than treating every flag as a confirmed incident.
Trade-offs & Limitations
Compared with a linter or a standalone mutation tester, NERFAudit adds context from agent sessions, tool outcomes, routing, and billing. It does not replace type checking, broad mutation coverage, or normal CI. Raw pattern matches are leads, not verdicts: defensive exception handling, helper-wrapped assertions, and shell fallbacks can all trigger benign hits. Missing fields limit what each adapter can prove, and Git diffs alone do not establish agent authorship or intent.
The production dataset is observational: workloads, session lengths, and harness guardrails differ across arms. Logged token totals include extensive cache replay and should not be read as novel generation. Use reviewed incidents and raw rates alongside the composite indices, and use matched controlled tasks for provider comparisons. The controlled suite gives tighter comparisons on selected tasks, not a general model ranking.
Hardware & Deployment Guide
Run the CLI with Python from a local checkout or install it from GitHub; Git is needed for repository scans and hooks. examples/quickstart_demo.py exercises the workflow without transcripts, and report generates a self-contained HTML scorecard with no CDN dependency. The guard itself needs no GPU or model API. Large runs should be sized for transcript volume, Git history, and output retention; mutation probes additionally run the test command you supply.
The package manifest identifies version 1.2.0, while no GitHub release is listed. That version adds three 0–100 composite indices while retaining the raw rates. Pilot code checks before enabling block-mode hooks or CI failures. For automated deployments, pin a reviewed revision rather than installing from a moving branch. Keep raw logs and blind-grading keys private, and review any export even after it passes the privacy gate.
audit accepts selected local harnesses; Hermes input can be a root directory or a direct .db file.summary.json separates main-thread and subagent activity; a separate Codex ledger tracks account-level credit drawdown.sys.settrace.blind-pack separates client metadata from review packets, calibrate estimates prevalence with Wilson intervals, and privacy-check gates exports.Engineering teams auditing coding-agent incidents from local logs and Git, or piloting deterministic checks for weakened tests and unwired code.
You need a turnkey fleet dashboard, uniform live enforcement across all supported harnesses, or a provider ranking that generalizes beyond matched workloads.
Quick Start & Installation
# Option A: One-line isolated CLI install (Linux / macOS, no sudo) curl -fsSL https://nerfaudit.com/install.sh | bash # Option B: Direct from GitHub via pip or uvx pip install git+https://github.com/nanogenomic/NERFAudit.git # Option C: Clone locally to run tests & fork-submit results git clone https://github.com/nanogenomic/NERFAudit.git cd NERFAudit pip install -e ".[dev]" # Verify all unmocked unit & end-to-end tests pass pytest -v tests/ # Run the 1-second synthetic demo (no local transcripts required) python3 examples/quickstart_demo.py
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/nanogenomic/NERFAudit.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about NERFAudit
Where does NERFAudit fit into an existing coding-agent workflow?
scan-head or scan-staged for Python code and test checks without collecting transcripts. Use audit when you need agent-session or routing evidence. For live enforcement, the documented integrations are Claude Code PostToolUse/Stop hooks, a chained Git pre-commit hook, and a reusable GitHub Action. Broad transcript support does not imply live hooks for every harness.Does local auditing need a GPU, and what drives runtime?
Can a commercial team run it privately and share only aggregates?
Should it replace our linter, mutation tester, or CI test suite?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy