What is aidiff-gate?
aidiff-gate is a Claude Code mod by JohnRiceML that keeps AI-written code honest: flags flaky and bloated tests, trims wall-of-text replies, and makes you write the 'why' before a commit. Uses TypeSafe's Jev as a fast judge. It is listed under Git & CI and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | JohnRiceML |
| Repository | JohnRiceML/aidiff-gate |
| Popularity | no public popularity data yet |
| Category | Git & CI |
| Security | High risk (44/100) |
| Rank | #6,645 of 9,397 Claude Code mods; #469 in Git & CI |
| License | MIT |
| Last commit | 2026-10-12 |
| Hooks | 7 events |
| Sees | Bash calls, Edit calls, Write calls, every prompt |
| Draws on | Pane |
Is aidiff-gate safe to install?
aidiff-gate scores 44/100 on the MCPMods security check: High risk. Things to review: sends data over the network; starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 2 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| Sends data over the network | Review |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.http.fetch | network requests |
$.model.complete | drives Claude |
$.process.run | runs processes |
$.prompt.submit | drives Claude |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install aidiff-gate?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/JohnRiceML/aidiff-gate claude plugin validate ./aidiff-gate/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add JohnRiceML/aidiff-gate && claude plugin install aidiff-gate@aidiff-gate
Or ask Claude to set it up
Paste this into Claude Code and it installs aidiff-gate for you:
Install the "aidiff-gate" Claude Code mod from https://github.com/JohnRiceML/aidiff-gate. Run claude plugin validate on it first and show me what it can access before you enable it.