codex-review

codex-review is a command for Claude Code from Arystos/skill-codex. It costs 14 tokens per session (2,263 once invoked), scanned B, original, MIT.

A command that asks Codex to examine current code changes as a second reviewer.

In plain words
What is it for?
Reviewing uncommitted work, differences from a branch, or the changes introduced by a specific commit.
Why use it?
It helps find issues that the original author may have missed, including changes in new untracked files.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads ~/.codex paths; runs codex exec; mentions Codex.

Part of the skill-codex plugin — 1 skill, 3 commands, 1 hook, 1 MCP server shipped together

Good fit Reviewing uncommitted work, differences from a branch, or the changes introduced by a specific commit.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/arystos/skill-codex/codex-review
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/Arystos/skill-codex

Made for: Claude Code.

Or install skill-codex, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 1 hook, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/arystos/skill-codex/codex-review/github.svg)](https://agentmods.dev/commands/arystos/skill-codex/codex-review)
Your own site
<a href="https://agentmods.dev/commands/arystos/skill-codex/codex-review"><img src="https://agentmods.dev/badge/commands/arystos/skill-codex/codex-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-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/arystos/skill-codex/codex-review"><img src="https://agentmods.dev/badge/commands/arystos/skill-codex/codex-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 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,263 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.00014 $0.02263
Opus 5.5 $0.00006 $0.00905
Sonnet 5.5 $0.00003 $0.00453
Haiku 4.5 $0.00001 $0.00226

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

Security

Grade B, and why

codex-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 12d 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.

- **`--effort` omitted:** do NOT pass `reasoningEffort`. Codex uses its configured default (`~/.codex/config.toml`).
commands/codex-review.md · 84 lines

How it starts

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

Codex Code Review

Review the current changes using Codex as a second reviewer.

Instructions

You are invoking Codex for a second-opinion code review. Follow these steps:

  1. Extract optional flags from $ARGUMENTS first, then treat the remaining text as the review target:

    • --effort <level> — Codex reasoning effort. Valid: minimal, low, medium, high, xhigh. If an invalid level is given, list the valid ones and ask — do not guess.
    • --model <name> — Codex model. Passed through as-is; an explicit --model always wins.
    • --spec <path> — a requirements file (e.g. SPEC.md). Read it now. If the file does not exist, tell the user and stop.
    • Strip any flags you find; what's left is the review target parsed in step 1.
    • --effort omitted: do NOT pass reasoningEffort. Codex uses its configured default (~/.codex/config.toml).
    • --model omitted: choose the model yourself from the list in the codex_exec tool's model parameter (only those slugs exist on this account). For a review, prefer the strongest listed model; use a fast one only for a tiny diff. If no list is shown or you are unsure, omit model so Codex uses the user's default. If Codex rejects the model, the call falls back to the default on its own.
  2. Determine what to review. First check whether this is a git repository: run git rev-parse --is-inside-work-tree.

    Git repository (diff review) — based on the review target:

    • If empty or "uncommitted": first run git status --short to see ALL changes, including new untracked files (lines starting with ??). Collect tracked modifications via git diff and staged changes via git diff --cached, and include the full contents of any new untracked files — read them directly, or use git diff --no-index -- /dev/null <file>. Plain git diff is blind to untracked files, so a review that skips this step will miss brand-new files entirely. If there are no changes at all, inform the user and stop.
    • If it looks like a branch name: get changes via git diff <branch>...HEAD
    • If it looks like a commit SHA: get changes via git show <sha>

Read the full file on GitHub · 84 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. 12d ago Changed · +37 lines · +14 tokens per session scan A → B 1c5a9199ca4f
  2. 2mo ago First seen · 47 lines · 0 tokens per session scan A b202bc0489b3

Subscribe to this mod's changes

codex-review is a command published in the GitHub repository Arystos/skill-codex (7 stars, last pushed 2d ago), licensed MIT. It adds 14 tokens to every session and 2,263 once invoked, about $0.0001 per session on Opus 5.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-31.