merge-gate
Holds gh pr merge until CI is green and one fixed-model Codex review has run.
Illustration. Actual results depend on the mod, terminal and environment.
Install
/plugin marketplace add hamzafer/claude-code-mods
/plugin install merge-gate@claude-code-mods
/reload-pluginsRun these commands one at a time in a Claude Code session.
claude plugin marketplace add hamzafer/claude-code-mods
claude plugin install merge-gate@claude-code-modsThen run /reload-plugins in your session, or start a new session.
Please install the Claude Code mod "merge-gate" (https://github.com/hamzafer/claude-code-mods). Before installing, read the Security and Requirements sections of its README and tell me what it reads and writes, which commands it runs, whether it uses the network, and which Claude Code version, OS and terminal it needs. If everything looks fine, run claude plugin marketplace add hamzafer/claude-code-mods and claude plugin install merge-gate@claude-code-mods, then remind me to run /reload-plugins in my session.Send this to Claude Code so it reads the author’s instructions before installing.
git clone https://github.com/hamzafer/claude-code-mods
cd claude-code-mods
claude --plugin-dir ./mods/merge-gateClone the repository and try it in a local session with --plugin-dir.
What it accesses
Based on the author’s documentation, checked when listed; use claude plugin validate to check for yourself.
Reads
YesReads pending shell commands, ~/.codex/config.toml, and git/PR metadata.
Writes files
YesWrites per-PR Codex-review counts into the mod store.
Runs commands
YesRuns git and gh (pr checks, run list/rerun) to query CI and optionally rerun failures.
Network
YesUses gh against GitHub for check status and workflow reruns.
Introduction
merge-gate is a Claude Code function-hooks mod that holds gh pr merge, shows CI and Codex progress on a band, and asks Hold or Merge anyway when not ready (holds if nobody answers).
- Rules: requires one
codex reviewwithmodel="gpt-5.6-luna"(editable in source); refuses a second review and anycodex exec; refuses reviews when~/.codex/config.tomlpoints at local Ollama. - Commands:
/gatestatus;/gate rerunreruns failed CI. - Needs: signed-in
ghand the Codex CLI.
Marketplace hamzafer/claude-code-mods, plugin merge-gate. Needs Claude Code 2.1.287+. Mentioned in issue body, not the formal list. Preview is illustrative.
Who it is for
- People who want Claude to wait for CI and one Codex review before merging
Requirements
- Claude Code ≥ 2.1.287
- Needs signed-in gh and the Codex CLI.
- Defaults to gpt-5.6-luna; change the model in hooks/register.tsx.