# Repository Briefing: nanogenomic/NERFAudit
> Source: https://repoforai.com/repo/nanogenomic/NERFAudit (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/nanogenomic/NERFAudit
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (77/100 · Maintenance 35/35 · Adoption 11/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: CLI, Local AI
- **Momentum**: 62 ★ total (+45 24h / +62 7d) · 5 forks
- **When to Use**: Best for: Engineering teams auditing coding-agent incidents from local logs and Git, or piloting deterministic checks for weakened tests and unwired code. Skip if: You need a turnkey fleet dashboard, uniform live enforcement across all supported harnesses, or a provider ranking that generalizes beyond matched workloads.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Session ingestion: `audit` accepts selected local harnesses; Hermes input can be a root directory or a direct `.db` file.
- Telemetry: `summary.json` separates main-thread and subagent activity; a separate Codex ledger tracks account-level credit drawdown.
- Code guardrails: Python AST and staged-diff checks flag unwired parameters, stubbed implementations, weakened tests, and swallowed errors.
- Runtime probes: Targeted single-function mutation checks whether a chosen test detects a change without editing the original file; changed-line coverage uses `sys.settrace`.
- Controlled benchmarks: Eight single-turn workspaces in v1 and six stateful workflows spanning 38 turns in v2, with deterministic graders.
- Calibration and sharing: `blind-pack` separates client metadata from review packets, `calibrate` estimates prevalence with Wilson intervals, and `privacy-check` gates exports.
```

## Quick Start / Clone
```bash
# 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
```
