mcpField

Independent Verifier Pass

FeaturedOn demand
TestingUp to 8 rounds

About Independent Verifier Pass

This loop repeatedly checks that a project builds, lints cleanly and passes its tests, with the checks run independently. Each round runs one set of verifier commands and fixes problems found in the failure output. It runs for at most 8 rounds.

Key features

  1. 01Build, lint and tests chained in one check
  2. 02Independent verification rather than self-assessment
  3. 03Capped at 8 rounds
  4. 04Started manually in Claude Code

Use cases

  1. 01Full quality check before committing or releasing
  2. 02Confirming the project is still healthy after a broad change
  3. 03Fixing build, lint or test failures reported by CI
Goal
Build, lint and tests all pass under independent verification.
Exit when
Stop when every verifier command exits with code 0.
Between iterations run
npm run build && npm run lint && npm test

Launch prompt

Paste into Claude Code. The agent repeats the steps below until the exit condition is met.

prompt.md
Start the "Independent Verifier Pass" loop.
Goal: Build, lint and tests all pass under independent verification.
Max iterations: 8.
Step 1: Run verifier checks — Execute npm run build && npm run lint && npm test to check the build, lint and tests in order. If any stage fails, the command exits non-zero. `npm run build && npm run lint && npm test`
Step 2: Analyze failures — On failure, read the output and locate the cause, telling apart build errors, lint issues and test failures.
Step 3: Fix the problem — Change the code to address the identified cause, keeping edits small, then start the next round to verify again.
Between iterations run: `npm run build && npm run lint && npm test`
Exit when: Stop when every verifier command exits with code 0.

Steps

Each round runs in order; if the exit condition isn’t met, another round starts, up to 8.

01
Run verifier checks

Execute npm run build && npm run lint && npm test to check the build, lint and tests in order. If any stage fails, the command exits non-zero.

$npm run build && npm run lint && npm test
02
Analyze failures

On failure, read the output and locate the cause, telling apart build errors, lint issues and test failures.

03
Fix the problem

Change the code to address the identified cause, keeping edits small, then start the next round to verify again.

Not met → next roundExits when met

Supported agents

Coding agents that can run this loop directly.

Claude Code
Cursor

Comments

Markdown supported