codex-adversarial

codex-adversarial is a skill for Claude Code from LeeJuOh/claude-code-zero. It costs 46 tokens per session (4,106 once invoked), scanned A, original, MIT.

A review skill that deliberately challenges a code change by looking for security, correctness, and other reasons not to ship it. This kind of review is often called adversarial or red-team testing.

In plain words
What is it for?
Use it when you want a skeptical review of a change before release, with findings saved to a report.
Why use it?
It helps uncover problems that a normal, confirmation-focused code review may miss.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; reads ~/.codex paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the codex-advisor plugin — 10 skills, 1 agent shipped together

Good fit Use it when you want a skeptical review of a change before release, with findings saved to a report.

Compare 6 skills from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add LeeJuOh/claude-code-zero
Claude Code
/plugin install codex-advisor

Made for: Claude Code.

Or install codex-advisor, the plugin that ships this one along with the rest of its 10 skills, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/codex-adversarial/github.svg)](https://agentmods.dev/skills/leejuoh/claude-code-zero/codex-adversarial)
Your own site
<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.

agentmods 80×15 button for codex-adversarial

Your own site · 80×15
<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>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,106 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00046 $0.04106
Opus 5.5 $0.00018 $0.01642
Sonnet 5.5 $0.00009 $0.00821
Haiku 4.5 $0.00005 $0.00411

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

Security

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.

plugins/codex-advisor/skills/codex-adversarial/SKILL.md · 343 lines

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.

Read the full file on GitHub · 343 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. 1mo ago Changed · -26 lines 5409d2faaa73
  2. 2mo ago Changed · +2 lines 668ee0e3352e
  3. 2mo ago Changed · +107 lines df11b4e89832
  4. 3mo ago First seen · 260 lines · 46 tokens per session scan A 0600df6cae08

Subscribe to this mod's changes

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.

Related

codex-adversarial compared with skills from other repositories

codex-adversarial next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-adversarialLeeJuOh/claude-code-zeroSkill52yesterdayMITA46Claude Code
cpp-coding-standardsaffaan-m/ECCSkill314kyesterdayMITA48Claude Code, Kiro
simplify-codeNousResearch/hermes-agentSkill267ktodayMITA14Claude Code, Codex
coding-standardsaffaan-m/ECCSkill314kyesterdayMITA50Claude Code, Codex
pr-lensNousResearch/hermes-agentSkill267ktodayMITA15Claude Code, Codex
opencodeNousResearch/hermes-agentSkill267ktodayMITA15Claude Code, Codex
requesting-code-reviewNousResearch/hermes-agentSkill267ktodayMITA20Claude Code, Codex