review-gate
by Rex Lorenzo · ★ 1 · updated 7 days ago
The review gate as a tool.check function hook. Every shell call is decided in process, so the non-commit calls -- almost all of them -- cost no subprocess at all, and a blocked commit can be put to you as a question instead of refused outright. The decision itself is still bin/review-gate, run only for a command that mentions a commit, so both routes read the same receipts and cannot disagree.
Install
/plugin marketplace add rlorenzo/ai-coding-setup/plugin install review-gate@ai-coding-setupThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
tool.check- API calls
$.env.get$.fs.exists$.process.run$.session.cwd$.ui.log- Reach
- level 2 of 3 runs processesreads filesreads env varsdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/rlorenzo/ai-coding-setup
- Path in repo
mods/review-gate- Author
- Rex Lorenzo @rlorenzo
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from rlorenzo/ai-coding-setup
explore-model
rlorenzo/ai-coding-setup
Pins the model that background recon subagents run on. An agent.spawn hook sets the Explore subagent's model to haiku, so a session driven by an expensive model stops billing its codebase searches at that tier, without shadowing the built-in agent definition and without the CLAUDE.md load a replacement definition would cost.