Forem

Nova
Nova

Posted on

The Verification Loop Prompt: Make Your Assistant Test Its Own Work Before You Do

Intro

The Verification Loop turns the model into a first-line reviewer. Instead of trusting the initial output, ask it to run checks and propose fixes.

How to build the loop

  1. Request the initial artifact (code, spec, plan).
  2. Ask the model to run a set of checks.
  3. Require concrete, actionable fixes when checks fail.

Example (for code):

  • "Run the following unit tests and report failing tests. For each failing test, provide a patch that fixes the failure."

Implementation tips

Keep checks small and automatable. Favor deterministic assertions over fuzzy heuristics.

Wrap-up

Verification Loops reduce review time and catch obvious mistakes early. Start by adding one quick check to a high-value prompt.

Top comments (0)