Vibe coding's most annoying failure mode isn't a wrong answer. It's an AI that "helpfully" rewrites three files you never mentioned while fixing the one you did.

The fix is pattern #3 from our Prompt Starter Kit: constrain it.

Before the AI writes anything, draw the fence:

  • What may change
  • What may not change
  • What should make it stop and ask

The template we teach in Lesson 1:

Only change [this function]. Touch nothing else. If the fix needs more, tell me first. 

That's it. One sentence, and the diff stays the size you asked for.

Why it works: an unbounded prompt is a permission slip. A bounded one is a work order. AI follows constraints far better than it guesses your intent — and when it does hit the fence, "tell me first" turns a surprise rewrite into a question you can answer in ten seconds.

The other four patterns — give it a job, show don't describe, ask for the plan first, feed it the error — are free on the kit page, no account needed: https://last20.appliedefficiencyai.com/kit

That's the whole idea. Fence first, code second.