All shelves / Mods / Safety
merge-gate
By hamzafer
merge-gate is a Claude Code safety mod by hamzafer.
Holds gh pr merge until CI is green and a Codex review has run once, and draws that pull request's status above the prompt.
DrawsHolds a command
Install
The marketplace name is claude-code-mods.
claude plugin marketplace add hamzafer/claude-code-mods claude plugin install merge-gate@claude-code-mods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.5
- License
- MIT
- Repo stars
- 381
- Last change
- 2026-10-15
What it can reach
- Draws in the session
- Holds a command
- Calls another program on this machine
Claude Code 2.1.287 or later. The author says to restart after installing. Needs gh and the Codex CLI. It holds gh pr merge until CI is green and Codex has reviewed the pull request once; if either is missing it asks you, Hold or Merge anyway, and with no one to answer it holds. It refuses a codex review that does not set the author's fixed model, gpt-5.6-luna, so change it in hooks/register.tsx to yours. It also refuses a second review of the same pull request, any codex exec, and any review while ~/.codex/config.toml points at a local Ollama server. A review counts when it starts, so a quota error does not buy a retry. The pull request is the one checked out where the review runs, or its branch before it has one. The line above the prompt shows that pull request's CI checks and Codex review count, /gate shows it, and /gate rerun reruns the failed CI jobs.
The marketplace, claude-code-mods, holds all of hamzafer's mods, rulebook-guard and glance among them. This one installs on its own, or from the checklist that npx claude-code-mods@latest opens. The author lists this with the mods built around their own tools and rules, to fork and change to yours. Stopping a merge before CI and a review pass is why this page files it under safety. ci-watch, by arasovic, draws a progress bar above the prompt for each GitHub Actions run after Claude pushes, then pass or fail. cc-pr-tracker, by sezaakgun, draws each watched pull request with its merge state, review, and required checks. This one holds the merge itself until both are done. The author says its model, second-review, and codex exec checks look only at commands the shell would run, including bash -c and eval, and ignore quoted arguments, heredocs, grep patterns, and comments that only mention one.
Demo

What it hooks into
session.startWhen a session startsturn.completeWhen a turn endstool.callAround a tool call, where it can hold oneBashcommand.runWhen you run its slash command/gateui.renderDraws into the sessionAbovePrompt
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/gateShow the PR's CI, Codex review and merge status; /gate rerun retries failed CI
Files
The author's source, 3 files. They load when you open them.
Facts
- Author
- hamzafer
- Category
- Safety
- Marketplace
- claude-code-mods
- Folder
- mods/merge-gate
- Version
- 0.1.5
- License
- MIT
- Repo stars
- 381
- Last change
- 2026-10-15
- Language
- TypeScript
- Files
- 7