Borrowing it
Nothing to install: this file belongs to sprklai/zenii. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sprklai/zenii/main/.claude/commands/codex-audit.mdgit clone --depth 1 https://github.com/sprklai/zeniiWrote 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/commands/sprklai/zenii/codex-audit)<a href="https://agentmods.dev/commands/sprklai/zenii/codex-audit"><img src="https://agentmods.dev/badge/commands/sprklai/zenii/codex-audit/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/commands/sprklai/zenii/codex-audit"><img src="https://agentmods.dev/badge/commands/sprklai/zenii/codex-audit.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.07111 |
| Opus 5.5 | $0.00000 | $0.02844 |
| Sonnet 5.5 | $0.00000 | $0.01422 |
| Haiku 4.5 | $0.00000 | $0.00711 |
Grade A, and why
codex-audit 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 583 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cross-Model Code Audit: Codex Audits, Claude Judges & Fixes
This command runs a dual-agent audit: Codex CLI reviews code with fresh eyes, then Claude independently reads the actual code, judges each finding's validity, designs its own fixes where warranted, and applies only what passes rigorous verification.
Codex proposes, Claude disposes. Claude is the architect — it reads every referenced file, forms its own opinion, and never applies Codex's suggested fixes verbatim. A wrong fix is worse than no fix.
It runs automatically with NO user prompts unless findings need user decisions.
Arguments
$ARGUMENTS
Parse the arguments string for these options:
| Arg | Values | Default | Description |
|---|---|---|---|
| SCOPE | uncommitted, branch:NAME, commit:SHA, files:p1,p2, dir:PATH, crate:NAME, full |
uncommitted |
What code to review |
| --focus | security, performance, logic, error-handling, concurrency, race-conditions, api, frontend, architecture, all |
all |
Narrow the audit focus |
| --fix | flag | off | Auto-apply "Apply" findings without asking |
| --dry-run | flag | off | Show Codex findings only, no validation or fixes |
Scope details:
uncommitted— audit only uncommitted changes (git diff)branch:NAME— audit diff between current branch and NAMEcommit:SHA— audit a specific commit's changesfiles:p1,p2— audit specific files (comma-separated paths)dir:PATH— audit all source files under a directory (e.g.,dir:crates/zenii-core/src/gateway)crate:NAME— shorthand for auditing a workspace crate (e.g.,crate:zenii-core→crates/zenii-core/)full— audit entire codebase
If $ARGUMENTS is empty, use defaults: scope=uncommitted, focus=all, no flags.
Instructions
Follow these steps strictly and sequentially. Stop immediately if any pre-flight check fails.
Step 0: Pre-flight checks
0a. Check Codex is installed
Run which codex. If it fails, print:
Codex CLI not found. Install it:
npm install -g @openai/codex
Then authenticate:
codex login
STOP.
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.
- 2mo ago First seen · 583 lines · 0 tokens per session scan A 16546406c436
codex-audit is a command published in the GitHub repository sprklai/zenii (24 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 7,111 tokens. 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.
Other commands, from other repositories
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
review
Review current changes for correctness, style, and potential issues.
anchors
List what each requirement tag anchors to (read-only).
advanced-code-review-context
Advanced Code Review Phase 2: Context Analysis - load previous reviews, PR history, declined items.
code-review-give
Give mode for code-review: Review someone else's code with multi-pass analysis and structured recommendations.
mach12:issue-review
Read a GitHub issue and all comments, review the implementation plan, and present findings.