Git & CIAppears in · Band / ToastAdded

merge-gate

Holds gh pr merge until CI is green and one fixed-model Codex review has run.

merge-gate · Effect preview · IllustrationIllustrative
> Add pagination to the order list
⏺ I’ll look at the list component first.
PR #42 · CI ●●○ · Codex 0/1
merge-gate: CI failing; Codex not run. Merge anyway?
[Hold] [Merge anyway] (illustrative)
❯

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-plugins

Run these commands one at a time in a Claude Code session.

What it accesses

Based on the author’s documentation, checked when listed; use claude plugin validate to check for yourself.

Reads

Yes

Reads pending shell commands, ~/.codex/config.toml, and git/PR metadata.

Writes files

Yes

Writes per-PR Codex-review counts into the mod store.

Runs commands

Yes

Runs git and gh (pr checks, run list/rerun) to query CI and optionally rerun failures.

Network

Yes

Uses 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 review with model="gpt-5.6-luna" (editable in source); refuses a second review and any codex exec; refuses reviews when ~/.codex/config.toml points at local Ollama.
  • Commands: /gate status; /gate rerun reruns failed CI.
  • Needs: signed-in gh and 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.