# adversarial-review-loop

> Has a second, independent model review every change before merge so two different reviewers must agree - code only lands when both clear the bar.

- Source: https://doutorai.pt/en/components/loops__adversarial-review-loop
- Type: Loops
- Category: General
- Downloads: 0
- Site: Doutor AI (https://doutorai.pt/en) - AI tools for small businesses

An open-source community component, curated and adapted by Doutor AI.

## What it does and how to use it

A **skill** that teaches Claude Code to do general tasks well. It is packaged knowledge the model uses whenever it is relevant.

1. Install the skill (command above).
2. In Claude Code, describe what you need - the skill turns on by itself when the context fits.
3. No commands to memorize: you talk in plain language and the skill does the rest.

## Install (Claude Code)

```bash
mkdir -p .claude/loops && curl -fsSL https://doutorai.pt/data/lib/loops__adversarial-review-loop.md -o .claude/loops/adversarial-review-loop.md
```

Paste this command into the terminal, in your project folder, and the component installs automatically.

## Content

```
---
name: adversarial-review-loop
description: Has a second, independent model review every change before merge so two different reviewers must agree - code only lands when both clear the bar.
category: engineering
interval: 15m
stop-condition: The implementing agent and the independent cross-model reviewer both approve with no blocking findings and tests pass.
components: [agent:expert-advisors/architect-review, command:git-workflow/gemini-review, command:git-workflow/pr-review]
tags: [code-review, cross-model, quality, loop]
---

# Adversarial-Review Loop

> **Loop Engineering** - the verifi

- 🔒 Full content on the Pro plan (€7.99/month) -
```

## Related components

- [anti-spin-build-loop](https://doutorai.pt/en/components/loops__anti-spin-build-loop): Builds toward a machine-checkable contract with explicit anti-spin guardrails - stops on no progress, repeated approaches, flip-flopping, or
- [build-test-fix-loop](https://doutorai.pt/en/components/loops__build-test-fix-loop): Builds the next item on the plan, then runs tests, typecheck and lint, feeding every failure back as the next instruction until the build is
- [builder-reviewer-loop](https://doutorai.pt/en/components/loops__builder-reviewer-loop): Passes code between a builder and an independent reviewer subagent until the review has no blocking findings and tests pass.
- [completion-contract-loop](https://doutorai.pt/en/components/loops__completion-contract-loop): Writes a contract of what "done" means and what evidence proves each requirement before any work starts, then refuses to claim success witho
- [docs-sweep-loop](https://doutorai.pt/en/components/loops__docs-sweep-loop): Keeps documentation aligned with the current codebase and opens a reviewable pull request on every pass.
- [five-minute-maintainer-loop](https://doutorai.pt/en/components/loops__five-minute-maintainer-loop): Every few minutes while you work, makes one small verified repository improvement - a flaky test, a stale comment, a missing type - one chan

## Save hours every week with AI, no hassle

**Doutor AI** gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further. [See plans →](https://doutorai.pt/en/pricing)

---
Content by Doutor AI (https://doutorai.pt/en). When quoting, please cite the source: https://doutorai.pt/en/components/loops__adversarial-review-loop
