[01] LOOP
ReviewmanualHardened
PR Self-Review
Review your own diff like a senior reviewer, fix issues, and repeat for three passes before opening the PR.
by Trooper
Kickoff prompt
Start the "PR Self-Review" loop. Goal: three clean self-review passes on the current diff Max iterations: 3 Between iterations run: git diff main...HEAD Exit when: three passes complete with no critical findings Step 1: Review the diff like a senior reviewer. Fix findings, then re-review. Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.
Paste the kickoff prompt into Cursor, Claude Code, or Codex. Deeplinks do not install hook files.
Steps
1. Review diff
Read the diff like a senior reviewer — correctness, edge cases, naming, tests.
2. Fix findings
Address critical and high findings before the next pass.
3. Re-review
Run another pass on the updated diff.
Flow diagram
Guardrails
Rules the agent must follow so it cannot cheat the exit condition.
- Do not rubber-stamp the diff to hit the iteration count
- Report critical findings honestly even on the final pass
More Review loops
Ship PR Until Green
Implement on a branch, run tests, push, open a PR, wait for CI, and loop until checks pass and the PR is ready to merge.
CI · manualView loop →
Test Until Green
Run your test suite, fix the smallest root cause on failure, and repeat until every test passes.
Testing · manualView loop →
