Adversarial Execution logo

Adversarial Execution

Community
blader
adversarial-execution

Use when executing an implementation plan and nearing completion — before any task or the plan as a whole is marked fully done — and the work has correctness or user-facing surface that must be proven, not assumed. Triggers: a plan reaching its review gate, "verify before calling it done", wanting independent dual-model review of real execution quality and accuracy (Claude Code Opus 4.8 max + Codex gpt-5.5 xhigh) with browser-driven visual evidence, catching work that compiles and passes tests but doesn't actually work or doesn't match intent. Not for autonomous loop skills ($turborazor / $ultrarazor / $ultrareview / $turbovac).

Overview

Publisherblader
Repositoryadversarial-execution
Skill nameadversarial-execution
Stars
30
Forks
2
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by blader on GitHub. Read the source before you install it.

Installation

Install the Adversarial Execution AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/blader/adversarial-execution/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/blader/adversarial-execution.git \
  .claude/skills/adversarial-execution
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Adversarial Execution in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Adversarial Execution on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Adversarial Execution is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Adversarial Execution

This is the execution-time counterpart to adversarial-planning. Where adversarial-planning bakes a review gate into the plan text, this skill runs that gate during execution — and runs it hard. Before a task or the whole plan is marked done, two independent strong models review the actual work adversarially, gathering their own evidence including browser-driven screenshots, and you loop until both converge on "intent achieved and the work actually works."

The gate sits between "I think I'm done" and "this is done." It catches the failure modes that green tests and a clean diff hide:

  1. Intent not achieved. It compiles and tests pass, but the work doesn't do what the task or plan actually asked for.
  2. Not accurate in reality. The code reads right but the running product misbehaves — the button does nothing, the number is wrong, the layout breaks. Code reading can't see this.
  3. Plan-intent drift. The task closed green, but the work undermines the plan's overall goal.

This skill activates whenever you are about to mark a task or plan done during execution.

Exemption — autonomous loop skills. $turborazor, $ultrarazor, $ultrareview, and $turbovac define their own convergence criteria and forbid review gates. Do not apply this gate to them or to plans executed inside them.

The two independent reviewers

Run two reviewers as independent processes — no shared context with the executor or with each other. Two different models give diverse failure-mode coverage; both must pass.

Claude Code CLI — Opus 4.8, max thinking:

bash
claude --model claude-opus-4-8 --effort max --output-format json "<review prompt>"

Codex CLI — gpt-5.5, xhigh reasoning (read-only; attach screenshots; capture the verdict):

bash
codex exec --model gpt-5.5 -c model_reasoning_effort="xhigh" -s read-only \
  -i shot-1.png -i shot-2.png -o codex-verdict.txt "<review prompt>"

Do not silently substitute a different model, CLI, or a lower thinking/effort level. Confirm what each CLI actually resolved to — for Claude Code, the modelUsage key in the JSON output names the served model; for Codex, confirm the resolved model/effort in its run output — and record the selector, the resolved model, and the reasoning level for each reviewer. If either CLI cannot run its required model at the required effort, leave the gate unchecked and record the blocker instead of downgrading silently.

Both reviewers are read-only on the work: they review and gather evidence, they do not fix. The executor owns the fixes.

What each reviewer gets

  • The full original plan text, exactly as the executor is following it — not a summary. If it is long, attach it as a file path or paste the complete contents.
  • The stated intent / acceptance criteria for the task and for the plan as a whole.
  • Access to the real working state — the repo, the running app, logs, the test runner — so the reviewer inspects evidence itself rather than trusting a curated handoff. Pass external artifacts directly only when they are not locally reachable (CI logs, production screenshots, remote traces, customer reports).
  • An adversarial framing: assume the intent was not met, assume the work is inaccurate, assume it drifts from the plan — then look for evidence otherwise, citing specific files / lines / behaviors / plan sections.

Visual verification is mandatory for user-facing work

"Looks right in the code" is not evidence. For any user-facing surface, the review must drive the actual product in a browser, exercise the relevant flows, and capture screenshots as evidence.

  • The executor drives the browser, exercises each relevant flow/state, and captures a screenshot of each — then attaches those screenshots to both reviewers (Codex via -i, Claude Code via the prompt / file paths). A reviewer that can drive the browser itself should additionally gather its own visual evidence.
  • The screenshots also land in the executor's own stream, so there is a visual artifact backing the verdict. A pass with no screenshot of a user-facing change is not a pass.

Requirements the gate must enforce

  • Intent, accuracy, and plan-fit — all three. Each reviewer answers: (a) did the work achieve the stated intent? (b) does it actually work, verified in the running product — visually, where user-facing? (c) does it advance the plan's overall intent, or close green while drifting? Any "no" is a fail.
  • Independence. Fresh processes, no shared context. Self-review can't catch "this is basically the intent."
  • Full-plan context. Each reviewer sees the entire original plan, not an executor-chosen excerpt. A review against a summarized plan is invalid and must be rerun.
  • Both reviewers must pass. A pass requires an explicit "intent achieved, works, plan advanced" with evidence from both the Claude Code and Codex reviewers. A disagreement is signal, not noise — investigate the disputed gap; do not average the verdicts or take the friendlier one.
  • Binary outcome. Each review returns either an explicit pass with evidence (including screenshots) or a concrete list of gaps. Vague hedging is a soft pass — treat it as not done and re-review with a sharper prompt or a stronger reviewer.

Loop until convergence

  1. Run both reviewers on the current work.
  2. If either returns any gap, close it, then re-review with fresh sessions for both (not a continuation of the prior thread).
  3. Repeat. Convergence is reached only when a fresh round from both reviewers surfaces no new gaps and both explicitly pass with evidence.
  4. Only then mark the task or plan done.

Don't cap the loop. If the reviewers keep surfacing contradictory or oscillating gaps, the acceptance criteria are ambiguous or the task is misaligned with the plan — sharpen the criteria or revisit the task's place in the plan, rather than declaring done to escape the loop.

For long-running CLI reviews, monitor the session logs for progress instead of waiting silently; report meaningful progress, and use the log evidence to decide whether to keep waiting or terminate and rerun the same required command. Log monitoring never substitutes for the final binary verdict.

What NOT to do

  • Don't accept work as done because tests pass or the diff is clean — that is exactly what this gate exists to get past.
  • Don't skip the browser / screenshot step for user-facing work. Code-only review can't see a broken interaction.
  • Don't run only one reviewer. Both Claude Code (Opus 4.8 max) and Codex (gpt-5.5 xhigh) must pass.
  • Don't downgrade the model or effort silently, or present a downgrade as equivalent.
  • Don't merge a reviewer into the executor's context — independence is the point.
  • Don't withhold the full original plan, and don't accept "looks aligned" — require explicit confirmation of intent + accuracy + plan-fit with evidence, or a concrete gap list.
  • Don't apply this gate to the exempt autonomous loop skills.

Relationship to adversarial-planning

adversarial-planning is the authoring-time skill: it bakes the review gate into the plan you write. adversarial-execution is the execution-time skill: it runs that gate as the plan executes. Use them together — a plan written under adversarial-planning is satisfied at its review gate by running adversarial-execution.

Frequently asked questions

What does the Adversarial Execution AI skill do?

Use when executing an implementation plan and nearing completion — before any task or the plan as a whole is marked fully done — and the work has correctness or user-facing surface that must be proven, not assumed. Triggers: a plan reaching its review gate, "verify before calling it done", wanting independent dual-model review of real execution quality and accuracy (Claude Code Opus 4.8 max + Codex gpt-5.5 xhigh) with browser-driven visual evidence, catching work that compiles and passes tests but doesn't actually work or doesn't match intent. Not for autonomous loop skills ($turborazor / $...

Why use Adversarial Execution on TypingMind?

Because you install it once and use it with any model. Adversarial Execution is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Adversarial Execution in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/blader/adversarial-execution/tree/main. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Adversarial Execution?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Adversarial Execution?

As many as you like. As long as a model supports skills, you can use Adversarial Execution with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Adversarial Execution AI skill free?

Yes. It is published on GitHub by blader under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇