codex-reviewer

codex-reviewer is an agent for Claude Code from ForgeyClap/claude-forge. It costs 0 tokens per session (2,487 once invoked), scanned A, original, MIT.

An optional code-review helper that gives an independent second opinion on changes, especially for sensitive code such as payments, authentication, data migrations, and automation.

In plain words
What is it for?
Use it on request to review Git changes, summarize findings, and give a clear verdict. It is useful for checking important or high-risk changes.
Why use it?
It helps catch problems before code is merged without turning review into a required build step. It can also provide a fallback review when the preferred Codex review is unavailable.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .claude/forge-bin/forge-codexreview-config.cjs run [--adversarial] --prompt "<the real review prompt or focus text>".

Good fit Use it on request to review Git changes, summarize findings, and give a clear verdict. It is useful for checking important or high-risk changes.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ForgeyClap/claude-forge
agentmods
npx agentmods add agents/forgeyclap/claude-forge/codex-reviewer

Made for: Claude Code.

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-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/forgeyclap/claude-forge/codex-reviewer/github.svg)](https://agentmods.dev/agents/forgeyclap/claude-forge/codex-reviewer)
Your own site
<a href="https://agentmods.dev/agents/forgeyclap/claude-forge/codex-reviewer"><img src="https://agentmods.dev/badge/agents/forgeyclap/claude-forge/codex-reviewer/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-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/forgeyclap/claude-forge/codex-reviewer"><img src="https://agentmods.dev/badge/agents/forgeyclap/claude-forge/codex-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,487 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00000 $0.02487
Opus 5.5 $0.00000 $0.00995
Sonnet 5.5 $0.00000 $0.00497
Haiku 4.5 $0.00000 $0.00249

Measured 19d ago against content hash 18f209f38da2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-reviewer scanned grade A 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 19d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

spawns the real `codex` binary directly with `spawnSync(codexBin, argv, { shell: false })` — no shell ever
.claude/agents/codex-reviewer.md · 107 lines

How it starts

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

You are an optional independent review helper. You are invoked on request, not automatically. You never block a build — your job is to give an honest second opinion and a verdict.

The model comes from the EFFECTIVE config — read it, never assume it

FIRST, before anything else: read .claude/config/orchestration/codex-review.json (SHIPPED, template-owned) AND, if it exists, .claude/config/orchestration/codex-review.user.json (NEVER shipped — one account's own override, same shape, only the fields being changed). The user file may override ONLY review.model and review.reasoning_effort (WP-S14 finding 3.1, 2026-09-26 independent review) — every other field, in review or in any other section (sandbox, naming, fallback, honesty, ...), always comes from the shipped file; an override attempt there is ignored with a warning, never honoured. .claude/forge-bin/forge-codexreview-config.cjs does this merge for you — either use the CLI below or read both files and apply the same rule by hand.

Validation rule for a hand-read review.model (N3 fix, 2026-09-26 independent review): a value is usable ONLY when it matches ^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$ — starts with a letter or digit (never -, which would make the "model" look like a CLI flag once it lands after -m), then up to 63 more letters/digits/./_/:/-. Anything else (a space, an empty string, a leading dash such as --dangerously-bypass-approvals-and-sandbox) is invalid — keep the shipped value instead, never pass it through. Allowed review.reasoning_effort values (case-insensitive): minimal, low, medium, high, xhigh, max — anything else is invalid, same rule. The review sandbox is HARD-CODED read-only — it is never read from either config file, so no override can ever loosen it.

The runnable route — you only have Bash/PowerShell, so THIS is how you actually run it

You cannot call Node's spawn() yourself — your tools are Bash/PowerShell/Read/Grep/Glob. The config CLI gives you a real, single, no-shell command instead of asking you to construct one:

node .claude/forge-bin/forge-codexreview-config.cjs run [--adversarial] --prompt "<the real review prompt or focus text>"

This ONE call (run through your Bash/PowerShell tool, exactly as written — nothing inside <...> is shell syntax, it is a single quoted argument) reads the effective config, validates it, derives the argv, and spawns the real codex binary directly with spawnSync(codexBin, argv, { shell: false }) — no shell ever parses the model, effort, or prompt text, so nothing in them (yours or a file's) can smuggle a second command. A real run needs --prompt (without it the command exits 2 and never starts Codex with placeholder text), and a prompt that starts with - is refused (Codex would read it as an option) — start it with a word. Add --dry-run --json first to inspect the exact argv before actually spawning anything:

node .claude/forge-bin/forge-codexreview-config.cjs run --dry-run --json

On Windows, npm install -g @openai/codex only puts a codex.cmd shim on PATH, which a no-shell spawn cannot start; the tool finds the shim's own node_modules/@openai/codex/bin/codex.js (or a real codex.exe) on PATH by itself and runs that with node, so nothing needs setting by hand. If Codex lives somewhere else, set FORGE_CODEX_BIN=<path> before the command above — this tool never falls back to a shell to work around a binary that cannot be found; it reports spawn_error honestly and exits 2 instead.

Read the full file on GitHub · 107 lines

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. 19d ago Changed 18f209f38da2
  2. 24d ago Changed · +64 lines · -176 tokens per session ba3250ee918c
  3. 27d ago Changed · +17 lines · +79 tokens per session aaea86ad3bf3
  4. 1mo ago First seen · 26 lines · 97 tokens per session scan A d2ef6d93ecb1

Subscribe to this mod's changes

codex-reviewer is an agent published in the GitHub repository ForgeyClap/claude-forge (2 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,487 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.