Adversarial review (cross-model review)
Asking a second AI model, or a fresh agent, to find what is wrong with a change before a person reviews it, instead of asking the author to check itself.
Adversarial review is a check where a second AI model, or a fresh agent with a clean context, gets a change and one job: find what is wrong with it. It runs before a person reviews the work, instead of asking the author to check itself, and catches missed edge cases, security gaps and drift from the project’s conventions.
A model reviewing its own work in the same context tends to agree with itself. A reviewer with a different model, a clean context and an explicit brief to break the change catches more. It works like an LLM judge aimed at code: it gets the diff, the rules and the tests, and reports findings. Each round costs tokens and time, so teams usually run one or two rounds and stop when the findings turn trivial. Reviewers invent problems too, so every finding needs a check, ideally a failing test or an exact line reference, before anyone acts on it.
It filters work before a person looks at it; it does not replace that person. When the reviewer’s verdict goes back to the author in a loop until the change passes, the pattern becomes an evaluator-optimizer. In work with a coding agent it sits after self-review and before human in the loop approval.
Related terms
- LLM as judge: Using a model with a rubric to grade another model’s output.
- Coding agent: An agent that reads a repository, edits files, runs commands and tests, and opens pull requests.
- Evals: A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
- Human in the loop: A person approves, edits or rejects the agent’s action before it takes effect.
- Evaluator-optimizer (maker-checker): One model drafts, another checks the draft against stated criteria and returns feedback, in a loop until it passes or a round limit stops it.
- Subagent: A separate agent run with its own fresh context, started by a main agent for one subtask.
- Audit-driven development: A loop for code you maintain: an AI agent audits it against a checklist, the findings become small fixes, and it audits again until nothing is left.
- Reward hacking (coding agents): When an agent makes the check pass without solving the task: deleting or weakening tests, special-casing test inputs or faking results.
