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.
git clone --depth 1 https://github.com/ForgeyClap/claude-forgenpx agentmods add agents/forgeyclap/claude-forge/codex-reviewerWrote 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.
[](https://agentmods.dev/agents/forgeyclap/claude-forge/codex-reviewer)<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.
<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>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.
| Model | Per session | Once 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 |
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 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.
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.
- 19d ago Changed 18f209f38da2
- 24d ago Changed · +64 lines · -176 tokens per session ba3250ee918c
- 27d ago Changed · +17 lines · +79 tokens per session aaea86ad3bf3
- 1mo ago First seen · 26 lines · 97 tokens per session scan A d2ef6d93ecb1
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.
Other agents, from other repositories
trailhead-code-review
trailhead code-review subagent: adversarially reviews a ticket's diff and reports; never edits or commits.
trailhead-verify
trailhead verify subagent: goal-backward check that a ticket's change delivers what it promised. Read-only, never edits or commits.
code-reviewer
Adversarial Reviewer — independent reviewer for the conditional pre-Build plan attack (named escalation trigger required) and for REVIEW-ONLY mode. Re-reads request/docs and tries to disprove the plan or diff. Never edits src; never writes or weakens tests.
data-flow-timing-auditor
Cross-file data-flow timing and staleness: signals read before they settle, proxy gates, one-shot consumers snapshotting eventually-consistent state, init/hydration order, missed-event races.
spec-fidelity-auditor
Conformance of a change to its own spec: a bidirectional requirements trace, every criterion delivered with evidence, every diff hunk traced to a clause or dispositioned.
design-principles-advisor
Structural design principles: SOLID, GRASP, CUPID, coupling and cohesion, SoC, LoD, CQS, POLA.