Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By robbytv0.2.2In 1 marketplace
Gets each plan reviewed by Codex before you see it, with Claude revising over up to three rounds. A PreToolUse hook blocks the first ExitPlanMode call of every plan and needs the codex plugin 1.7.0 or later enabled.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
plan-review, plan-mode, codex-review, pretooluse-hook, codex-mcp, pre-exit-review, hooks, pretooluse ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Routes every plan-mode plan through a Codex review before you see it. When Claude finishes planning and calls ExitPlanMode, a PreToolUse hook intercepts it, hands Claude instructions to consult the Codex MCP server, iterate on the plan over a capped loop, and only then presents the refined plan.
Claude drafts a plan
│
▼
ExitPlanMode ──► PreToolUse hook ──► DENY + instructions
▲ │
│ ▼
│ Claude consults Codex (read-only),
│ iterates up to 3 rounds, revises plan
│ │
└───────────── re-call ExitPlanMode ─┘
│
hook sees fresh marker ──► ALLOW
│
▼
You see the refined plan
The hook denies the first ExitPlanMode call for a plan and feeds Claude a set of instructions: consult Codex via mcp__plugin_codex_cli__codex (sandbox read-only), have it flag gaps/risks/alternatives, iterate up to 3 rounds with codex-reply, revise the plan, then re-submit. The review opens on gpt-6.2-sol at medium effort; if it reaches round 3, or a concern is still disputed after a round, Claude switches the thread to gpt-6.2-astra, on the reasoning that repeated refinement means the plan needs a stronger model. A short-lived, session-keyed marker file lets the refined re-submission through, so you only ever see the Codex-reviewed version.
Claude is told to skip the review for trivial plans (single obvious edits, doc/config tweaks) and just note that it skipped.
codex plugin must be installed and enabled — it provides the MCP server (version 1.7.0 or later, which runs codex exec) that exposes the mcp__plugin_codex_cli__codex / codex-reply tools. Without it, the gate still runs but Claude will note that Codex is unavailable and pass the plan through unreviewed.jq on PATH (used by the hook script). If jq is missing the hook fails open — plan mode keeps working, just without the review.From this marketplace:
/plugin install codex-plan-gate
Or load locally for testing:
cc --plugin-dir /path/to/plugins/codex-plan-gate
Hooks load at session start. After installing or editing the hook, restart Claude Code for it to take effect.
hooks/hooks.json registers a PreToolUse hook matching ExitPlanMode|exit_plan_mode.hooks/scripts/plan-review-gate.sh is a deterministic command hook that manages the deny/allow gate.$TMPDIR/claude-codex-plan-gate/<session_id>.pending prevents an infinite deny loop. It has a 30-minute freshness window — an abandoned plan won't permanently disable the gate; the next plan after the window is reviewed again.Decision model:
| Condition | Decision |
|---|---|
| No marker, or marker older than 30 min | deny + (re)write marker — review this plan |
| Fresh marker (< 30 min) | allow + clear marker — this is the refined re-submission |
jq unavailable / unexpected error | allow (fail open) |
Toggle the plugin off (/plugin) for a session where you don't want plans gated, or uninstall it. There is no per-plan opt-out beyond Claude's own triviality skip.
# First call for a session -> deny with instructions
echo '{"session_id":"demo","tool_name":"ExitPlanMode","tool_input":{"plan":"..."}}' \
| bash hooks/scripts/plan-review-gate.sh | jq .
# Same session again -> allow (empty output) — simulates the refined re-submission
echo '{"session_id":"demo"}' | bash hooks/scripts/plan-review-gate.sh
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub robbyt/claude-skills --plugin codex-plan-gatePlugins from other owners that cover similar ground