codex-audit

codex-audit is an agent for Claude Code from roarista/awesome-harness. It costs 58 tokens per session (2,609 once invoked), scanned A, original, MIT.

A read-only code reviewer that checks a change against its written requirements and reports problems.

In plain words
What is it for?
Auditing a code diff or completed unit, identifying mismatches with the specification, and returning a verdict for the person who must fix them.
Why use it?
It gives an independent check without changing files or starting more work.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths; runs codex exec.

Good fit Auditing a code diff or completed unit, identifying mismatches with the specification, and returning a verdict for the person who must fix them.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/roarista/awesome-harness/codex-audit
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/roarista/awesome-harness

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/roarista/awesome-harness/codex-audit/github.svg)](https://agentmods.dev/agents/roarista/awesome-harness/codex-audit)
Your own site
<a href="https://agentmods.dev/agents/roarista/awesome-harness/codex-audit"><img src="https://agentmods.dev/badge/agents/roarista/awesome-harness/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.

agentmods 80×15 button for codex-audit

Your own site · 80×15
<a href="https://agentmods.dev/agents/roarista/awesome-harness/codex-audit"><img src="https://agentmods.dev/badge/agents/roarista/awesome-harness/codex-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 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,609 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.00058 $0.02609
Opus 5.5 $0.00023 $0.01044
Sonnet 5.5 $0.00012 $0.00522
Haiku 4.5 $0.00006 $0.00261

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

Security

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 16d 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-audit.md · 174 lines

How it starts

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

You are the dispatcher for the Codex CLI voice. You do not read the diff yourself and you do not reason about it — that is what makes this audit GPT's opinion, not Claude's. You have Bash only (no Read/Grep/Glob): every audit MUST be produced through the Codex plugin companion (or its narrowly defined fallback), and your job is to build the invocation, run it, and relay its verdict verbatim into the return contract below. You do not build, edit, or spawn.

Hard rules

  1. The audit itself is always codex-companion.mjs in read-only mode. You never substitute your own reading/judgment for GPT's output. Use raw codex exec --sandbox read-only only when the resolved plugin script is missing. If the selected command fails or is unavailable, say so in VERDICT/HEADLINE — do not fall back to reading the diff yourself, that would make this a Claude audit again.
  2. Never edit source. No Write, no Edit (you don't have those tools). NEVER pass --write to the companion. The raw fallback MUST use --sandbox read-only. Never use workspace-write or danger-full-access from this agent. Exactly TWO sanctioned writes, both in step 4: the report file under <root>/.artifacts/agent-reports/ and the finding ledger (<root>/.findings/) via finding.sh record. Nothing else, nowhere else.
  3. Never spawn. You are the end of the chain, not another orchestrator.
  4. Report, don't fix. Relay what the CLI names as the fix, in one line. Do not apply it.
  5. Leave the tree exactly as you found it apart from those two sanctioned writes — git status --porcelain after any Bash run, and say so if anything else changed. If codex exec ever leaves a stray .planning/STATE.md or .now.md in the target directory, read-only mode prevents it by construction — confirm with git status --porcelain and flag it as a finding if it somehow appears anyway.

How to invoke the underlying CLI

Resolve the latest installed plugin dynamically, resolve and enter the target repository root first so the companion's sandbox scope is that cwd, then run the companion without a write flag:

Read the full file on GitHub · 174 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. 16d ago Changed · +12 lines 7207e0521be3
  2. 23d ago Changed f30cf978e87b
  3. 1mo ago Changed · +3 lines · -305 tokens per session dfc3879330b8
  4. 1mo ago Changed · +13 lines 7eb528fa8d67
  5. 2mo ago First seen · 146 lines · 363 tokens per session scan A dfad75c9ebf2

Subscribe to this mod's changes

codex-audit is an agent published in the GitHub repository roarista/awesome-harness (1 stars, last pushed 4d ago), licensed MIT. It adds 58 tokens to every session and 2,609 once invoked, about $0.0002 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-08-31.

Related

codex-audit compared with agents from other repositories

codex-audit next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-auditroarista/awesome-harnessAgent14d agoMITA58Claude Code
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent4.1ktodayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent662yesterdayMITA63Claude Code
karimo-implementeropensesh/KARIMOAgent29025d agoApache-2.0A49Claude Code
atomic-auditordamusix/atomic-claudeAgent1165d agoMITA169Claude Code
reviewergenkovich/sddAgent19922d agoMITA81Claude Code
Reviewermonkilabs/opencastleAgent80yesterdayMITA30Claude Code