Agent Peer Review
A Claude Code plugin marketplace for AI-to-AI peer validation. Multiple perspectives catch more issues than one.
Available Plugins
codex-peer-review
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.
Installation
# Add this marketplace
/plugin marketplace add jcputney/agent-peer-review
# Install the Codex peer review plugin
/plugin install codex-peer-review
Prerequisites for codex-peer-review
Account Requirements:
- Claude Code: Requires a Claude Pro ($20/mo), Max, Team Premium, or Enterprise subscription
- OpenAI Codex CLI: Included with ChatGPT Plus/Pro/Business/Edu/Enterprise plans, or use OpenAI API credits
Install dependencies:
# Codex CLI (tested on 0.136.0; requires profile-v2 support)
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 two profile-v2 files — ~/.codex/peer-review.config.toml and ~/.codex/peer-review-summarizer.config.toml. Codex layers them on top of your base config when invoked with --profile. Tune the models in those files to use a different reasoning level or model family. The plugin never edits your base ~/.codex/config.toml.
How Peer Review Works
The default mode is blind-debate:
- Round 0 — Blind pass. Claude and Codex independently review the same scope with the same prompt. Neither sees the other's findings.
- Canonicalize. Findings are merged by content-hashed ID (
sha1(file + claim)). Duplicates collapse. Findings reported by both AIs get a high-confidence flag. Style issues are dropped from the debate.
- Round 1+ — Per-issue debate. Each issue has a state (
proposed → accepted | rejected | merged | escalated | deferred). Both sides emit per-issue stances (accept, concede, defend, dismiss). Transitions are deterministic.
- Convergence is derived, not declared, from the issue table — no LLM judging another LLM.
- Verdict synthesis categorizes issues by terminal state: Critical, Important, Contested, Dismissed, Style notes.
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-peer-review Features
- Symmetric blind pass — both AIs review without priming, dramatically increasing coverage
- Canonical issue IDs — same finding from both AIs collapses to one row, doubles as a confidence signal
- Per-issue state machine — deterministic convergence, no rationalization loops
- Configurable via Codex profiles — model and reasoning effort live in
~/.codex/peer-review.config.toml profile files, not in plugin prompts
- Single source of truth — full protocol lives in the skill; the agent file is a thin dispatcher
- Slash command — explicit
/codex-peer-review for on-demand validation
- Auto-trigger reminders — hooks remind Claude to dispatch peer review before presenting plans, reviews, or recommendations
Usage
Slash Command
# 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
Automatic Mode
Hooks remind Claude to dispatch the peer reviewer before presenting:
- Implementation plans or designs
- Code review results
- Architecture recommendations
- Major refactoring proposals
- Answers to broad technical questions
The reminder is advisory — Claude decides when to dispatch.
Codex CLI Compatibility
Tested against codex-cli 0.136.0. The plugin uses codex exec exclusively for machine-readable output — codex review exposes only --base, with no --json, -o, or --output-schema.