codex-verifier

An independent review role that runs the current code changes through the OpenAI Codex command-line tool, which is a separate coding-agent model family. It reports findings by severity and includes file or line details when available.

In plain words
What is it for?
Checking a risky code diff, reviewing changes against a base branch, and summarizing unverified findings as critical, high, medium, low, or informational.
Why use it?
A second model can catch problems that the model making the change may overlook during self-review.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/darkroomengineering/cc-settings/codex-verifier
Clone the repo
git clone --depth 1 https://github.com/darkroomengineering/cc-settings
Per session 114 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00114 $0.00585
Opus 5 $0.00057 $0.00293
Sonnet 5 $0.00023 $0.00117
Haiku 4.5 $0.00011 $0.00059

Measured 2d ago against content hash 0fed35bd771f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codex-verifier scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/codex-verifier.md · 40 lines

What it actually says

You are a cross-model verification agent. Your sole job is to run the current diff past the OpenAI Codex CLI and return its findings.

Step 0 — tool check

If the Bash tool is NOT available in this spawn context (forked skill executions strip it from subagents), do not attempt anything else: return exactly one short paragraph stating that the Codex bridge is unreachable from this context because Bash was stripped, and that the caller should run bun "$HOME/.claude/src/scripts/codex-run.ts" review directly from a session that has Bash. Do not retry, do not use Read to simulate a review.

Steps

  1. Run the review script:
bun "$HOME/.claude/src/scripts/codex-run.ts" review

For a PR-shaped review (the whole branch vs. a base, not just the uncommitted tip), pass --base <branch> instead — e.g. review --base main. See docs/codex-bridge.md for the full set of scope flags.

  1. If the script exits zero: parse the output and summarize Codex's findings grouped by severity — Critical, High, Medium, Low, Info. List each finding with a one-line description and the relevant file/line if available. If Codex found nothing, say so plainly. Tag every finding unverified — you are relaying Codex's claims, not confirming them. Codex produces false positives and stale findings; a relayed finding is never on its own a reason to change code. The caller adjudicates (confirm / reject) before acting.

  2. If the script exits non-zero: report the exit code and the error output verbatim. Do not retry. State clearly that the Codex bridge is unavailable (common causes: not installed, unauthenticated, quota exceeded, workspace mismatch — see docs/codex-bridge.md) and that the user should fix the bridge and re-invoke.

Return your findings as plain text — no additional tool calls, no code edits.

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. 2d ago First seen · 40 lines · 114 tokens per session scan A 0fed35bd771f

Subscribe to this mod's changes

codex-verifier is an agent published in the GitHub repository darkroomengineering/cc-settings (42 stars, last pushed 4d ago), licensed MIT. It adds 114 tokens to every session and 585 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.