Escalating Loop Prompt for Code-review Summary
Prompt text
Create an escalation-aware refinement loop for a code-review summary: after two failed passes it stops, explains what blocks improvement and asks one specific question.
What to provide
The draft (or brief), the rubric, and how many passes you can afford
Make it yours. Replace the bracketed inputs with your own details, adjust the constraints to your situation, and change the output format to suit your purpose. Copy the text and edit it freely.
When to use this prompt
This prompt turns the draft (or brief) into an escalating loop, with code-review summary as the context. It suits prompt-engineering work that has to hold up to review, especially when a single pass will not be good enough.
Inputs to supply
Paste the draft (or brief), the rubric, and how many passes you can afford into the model's context first; the answer is only as specific as the material it can see.
- Context to supply: the rubric, stopping rule and evidence required for code-review summary.
Worked example with sample inputs
Illustrative sample input, not real data:
- Filled-in inputs: the rubric → accuracy, evidence, structure and tone.
- The details that change the answer: the rubric, stopping rule and evidence required for code-review summary.
What good output looks like
A good answer follows the output shape and stays tied to the input.
- It separates what the material supports from what the model is assuming.
- Each pass has a stopping condition and the change between passes is explained.
Two common mistakes
- Accepting an answer that drifts from the requested output. Re-ask with one short example of the shape you need.
- Leaving the code-review summary context implicit. Without it the response reads as generic escalating loop advice.
Best-suited models
Good fits for this kind of work, as of November 2026: Kimi K3.1 Pro or Qwen4-Max for open-weight iteration; Claude Fable 5.2, GPT-6.1 Sol or Gemini 4 Argon for multi-pass critique. Model versions change quickly — check the AI tool directory before relying on a specific version.
Other versions of this prompt
The same template exists for other stacks and contexts; open one to see how the wording changes:
Related Iterative Refinement prompts
Last reviewed: · Report a problem