By jcputney
Run symmetric two-AI peer reviews on git changes using OpenAI Codex CLI, with independent blind passes and structured per-issue debate until convergence, catching more issues than single-pass validation.
Modifies files
Hook triggers on file write and edit operations
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Claude Code plugin marketplace for AI-to-AI peer validation. Multiple perspectives catch more issues than one.
Symmetric two-AI peer review using OpenAI Codex CLI. Both AIs review the same scope independently in a blind pass, then debate per-issue with terminal states until convergence. Catches significantly more issues than single-pass validation.
# Add this marketplace
/plugin marketplace add jcputney/agent-peer-review
# Install the Codex peer review plugin
/plugin install codex-peer-review
Account Requirements:
Install dependencies:
# Codex CLI (0.118.0+ required)
npm i -g @openai/codex
codex login
# jq (required — used to parse Codex JSONL output)
brew install jq # macOS
# apt install jq # Debian/Ubuntu
Initialize Codex profiles (one-time):
/codex-peer-review init
This writes [profiles.peer-review] and [profiles.peer-review-summarizer] to ~/.codex/config.toml. Tune the models there if you want to use a different reasoning level or model family.
The default mode is blind-debate:
sha1(file + claim)). Duplicates collapse. Findings reported by both AIs get a high-confidence flag. Style issues are dropped from the debate.proposed → accepted | rejected | merged | escalated | deferred). Both sides emit per-issue stances (accept, concede, defend, dismiss). Transitions are deterministic.When the AIs flag a security, architecture, or breaking-change issue, that issue skips the debate and goes straight to external research arbitration. The skill is agnostic about which research tool to use — pick the best one available.
A legacy --mode classic flag preserves the old single-pass validation behavior for users who prefer it. It is deprecated and will be removed.
~/.codex/config.toml, not in plugin prompts/codex-peer-review for on-demand validation# First-time setup
/codex-peer-review init
# Default — symmetric blind-debate mode, will ask for scope
/codex-peer-review
# Review against a specific branch
/codex-peer-review --base develop
# Review uncommitted changes
/codex-peer-review --uncommitted
# Validate an answer to a broad question
/codex-peer-review "Should we use microservices or a monolith here?"
# Legacy single-pass validation (deprecated)
/codex-peer-review --mode classic
Hooks remind Claude to dispatch the peer reviewer before presenting:
The reminder is advisory — Claude decides when to dispatch.
Tested against codex-cli 0.118.0. The plugin uses codex exec exclusively for machine-readable output. codex review --json and codex review -o do not exist in 0.118.0 — the plugin previously used these and was partially broken; this release fixes that.
Schema enforcement uses prompt templates parsed with jq, not --output-schema (which is unstable in 0.118.0 under --json).
The plugin uses heredoc stdin to minimize permission prompts. On first use, you'll be asked to approve:
| Pattern | Purpose |
|---|---|
codex exec* | Run blind-pass and debate prompts |
jq * | Parse Codex JSONL output |
Select "Always allow" to avoid repeated prompts.
npx claudepluginhub jcputney/agent-peer-review --plugin codex-peer-reviewIndependent code review using a different, larger model for fresh perspective
Agent-orchestrated review loop — implement, review with pair-review multi-model councils via the headless CLI, triage, fix, and repeat until a final review returns no blockers. MCP-independent.
Command-driven Claude/Codex review workflows for multi-round plan and implementation review.
Multi-lens code review pipeline: deep review (Claude or Codex), automated fix loop, interactive walkthrough, manual promote, external-finding injection.
Autonomous Claude + Codex review loop. Plan a feature with adversarial pushback, or audit code, all in one window.
Multi-agent code review for Claude Code — parallel review by Codex (GPT-5.5), Gemini 3.1 Pro, and five Claude specialist subagents (one run blind), then verified synthesis.