Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add LeeJuOh/claude-code-zero/plugin install codex-advisorWrote 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/skills/leejuoh/claude-code-zero/codex-adversarial)<a href="https://agentmods.dev/skills/leejuoh/claude-code-zero/codex-adversarial"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/codex-adversarial/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/skills/leejuoh/claude-code-zero/codex-adversarial"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/codex-adversarial.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.00046 | $0.04106 |
| Opus 5.5 | $0.00018 | $0.01642 |
| Sonnet 5.5 | $0.00009 | $0.00821 |
| Haiku 4.5 | $0.00005 | $0.00411 |
Grade A, and why
codex-adversarial scanned grade A 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 1mo 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 directorieslowAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
`--model` and `--effort` go through `scripts/apply-codex-config.py`, which updates `~/.codex/config.toml` before the companion launches — see the Apply block below. Never put `--effort` on the review command: review has Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 343 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codex Adversarial Review + Double-Check
You are a translator + executor. Adversarial review defaults to skepticism — it looks for reasons NOT to ship. Your first job is a clean invocation; your second is to hand what comes back to a fresh Verifier subagent and report what it decides. The judging is deliberately not yours.
Execution Contract
This contract overrides default exploration habits. Read it before Phase 1.
| Phase | Allowed | Forbidden |
|---|---|---|
| 1 ANALYZE | codex-task.sh check-ref, apply-codex-config.py |
cat, head, tail, git diff, git log -p, git show, git blame, Read, Grep, Glob |
| 2 INVOKE | codex-task.sh review (multi-arg form only — never $ARGUMENTS blob) |
All source reads |
| 3 WAIT | codex-task.sh review-wait loop (≤8 calls, about 30 min), then Read OUT_FILE |
All source reads, run_in_background, ps/kill |
| 4 VERIFY | codex-task.sh payload, then Agent (codex-advisor:verifier) per group |
Reading source; judging or re-judging any finding yourself |
| 5 REPORT + SAVE | codex-report.sh save, codex-report.sh clean |
Write tool for the report |
The companion collects the diff itself. Unknown flags are silently
joined into the focus text, and so into the prompt (parseArgs in
lib/args.mjs). Phase 1 whitelist is the only safety net.
Phase 1: Analyze
You are a translator. Use LM intelligence, not regex tables.
Whitelist for this skill: --base <ref>, --scope <auto|working-tree|branch>, --model <slug>, --effort <level>, and positional focus text (natural-language attack hints, e.g., "check for SQL injection in login handler").
--model and --effort go through scripts/apply-codex-config.py, which updates ~/.codex/config.toml before the companion launches — see the Apply block below. Never put --effort on the review command: review has no such flag, so the companion would mix it into the prompt. Why, and when --model does go on the command: references/companion-usage.md §2.
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.
- 1mo ago Changed · -26 lines 5409d2faaa73
- 2mo ago Changed · +2 lines 668ee0e3352e
- 2mo ago Changed · +107 lines df11b4e89832
- 3mo ago First seen · 260 lines · 46 tokens per session scan A 0600df6cae08
codex-adversarial is a skill published in the GitHub repository LeeJuOh/claude-code-zero (52 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 4,106 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A 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-30.
codex-adversarial compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codex-adversarialLeeJuOh/claude-code-zero | Skill | 52 | yesterday | MIT | A | 46 | Claude Code |
| cpp-coding-standardsaffaan-m/ECC | Skill | 314k | yesterday | MIT | A | 48 | Claude Code, Kiro |
| simplify-codeNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 14 | Claude Code, Codex |
| coding-standardsaffaan-m/ECC | Skill | 314k | yesterday | MIT | A | 50 | Claude Code, Codex |
| pr-lensNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 15 | Claude Code, Codex |
| opencodeNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 15 | Claude Code, Codex |
| requesting-code-reviewNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 20 | Claude Code, Codex |