For work too big to hold in one prompt. You agree on a written plan with visible checkpoints, then the agent executes one step at a time — and stops for review whenever reality differs from the plan.
Typical run: 30 min–2 hr typical \u00b7 Copy any prompt box and hand it to your agent as-is.
Loops / Plan Then Execute
Write the goal as one verifiable sentence plus 3 acceptance checks. Example: "Done means X. Accept when: (1) ... (2) ... (3) ..." Ask two clarifying questions at most, then stop for approval. Do not plan yet.
Draft a plan of 4–7 numbered steps. Each step states: what changes, which files, how to verify, and what needs human approval. Mark irreversible steps explicitly. Stop and wait for approval — do not execute.
Restate the approved plan verbatim with step numbers frozen. List anything explicitly OUT of scope. Declare the checkpoint rule: stop after each step and report. Then stop.
Execute ONLY the next approved step. Then report: what changed (files + lines), the verification output quoted, and any deviation from the plan. Stop and wait — do not start the next step.
For the step just executed, run its stated verification (test, build, query, screenshot — whatever the plan named). Paste the raw result plus PASS/FAIL. If FAIL, propose one correction without applying it, then stop.
If verification failed or new information appeared, propose a revised plan for the REMAINING steps only. Mark what changed and why in under 80 words. Stop and wait for approval before continuing.
Run all acceptance checks from step 1 in order. Quote each result. If all pass, write a closing note under 120 words: goal, steps taken, files changed, checks passed. Then stop.
Symptom: the agent plans and immediately runs all steps. Guardrail: the plan turn must end with a stop — execution without written approval restarts the loop.
Symptom: three steps land in one reply with one vague “works”. Guardrail: enforce one step per turn; any multi-step reply is rejected and redone.
Symptom: every step deviates and re-plans eat the clock. Guardrail: two re-plans maximum — the third deviation stops the loop and asks a human to re-scope.