Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Automatically review Claude Code plans using external AI CLIs
Jump to setup instructionsFetched from the repository for this visit.
Automatically review Claude Code plans using external AI CLIs (Codex, Gemini CLI). Uses Claude Code's PreToolUse hook to intercept ExitPlanMode, send the plan for external review, and inject feedback back into Claude's context.
Claude writes a plan and calls ExitPlanMode
→ PreToolUse hook fires → hook runs
→ Finds the latest plan file from ~/.claude/plans/
→ Runs review via Codex / Gemini CLI
→ If LGTM → permissionDecision:"allow" → Claude exits plan mode
→ If not → permissionDecision:"deny" + review feedback
→ Claude revises the plan → calls ExitPlanMode again
→ After maxReviews reached → allow without review
Note: Due to a Claude Code limitation, the review result is only displayed in the chat when the reviewer returns feedback (deny). When the reviewer returns LGTM (allow), the review result is streamed to stderr but not shown in the chat UI.
npm install -g claude-plan-reviewer
claude-plan-reviewer setup
Note: The hook takes effect in Claude Code sessions started after setup. Already-running sessions are not affected.
claude-plan-reviewer teardown
npm uninstall -g claude-plan-reviewer
# Show current config
claude-plan-reviewer config show
# Change adapter (codex | gemini)
claude-plan-reviewer config set adapter gemini
# Change max reviews per session
claude-plan-reviewer config set maxReviews 3
# Set Codex model
claude-plan-reviewer config set codex.model o3
# Set Gemini model
claude-plan-reviewer config set gemini.model gemini-2.5-pro
~/.claude-plan-reviewer.json
{
"adapter": "codex",
"maxReviews": 2,
"prompt": "",
"codex": {
"model": "",
"sandbox": "read-only"
},
"gemini": {
"model": ""
}
}
| Key | Description | Default |
|---|---|---|
adapter | Reviewer to use (codex or gemini) | codex |
maxReviews | Max reviews per session | 2 |
prompt | Additional review instructions | "" |
codex.model | Codex CLI model | "" (default) |
codex.sandbox | Codex sandbox mode | read-only |
gemini.model | Gemini CLI model | "" (default) |
| Command | Description |
|---|---|
setup | Add PreToolUse hook to Claude Code settings |
teardown | Remove PreToolUse hook |
config show | Show current configuration |
config set <key> <value> | Update a config value |
review <file> | Manually review a plan file (for testing) |
hook | Internal command called by Claude Code |
claude-plan-reviewer review ~/.claude/plans/my-plan.md
npm install -g @openai/codexnpm test
Use at your own risk. This tool automatically sends your Claude Code plans to external AI services (Codex CLI, Gemini CLI) for review. The authors are not responsible for any damages or losses arising from the use of this tool, including but not limited to:
Not a substitute for human review. External AI reviews may miss critical issues or provide incorrect suggestions. Always review plans yourself before proceeding to implementation.
This software is provided "AS IS" without warranty of any kind, as stated in the MIT License.
MIT
GitHub checked 64h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.