Guides / Rescue
Your vibe-coded app broke. Triage it like an engineer.
The failure loop is familiar: something breaks, you ask the AI to fix it, the fix breaks two other things, and an hour later the app is worse than when you started. The way out is not a better prompt. It is the same discipline engineers use on any unfamiliar codebase: rank the damage, pin the version, and change one thing at a time.
Dualbytes Engineering
Updated July 2026
8 minute read
Before you prompt again: pin the version.
The most expensive vibe-coding injury is self-inflicted: regenerating over a
half-working app with no way back. Whatever state you are in, freeze it first:
git init # if the project somehow is not a repo yet
git add -A
git commit -m "checkpoint: before attempting fix"
git branch known-good
From now on, every AI-assisted fix happens on a branch, gets tested, and is either
committed or discarded whole. The known-good branch is the state you can always
return to. This single habit converts "the AI destroyed my app" into "I threw away a
branch".
Why the prompt-fix loop diverges
Each "just fix it" prompt hands the model a bigger, more contradictory context, and
each speculative rewrite touches code the model no longer fully sees. Fix one, break
two is not bad luck; it is what unconstrained regeneration does to a codebase. The
ladder below constrains it.