Symptom: whack-a-mole bugs
Every AI fix breaks something else
The login bug is fixed, but now the dashboard won’t load. You ask the AI to fix the dashboard, and the login breaks again. You’re going in circles and the app never gets fully working.
Why this happens
The AI is solving the bug in front of it without knowing what else depends on the code it’s changing. Nothing tells it to protect the parts that already work.
- It edits more than it needs to. A one-line bug turns into a rewrite of several files, and every extra edit is another chance to break something.
- Shared code has hidden dependents. A helper, a type, a route, or a database query used in five places gets changed to fix one of them.
- There’s no check for what used to work. Without a quick test or checklist, the AI has no way to notice it broke something else, so it reports success.
The fix: fence the change and protect what works
Tell the AI what it may touch, what it must not touch, and what has to still work afterward. Paste this into any AI coding tool and fill in the brackets:
Fix ONE thing: [the bug, expected vs actual]. These features work right now and must keep working: - [feature 1, e.g. sign up and log in] - [feature 2, e.g. dashboard loads my data] - [feature 3] Rules: 1. Before changing code, tell me the cause and the ONE file (or smallest set of files) you need to edit. 2. You may only edit: [file(s)]. Do not touch [off-limits files, e.g. auth, database schema, config]. 3. If the fix needs a change to shared code, stop and tell me which other features use it before you change it. 4. Make the smallest possible change. No refactors, renames, or reformatting. 5. After the change, give me a 1-minute checklist to confirm the bug is gone AND every feature above still works.
Why it works: the list of working features gives the AI something to protect, the file fence limits the blast radius, and the checklist catches a new break before you move on.
Quick checks before you paste it
- If you’ve already been around the loop a few times, roll back to the last version where most things worked. Here’s how to roll back.
- Start a fresh chat so the AI isn’t building on a pile of failed attempts.
- Paste the actual error from the browser console or terminal, not just “it’s broken.”
Break the loop at strike two
The free 2-Strike Rule card tells you when to stop asking for another fix and what to paste instead. One page, keep it next to your editor.
Free via Gumroad: enter $0 and your email at checkout.
Related symptoms
If the AI says a bug is fixed when it isn’t, read Cursor says “Fixed” but the bug is still there. The Loop Breaker Pack has 25 prompts organized by symptom for loops like this one.