Logotipo de Adversarial Execution

Adversarial Execution

Comunidad
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).

Descripción general

Editorblader
Repositorioadversarial-execution
Nombre de la habilidadadversarial-execution
Estrellas
30
Forks
2
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por blader en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Adversarial Execution en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/blader/adversarial-execution/tree/main
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/blader/adversarial-execution.git \
  .claude/skills/adversarial-execution
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Adversarial Execution en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Adversarial Execution automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Adversarial Execution no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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 / $...

¿Por qué usar Adversarial Execution en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Adversarial Execution está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Adversarial Execution en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/blader/adversarial-execution/tree/main. TypingMind lee su archivo SKILL.md y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Adversarial Execution?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Adversarial Execution?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Adversarial Execution con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Adversarial Execution?

Sí. blader la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇