# claude-code-review-gate: blocking AI code review

> AI code review plus a blocking pre-push gate, native to Claude Code: blocks confident high-severity bugs, with the verdict decided by code, not the model.

claude-code-review-gate: blocking AI code review is a paid AI agent skill pack (several skills in one listing) on Agensi by José Ribeiro, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $14.99 (one-time purchase)
- Creator: [José Ribeiro](https://www.agensi.io/creators/jose-ribeiro)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.1
- Last updated: 2026-10-06
- Security: scan passed (2026-10-06); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/claude-code-review-gate-blocking-ai-code-review
- Tags: code-review, claude-code, git-hooks, security, python

## About this skill

Most AI reviewers comment. This one can say no.

claude-code-review-gate reviews your diff, staged changes or a whole repo, and gates every git push. Confident high-severity findings block the push; everything else is printed and the push goes through. Review runs inside Claude Code on your own Claude subscription, with no API key and no third-party binary.

### What it does
- **On-demand review** of the working diff, staged changes, or a full-file scan with `/review-gate:review`.
- **A blocking push gate** that reviews every unpushed commit once per push. By default it gates pushes made through Claude Code; an optional installer extends it to every push (terminal and IDE too).
- **One reviewer for the whole change set**, so cross-file bugs are visible: a symbol renamed in one file and stale in another, or a guard removed in A but still assumed by B.
- **An independent falsify pass**: a second subagent that never saw the reviewer's reasoning gets only the diff and the findings, and drops a finding only with direct counter-evidence.
- **A deterministic verdict** (block / warn / pass) decided by auditable code, not the model's discretion.
- **Fails closed** on timeout, crash or unparseable output: a broken gate blocks rather than waving changes through.

### Built for long, interruptible work
Checkpointed, content-addressed chunks mean a crash or usage limit costs at most one chunk. A per-file ledger makes a no-change re-push cost zero model calls, and a resolver accepts "fixed" only when the code it quotes exists at the tip.

### Escape hatches
`git push --no-verify` skips one push, `OCR_ADVISORY=1` prints findings without blocking, and `OCR_FAIL_OPEN=1` is the emergency bypass.

Backed by 389 tests, with the review methodology adapted from open-code-review.

## Requires

- Python

## Known limitations

Requires Python 3, Git, and Claude Code. The optional global gate modifies git core.hooksPath. Large diffs are fanned out by directory.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the claude-code-review-gate: blocking AI code review skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this gate differ from just asking Claude to review my code in a chat?

It plugs into your git workflow: a chat assistant can only comment, while this gate can stop a git push when it finds a confident high-severity bug. The block/warn/pass verdict is decided by auditable code, not by the model, and the review runs on your own Claude subscription inside Claude Code.

### What are the technical requirements for running the Claude Code Review Gate?

The skill is specifically designed for the Claude Code CLI environment and requires Python 3 and Git to be installed on your local machine to manage the hook integration.

### Will this skill block my workflow with too many false positives?

Two steps keep false alarms down: one reviewer looks at the whole change set, then a second subagent that never saw its reasoning tries to disprove each blocking finding and drops it only on direct counter-evidence. Only confident high-severity findings block; everything else is reported and the push goes through. OCR_ADVISORY=1 makes it advisory-only.

### What happens if the review process fails or times out during a push?

If the AI analysis fails due to a timeout or crash, the gate defaults to a 'fail-closed' state, meaning it will block the push to ensure no unverified code is accidentally moved to your remote repository.

### What exactly is included?

The full Claude Code plugin (review skill, reviewer/filter/resolver subagents, hooks and scripts) bundled with a SKILL.md that walks you through installing it. The SKILL.md also documents exactly what the plugin runs, reads and writes.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
