Only the changed code
Changed lines plus nearby context. Never the whole repo.
Hooks for Claude Code, Codex and Cursor. A 3B model checks every JavaScript and TypeScript edit before it's written.
Model d1-3B Code Review DecisionsFree Hosted Endpoint
Hooks for the agents you already use
0.2 seconds per edit. 13 questions in one GPU call. Your rules decide what happens next.
Changed lines plus nearby context. Never the whole repo.
Set each of the 10 rules. Blocked edits go back to the agent with the reason.
The GPU shuts off after 60 idle seconds. A slow review never holds up the agent.
Off ignores it. Flag adds a note. Block sends the edit back.
Saved into the install command below.
Threshold: the minimum model score (0 to 1) for a rule to count. Higher means fewer, surer reports.
One command. Needs Node.js 18+ and backs up any config it touches.
Free for a limited time, US only. The hosted review endpoint has no uptime guarantee and can be shut down at any time without notice. If it goes away, your edits go through unreviewed.
What it sets up
Change settings later
crh status current rules
crh off | on pause all checks
crh set unsafe_input block one rule
crh set all flag every rule
crh threshold 0.6 all rules
crh set unsafe_input 0.9 one rule's threshold
crh check src/api.ts review a file now
crh update latest hook, same settings
crh uninstall claude this agent only
crh uninstall all every agent, every file
crh lives in ~/.code-review-hooks. CODE_REVIEW_HOOKS=off skips a session.
The hook runs locally with your agent. The model runs on a GPU that's off when idle.
The hook takes the changed lines and your last prompt (.js, .jsx, .ts, .tsx).
d1-3B answers 13 questions in one call.
Over the threshold, Block sends it back and Flag adds a note.
If the service is down or slow, the edit goes through. Errors go to hook.log.