adversarial-review AGENTS.md

adversarial-review AGENTS.md is an instructions file for Codex, OpenCode from robertoecf/adversarial-review. It costs 1,463 tokens per session, scanned A, original, MIT.

Guidelines for having one AI agent critically review another agent’s plans, code, or prompts. They define how reviews are delegated between different AI hosts and how the findings are compared.

In plain words
What is it for?
Running adversarial reviews of plans, code, and prompts. They help route the review, prevent review loops, and label agreement or disagreement between reviewers.
Why use it?
They reduce the risk of an agent approving its own work without a separate critique. They also make it clear which findings came from the external reviewer and which came from the host.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/robertoecf/adversarial-review/agents-md
Clone the repo
git clone --depth 1 https://github.com/robertoecf/adversarial-review

Made for: Codex, OpenCode.

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 adversarial-review AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/robertoecf/adversarial-review/agents-md.svg)](https://agentmods.dev/instructions/robertoecf/adversarial-review/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/robertoecf/adversarial-review/agents-md"><img src="https://agentmods.dev/badge/instructions/robertoecf/adversarial-review/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,463 This file is loaded in full into every session.
When invoked 1,463 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01463 $0.01463
Opus 5 $0.00732 $0.00732
Sonnet 5 $0.00293 $0.00293
Haiku 4.5 $0.00146 $0.00146

Measured 4d ago against content hash a6c399c6fe32, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adversarial-review AGENTS.md 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 4d 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.md · 108 lines

How it starts

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

AGENTS.md: review agent guidelines (host-agnostic)

Plugin architecture

This plugin implements a single principle:

The partner reviews, never the host.

For every review (plan, code, or prompt — all through the single adversarial-review skill):

  • The agent reading the SKILL.md is the host.
  • The host must not review the host's own work.
  • The host runs lib/call-external.sh to delegate the heavy critique to the OTHER agent (the partner).
  • The host then runs its own independent analysis and cross-validates against the partner's output, tagging findings as [cross-validated], [external-only], or [host-only].

There is no haiku courier subagent in this version. The host (main session) does both the external dispatch and the synthesis. Removed in the 0.5.0 refactor: the courier added complexity (model inconsistency across files, blocking-vs-non-blocking ambiguity) without proportionate value.

Cross-host routing

Detected host Partner
claude Code: direct-xAI Grok 4.5, Codex Luna max, Pi. Plan: Codex Luna max, direct-xAI Grok 4.5, Pi. Then Antigravity
codex Author-aware: Codex-authored work goes to Pi Grok first; Grok-authored work goes to Codex Luna max first. Omitted plan author infers Codex; omitted code author infers Grok
grok Codex GPT-5.6 Luna max, then Claude, non-xAI Pi (DeepSeek then Kimi, never Grok), and the Antigravity ladder
pi Codex GPT-5.6 Luna max, then Claude, direct xAI, and the Antigravity ladder
unknown Direct xAI, then Pi, then the Antigravity ladder

Detection happens at every invocation via lib/detect-host.sh. See references/host-detection.md for the priority order and the env-leak asymmetry that drives "Codex env first, Claude env second".

Codex-host callers should set ADVERSARIAL_REVIEW_AUTHOR to codex, grok, claude, pi, user, or unknown. Aliases sol, openai, xai, and anthropic are accepted case-insensitively. Unknown authors use Luna first, then Claude and the non-xAI Pi chain.

Read the full file on GitHub · 108 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. 4d ago First seen · 108 lines · 1,463 tokens per session scan A a6c399c6fe32

Subscribe to this mod's changes

adversarial-review AGENTS.md is an instructions file published in the GitHub repository robertoecf/adversarial-review (8 stars, last pushed 21d ago), licensed MIT. It adds 1,463 tokens to every session, about $0.0073 per session on Opus 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

Other instructions, from other repositories

pg-aiguide CLAUDE.md

Claude Code instructions for timescale/pg-aiguide, covering tiger docs mcp server - development guidelines, build, test & run commands, code style guidelines and python (ingest/).

timescale/pg-aiguide · 419 tokens

river-review GEMINI.md

Gemini CLI instructions for s977043/river-review, covering gemini instructions (river-review), 必須チェック, gemini-specific tips, prompt assembly and development tips.

s977043/river-review · 318 tokens

AI-Prompt-Guide-MCP CLAUDE.md

Claude Code instructions for Blakeem/AI-Prompt-Guide-MCP, a project described as: Deprecated. MCP server and Claude Code plugin with task driven agent orchestration workflows, guides, markdown knowledge graphs, with intelligent context injection.

Blakeem/AI-Prompt-Guide-MCP · 5 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens