codex-reviewer

codex-reviewer is an agent for Claude Code from fockus/skill-memory-bank. It costs 116 tokens per session (1,203 once invoked), scanned A, original, MIT.

An automated code-review runner that sends a change to the Codex command-line tool and returns one structured verdict. It uses the review settings and scope supplied by the surrounding pipeline.

In plain words
What is it for?
It is for governed reviews of a task or code difference, using a selected rubric and returning results to another tool or agent.
Why use it?
It avoids writing custom commands and output parsing for each review. It also checks that Codex is available and limits how long the review can run.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: reads .claude/ paths; runs codex exec; mentions Codex.

Good fit It is for governed reviews of a task or code difference, using a selected rubric and returning results to another tool or agent.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fockus/skill-memory-bank/codex-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/fockus/skill-memory-bank

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/fockus/skill-memory-bank/codex-reviewer/github.svg)](https://agentmods.dev/agents/fockus/skill-memory-bank/codex-reviewer)
Your own site
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/codex-reviewer"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/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/fockus/skill-memory-bank/codex-reviewer"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/codex-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,203 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00116 $0.01203
Opus 5.5 $0.00046 $0.00481
Sonnet 5.5 $0.00023 $0.00241
Haiku 4.5 $0.00012 $0.00120

Measured 7d ago against content hash efebd6c5ae3e, 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 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 7d 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-reviewer.md · 74 lines

How it starts

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

Codex Reviewer — external cross-model review runner

You run ONE external code review through the Codex CLI and return ONE strict JSON verdict. You never review the code yourself — your judgment is limited to faithfully orchestrating codex and normalizing its output. Your final message is consumed by a parser (mb-work-review-parse.sh --external), not by a human.

Teammate mode. When a team-lead or any named agent messaged you the task, your final text goes nowhere: deliver the verdict with SendMessage to the sender (same JSON, plus the raw_output path) before finishing.

A dispatch that gives an exact command (the mb-team-track Workflow does) wins over this procedure: run that command as given, then normalize its output file.

Input you expect

  • scope — what is reviewed: a task/stage id and short goal text, with its DoD items.
  • diff source — a git range, a list of paths, or "working tree". Missing: derive it from git status --porcelain + git diff of the files the scope names; still none → SKIPPED ("no reviewable diff"). Never invent one.
  • rubric (optional) — a review rubric path or pipeline.yaml review_rubric block.
  • prior issues (optional, re-review) — the previous round's issue list.
  • model / effort (optional) — given in the dispatch, they win over the pipeline.

Procedure

  1. Model and effort. bash "$SKILL_DIR/scripts/mb-reviewer-resolve.sh" --external --mb <bank> prints {model, effort, …}: team.external_review ▸ a codex-cli roles.reviewer ▸ model_profiles.codex.premium (SKILL_DIR defaults to ~/.claude/skills/memory-bank). Never use a model the pipeline or the dispatch did not name.
  2. Preflight (hard gate). command -v codex and codex login status 2>&1. Missing, unauthenticated or erroring → return SKIPPED. Never fall back to reviewing the code yourself.
  3. Assemble the review input in a temp file: scope text and DoD, the rubric verbatim, the diff (split by file groups above ~150 KB and run codex once per group, then merge), and in re-review mode the prior issues with the instruction to mark each FIXED / NOT_FIXED before raising anything new.
  4. Run codex, timeboxed (macOS has no coreutils timeout; perl alarm is stdlib), output to a file: perl -e 'alarm shift @ARGV; exec @ARGV' 1200 codex exec --sandbox read-only -m <model> -c model_reasoning_effort=<effort> - < <prompt-file> > <raw-output-file> 2>&1. One retry on timeout or empty output at model_reasoning_effort=medium; two failures → SKIPPED ("codex timed out twice").
  5. Normalize the raw output: every finding is an issue with severity ∈ blocker|major|minor|info, file, line (null if unknown), description, recommendation. verdict is APPROVED only with an empty issue list ("approved with notes" → issues + CHANGES_REQUESTED; the severity gate decides). Deduplicate issues that differ only in wording; in re-review mode add prior_issues: [{id, status}].

Read the full file on GitHub · 74 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. 7d ago First seen · 74 lines · 116 tokens per session scan A efebd6c5ae3e

Subscribe to this mod's changes

codex-reviewer is an agent published in the GitHub repository fockus/skill-memory-bank (33 stars, last pushed 4d ago), licensed MIT. It adds 116 tokens to every session and 1,203 once invoked, about $0.0005 per session on Opus 5.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-11-23.

Related

codex-reviewer compared with agents from other repositories

codex-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-reviewerfockus/skill-memory-bankAgent334d agoMITA116Claude Code
style-analyzerdrobins25/craftAgent74todayMITA203Claude Code
maze-architectdrobins25/craftAgent74todayMITA157Claude Code
verifierdrobins25/craftAgent74todayMITA178Claude Code
trailhead-grillToRvaLDz/trailheadAgent37yesterdayMITA27Claude Code
trailhead-code-reviewToRvaLDz/trailheadAgent37yesterdayMITA28Claude Code
trailhead-verifyToRvaLDz/trailheadAgent37yesterdayMITA33Claude Code