codex-peer-review

codex-peer-review is a skill for Claude Code, Codex from jcputney/agent-peer-review. It costs 84 tokens per session (4,368 once invoked), scanned B, original, MIT.

A peer-review skill that asks two AI systems to independently inspect plans, architecture advice, code-review findings, or broad technical answers, then discuss disagreements. Peer review means checking work before presenting it.

In plain words
What is it for?
Reviewing implementation plans, architecture choices, code-review findings, and general technical recommendations before sharing them.
Why use it?
It reduces the chance that one system's assumptions or missed problems carry straight into the final answer.

Skill for Claude CodeCodex

Written for Claude Code and Codex: ${CLAUDE_PLUGIN_ROOT} variable, but also runs codex exec. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the codex-peer-review plugin — 1 skill, 1 command, 1 agent, 4 hooks shipped together

Good fit Reviewing implementation plans, architecture choices, code-review findings, and general technical recommendations before sharing them.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add jcputney/agent-peer-review
Claude Code
/plugin install codex-peer-review

Made for: Claude Code, Codex.

Or install codex-peer-review, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-peer-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/jcputney/agent-peer-review/codex-peer-review/github.svg)](https://agentmods.dev/skills/jcputney/agent-peer-review/codex-peer-review)
Your own site
<a href="https://agentmods.dev/skills/jcputney/agent-peer-review/codex-peer-review"><img src="https://agentmods.dev/badge/skills/jcputney/agent-peer-review/codex-peer-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-peer-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/jcputney/agent-peer-review/codex-peer-review"><img src="https://agentmods.dev/badge/skills/jcputney/agent-peer-review/codex-peer-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,368 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.04368
Opus 5 $0.00042 $0.02184
Sonnet 5 $0.00017 $0.00874
Haiku 4.5 $0.00008 $0.00437

Measured 9d ago against content hash b9cafb8974c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

codex-peer-review scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat > ~/.codex/peer-review.config.toml <<'EOF'
plugins/codex-peer-review/skills/codex-peer-review/SKILL.md · 405 lines

How it starts

The opening of the file, as written. The whole thing — 405 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 exec for ALL machine-readable output (codex review exposes 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-review profile 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.)

Read the full file on GitHub · 405 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 405 lines · 84 tokens per session scan B b9cafb8974c9

Subscribe to this mod's changes

codex-peer-review is a skill published in the GitHub repository jcputney/agent-peer-review (34 stars, last pushed 1mo ago), licensed MIT. It adds 84 tokens to every session and 4,368 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.