codex-peer-review
БесплатноБез исполняемых скриптовНе проверенThis skill should be invoked BEFORE presenting implementation plans, architecture recommendations, code review findings, or answers to broad technical…
Об этом скилле
Codex Peer Review
Symmetric two-AI peer review using OpenAI Codex CLI. Both AIs review independently, then debate per-issue with terminal states until convergence — not a one-shot validation.
Core principle: Asymmetric "validate my answer" loops anchor on the proposer's framing. Symmetric blind passes catch ~2x as many issues because each AI examines the work without priming. The debate phase then resolves conflicts deterministically via per-issue terminal states.
This is the single source of truth for the peer review protocol. The agent file is a thin dispatcher that loads this skill.
Reference Files
Read these with the exact paths below when needed — never search the filesystem for them:
${CLAUDE_PLUGIN_ROOT}/skills/codex-peer-review/discussion-protocol.md— debate mechanics (round-by-round prompts)${CLAUDE_PLUGIN_ROOT}/skills/codex-peer-review/escalation-criteria.md— when to skip the debate and go to external research${CLAUDE_PLUGIN_ROOT}/skills/codex-peer-review/common-mistakes.md— anti-patterns and recovery
Modes
| Mode | Command | When |
|---|---|---|
| blind-debate (default) | /codex-peer-review |
Symmetric blind pass + structured debate. Best signal. |
| classic (deprecated) | /codex-peer-review --mode classic |
Old single-pass validation. Cheap, weaker signal. Will be removed. |
Auto-trigger (proactive validation before presenting plans/designs/reviews) always uses blind-debate.
Codex CLI Compatibility
Tested against codex-cli 0.136.0. Hard requirements:
codex execfor ALL machine-readable output (codex reviewexposes only--base— no--json,-o, or--output-schema— so it cannot drive parseable workflows)jq(fail fast if missing — required for session ID extraction and JSONL parsing)- A configured
peer-reviewprofile file at~/.codex/peer-review.config.toml, layered via--profile peer-review(see "Codex Profile Setup" below)
Schema is enforced via prompt template, parsed with jq — not via --output-schema. (codex exec does expose --output-schema <FILE>, but the prompt-template + jq path is version-stable and avoids depending on its behavior.)
Codex Profile Setup
Model selection lives in per-profile files under ~/.codex/, not in this plugin. Codex CLI (profile-v2) resolves --profile <name> by layering ~/.codex/<name>.config.toml on top of the base ~/.codex/config.toml. This keeps CLI flags out of prompts and lets users tune without editing the plugin or touching config.toml.
Run this once per machine (the plugin's init flow does this automatically if the files are missing):
cat > ~/.codex/peer-review.config.toml <<'EOF'
model = "gpt-5.4"
model_reasoning_effort = "high"
EOF
cat > ~/.codex/peer-review-summarizer.config.toml <<'EOF'
model = "gpt-5.4-mini"
model_reasoning_effort = "low"
EOF
The plugin invokes Codex as codex exec --profile peer-review ... — the file is layered automatically. Never hardcode -m gpt-5.x-... in agent prompts.
gpt-5.4-mini is the durable cheap-workhorse choice for the summarizer profile.
Legacy note: Pre-0.12 Codex used
[profiles.peer-review]tables insideconfig.toml. Those are inert under profile-v2 — remove them by hand if you upgraded from an older plugin version. The plugin never writes to or editsconfig.toml.
The Workflow
digraph blind_debate {
rankdir=TB;
node [shape=box];
start [label="User invokes /codex-peer-review\nOR Claude is about to present\na plan/design/review" shape=ellipse];
blind [label="ROUND 0: Blind pass\nClaude review ‖ Codex review\n(neither sees the other)"];
canon [label="Canonicalize issues\nid = sha1(file + normalized claim)\nMerge duplicates\nDrop severity:style"];
states [label="All issues start in state: proposed"];
debate [label="ROUND N (N≥1): Per-issue debate\nEach side responds: concede/defend/dismiss\nNew issues allowed (also start as proposed)"];
transition [label="Transition states based on responses"];
converged [label="All issues in terminal state?\n(accepted/rejected/merged/escalated/deferred)" shape=diamond];
cap [label="Round count >= cap?" shape=diamond];
extend [label="Ask user: extend cap?" shape=diamond];
synth [label="Verdict synthesis\nCritical / Important / Contested / Dismissed" shape=ellipse];
start -> blind;
blind -> canon;
canon -> states;
states -> debate;
debate -> transition;
transition -> converged;
converged -> synth [label="yes"];
converged -> cap [label="no"];
cap -> debate [label="no"];
cap -> extend [label="yes"];
extend -> debate [label="yes"];
extend -> synth [label="no — escalate remaining"];
}
Default cap: 3 rounds total (1 blind + 2 debate). The peer review found that 5 (the dg default) is too expensive for serious code review and risks rationalization loops. Allow extension only when new evidence appears in the fi
Установить codex-peer-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл codex-peer-review?
This skill should be invoked BEFORE presenting implementation plans, architecture recommendations, code review findings, or answers to broad technical questions. Use proactively when about to "recommend", "suggest", "propose", "design", "plan", or answer "how should", "what's the best way", "which approach". MANDATORY for multi-file changes, refactoring proposals, and security-sensitive recommendations.
Как установить скилл codex-peer-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл codex-peer-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic