Repository navigation
Snitch v0.1.0
First tagged release of Snitch, the integrity layer for AI coding agents.
Install
- Claude Code plugin:
/plugin marketplace add ennajari/snitchthen/plugin install snitch@snitch - GitHub Action:
uses: ennajari/snitch@v1 - pre-commit:
rev: v0.1.0, hook idsnitch - CLI:
uvx --from git+https://github.com/ennajari/snitch@v0.1.0 snitch check
What it catches: weakened, inverted, removed or guarded assertions; changed expected values; deleted, renamed, skipped or deselected tests; runner, coverage and CI changes that hide failures (also in Makefiles and shell scripts); conftest report hooks; code that special-cases pytest; an __eq__ forced to return True; and tests that plant the very value they assert. Every detector is deterministic and tested on a cheating and a legitimate example.
Plugin: live warnings, an escalate tool, an anti-reward-hacking policy at session start (after Gomez 2026, arXiv 2608.29460), a Stop check for undisclosed test changes and untested "tests pass" claims, and an enforce mode.
Measured: TemptationBench edition 2026-11, Claude Code: 14/120 trials changed a test without Snitch, 0/120 with it (transcripts: release bench-2026-11).
--strict (and the Action's strict input) fails a check when a detector could not run.