Stop the rewrite spiral.

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.

Debug Loop Breaker

The free sample. Complete, not a teaser paragraph.

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.

One change at a time

No refactors, no file replacements, no new library to paper over a logic bug. Re-run the same steps after each attempt.

Stop after two failures

A third silent rewrite is how the hole gets deeper. The playbook makes the agent write a brief and wait for evidence instead.

Scope guard included

An always-on rule that stops the agent rewriting working files, expanding the brief, or saying “done” without running anything.

Install

About two minutes, then start a new agent chat.

  1. Clone or download this repository.
  2. Copy the two .mdc rules into your project’s .cursor/rules/ folder.
  3. Copy templates/AGENTS.md to your project root if you do not already have one, fill in the brackets, and paste the agent sections.
  4. Open 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)

The Vibe Launch Pack

16 job playbooks for Cursor and Claude Code. £12, instant download, 14-day refund.

  • 01 Project brief and agent setup
  • 09 Landing page with a real CTA
  • 02 Scope guard
  • 10 Waitlist or email capture
  • 03 Debug-loop breaker
  • 11 Transactional email
  • 04 Secrets and env vars
  • 12 Basic SEO and share image
  • 05 Auth without locking yourself out
  • 13 Tests the agent must not weaken
  • 06 Stripe checkout that actually checks payment
  • 14 Errors in production
  • 07 Safe database access
  • 15 Accessibility baseline
  • 08 Deploy without leaking env
  • 16 Pre-launch audit and handoff

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.”

Free sample

Debug Loop Breaker

  • The complete debug playbook
  • Scope-guard rule
  • AGENTS.md starter
Get it on GitHub

Or get it by email, a free Payhip download.