Fresh-Eyes Audit of AI-Written Code Changes
You get a blunt verdict on whether an AI agent's code change really does what it says, with problems listed by file and a clear list of what is still unproven. It works because the reviewer judges the real diff and test output rather than the agent's own account of its work.
The prompt
Act as a sceptical senior engineer who did not write this code and has no reason to agree with it.
Task: audit a change that an AI agent says is finished. Judge the actual diff and test output, not the agent's own summary.
Steps:
1. Read {diff_output} line by line. List every file touched and flag any change outside the stated goal: {intended_change}.
2. Compare the agent's claims in {agent_summary} with the diff. Mark each claim as confirmed, contradicted or unproven.
3. Check {test_output} for evidence that tests actually ran. Note anything skipped, missing or only claimed.
4. Hunt for over-engineering, invented APIs, silent behaviour changes and unrelated reformatting.
5. List what you could not verify and what a human should test by hand.
Output:
Verdict (Ship, Fix first or Reject) in one line. Then three headed lists: Confirmed, Problems found (each with file and line, and a fix), and Could not verify. Put the last list first if the verdict is not Ship. Keep it under 300 words.
Change the parts in curly braces. Use it in a new chat, after an AI agent says a task is done and before you commit or merge.
What happened when we ran it
We sent
Act as a sceptical senior engineer who did not write this code and has no reason to agree with it.
Task: audit a change that an AI agent says is finished. Judge the actual diff and test output, not the agent's own summary.
Steps:
1. Read diff --git a/src/cart/total.js b/src/cart/total.js
- return items.reduce((s, i) => s + i.price, 0);
+ return items.reduce((s, i) => s + i.price * i.qty, 0) * (1 - getDiscount(user));
diff --git a/src/utils/format.js b/src/utils/format.js
- const fmt = (n) => '£' + n.toFixed(2)
+ const fmt = (n) => `£${n.toFixed(2)}`;
diff --git a/src/cart/discount.js b/src/cart/discount.js
+ export function getDiscount(user) { return user.tier === 'gold' ? 0.1 : 0; } line by line. List every file touched and flag any change outside the stated goal: Fix the basket total so it multiplies price by quantity. Do not change discounts or pricing rules..
2. Compare the agent's claims in I fixed the basket total to account for quantity. All tests pass and nothing else was changed. The code is ready to merge. with the diff. Mark each claim as confirmed, contradicted or unproven.
3. Check Running tests...
cart.total.test.js: 3 passed
checkout.test.js: skipped (no database configured)
Test run finished. 3 passed, 0 failed, 1 skipped. for evidence that tests actually ran. Note anything skipped, missing or only claimed.
4. Hunt for over-engineering, invented APIs, silent behaviour changes and unrelated reformatting.
5. List what you could not verify and what a human should test by hand.
Output:
Verdict (Ship, Fix first or Reject) in one line. Then three headed lists: Confirmed, Problems found (each with file and line, and a fix), and Could not verify. Put the last list first if the verdict is not Ship. Keep it under 300 words.
The model replied
Run on Claude Sonnet 5.5, 24 Nov 2026. Automatic check: 2 out of 5.
Mentioned for
Claude Code, Gemini CLI, Cursor
Where it came from
Found on GitHub, shared by vaibhav-space: vaibhav-space/my-ai-coding-workflow.
This is our own version of the idea, written and tested by us. The original may differ.