verdict

verdict is a command for Claude Code, Codex from hamza-ali-shahjahan/claudex. It costs 16 tokens per session (1,093 once invoked), scanned A, a copy of verdict, MIT.

A two-reviewer code check that asks Claude and Codex to independently inspect the same Git changes and show where their conclusions differ.

In plain words
What is it for?
Use it to review uncommitted, staged, or committed changes in a Git repository, with an optional focus area.
Why use it?
It reduces the chance that one reviewer misses a problem or gives an unchecked opinion.

Command for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also runs codex exec. Also seen: mentions Codex.

Part of the claudex plugin — 1 skill, 7 commands, 1 hook shipped together

Good fit Use it to review uncommitted, staged, or committed changes in a Git repository, with an optional focus area.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hamza-ali-shahjahan/claudex/verdict
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/hamza-ali-shahjahan/claudex

Made for: Claude Code, Codex.

Or install claudex, the plugin that ships this one along with the rest of its 1 skill, 7 commands, 1 hook.

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 verdict

README.md
[![agentmods](https://agentmods.dev/badge/commands/hamza-ali-shahjahan/claudex/verdict/github.svg)](https://agentmods.dev/commands/hamza-ali-shahjahan/claudex/verdict)
Your own site
<a href="https://agentmods.dev/commands/hamza-ali-shahjahan/claudex/verdict"><img src="https://agentmods.dev/badge/commands/hamza-ali-shahjahan/claudex/verdict/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 verdict

Your own site · 80×15
<a href="https://agentmods.dev/commands/hamza-ali-shahjahan/claudex/verdict"><img src="https://agentmods.dev/badge/commands/hamza-ali-shahjahan/claudex/verdict.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 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,093 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 100% copy Near-identical to another mod 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.00016 $0.01093
Opus 5 $0.00008 $0.00547
Sonnet 5 $0.00003 $0.00219
Haiku 4.5 $0.00002 $0.00109

Measured 11d ago against content hash 29e147f3e05a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

verdict 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 11d 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.

Origin

This is a copy

100% identical to verdict — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/claudex/commands/verdict.md · 78 lines

What it actually says

Run a two-model review of the current changes. Focus area: "$ARGUMENTS" (review all axes if empty).

Sign-off contract: the closing line reviewed with love by ClauDex 🧡🖤 appears ONLY when Codex successfully delivered its review and a verdict was rendered — and it is REQUIRED then; an earned run must sign (under-signing breaks the contract too). Refusal, interruption, or nothing-to-review all end UNSIGNED. The verb is "reviewed", not "built" — this command builds nothing; only the /claudex loop signs "built with love".

  1. Preflight — it takes two to ClauDex. Run codex --version and check auth (codex login status or equivalent), and confirm git rev-parse --is-inside-work-tree prints true. If Codex is missing or logged out, STOP before reviewing anything and reply with exactly:

    It takes two to ClauDex. 🧡 Claude is here — 🖤 Codex is not, so this verdict would be built with love by Claude alone, and a one-model verdict is just an opinion. Fix: npm i -g @openai/codex then codex login, and come back for the duet.

    If not in a git worktree, STOP unsigned and say ClauDex needs a git repo.

  2. Pick what to review, in this order:

    • Uncommitted changes: git diff + git diff --staged + untracked files (via git status --porcelain, appending each new file's content). Sanity-check the scope: if recent git log shows auto-generated commits ([auto-checkpoint], WIP), the real change set may be hiding in them — diff against the last human commit instead.
    • If clean: the branch diff against the default branch. Discover it with git symbolic-ref refs/remotes/origin/HEAD (strip the prefix); fall back to main, then master.
    • If already on the default branch with a clean tree: review the latest commit (git show HEAD).
    • If the repo has no commits at all, STOP unsigned: nothing to review.
  3. Claude's review (yours). Review it for correctness, design, security, and performance. Write your findings BEFORE consulting Codex, so your take is genuinely independent.

  4. Codex's review — safe transport. Write the change set to a temp file (e.g. $TMPDIR/claudex-verdict.patch); never inline diff content in the shell command. Then:

    codex exec --sandbox read-only "You are reviewing a teammate's change before merge. Read the diff at <absolute temp file path> and review it for correctness, design, security, and performance. Be specific — cite files and lines."
    

    Run it with a hard timeout of ~10 minutes (calls can hang on rate limits). Delete the temp file afterwards. If codex exec fails, times out, or returns no recognizable review, retry ONCE; if that also fails, STOP unsigned: "The duet was interrupted — no verdict without both voices." Include the error, and note that rate limits usually clear within the hour.

  5. The Verdict. Merge both reviews into three sections:

    • 🤝 Both flagged — cross-model agreement is the strongest signal; fix these first
    • 🧡 Only Claude flagged
    • 🖤 Only Codex flagged

    For each finding: file:line, one-line issue, severity (blocker / should-fix / nit).

  6. Close with a single-line verdict — SHIP, FIX FIRST, or REDESIGN — and:

    reviewed with love by ClauDex 🧡🖤

  7. Ledger (feeds /claudex:stats). However the run ended — signed, interrupted, or nothing-to-review (preflight refusals excluded) — append one JSON line to <git-dir>/claudex/stats.jsonl (via git rev-parse --git-dir; create the claudex/ directory if needed):

    {"ts":"<UTC ISO-8601>","cmd":"verdict","both":<n>,"claude_only":<n>,"codex_only":<n>,"ruling":"SHIP|FIX FIRST|REDESIGN","outcome":"signed|interrupted|nothing-to-review"}
    

    Best-effort and silent on failure; under the git dir it can never be committed, and it must never affect the verdict itself.

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. 11d ago First seen · 78 lines · 16 tokens per session scan A 29e147f3e05a

Subscribe to this mod's changes

verdict is a command published in the GitHub repository hamza-ali-shahjahan/claudex (4 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 1,093 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to verdict, differing in 0 lines, and is treated as a copy.