Reproduce first
Prompt 1 forbids edits. The agent must write the steps, the expected result, the actual result, and one hypothesis, then wait for your yes.
A free playbook for when your agent keeps “fixing” the same bug and the code no longer looks like yours. The paid pack covers the rest of a safe launch.
Prefer email? Get the free sample by email.
The free sample. Complete, not a teaser paragraph.
Prompt 1 forbids edits. The agent must write the steps, the expected result, the actual result, and one hypothesis, then wait for your yes.
No refactors, no file replacements, no new library to paper over a logic bug. Re-run the same steps after each attempt.
A third silent rewrite is how the hole gets deeper. The playbook makes the agent write a brief and wait for evidence instead.
An always-on rule that stops the agent rewriting working files, expanding the brief, or saying “done” without running anything.
About two minutes, then start a new agent chat.
.mdc rules into your project’s .cursor/rules/ folder.templates/AGENTS.md to your project root if you do not already have one, fill in the brackets, and paste the agent sections.playbooks/03-debug-loop-breaker.md and paste Prompt 1.mkdir -p .cursor/rules
cp rules/02-scope-guard.mdc .cursor/rules/
cp rules/03-debug-loop-breaker.mdc .cursor/rules/
Download the sample as a ZIP · View the files on GitHub · Get it by email (free Payhip download)
Three long-tail write-ups from the playbooks, with the prompts and the checks that actually catch the mistake.
Reproduce first, test one hypothesis, and stop after two failed attempts, so the agent cannot silently rewrite the file again.
A success URL is not proof of payment. Fulfil only after a verified webhook, and test the cheats that usually slip through.
Public-prefixed env vars are baked into the JavaScript users download. Here is how that happens, and how to search the bundle before you deploy.
16 job playbooks for Cursor and Claude Code. £12, instant download, 14-day refund.
Each playbook is a Cursor rule, an agent section, a prompt sequence, a checklist, and done-when tests, including cheats such as “visiting the success URL must not mark an order as paid.”
Or get it by email, a free Payhip download.