Symptoms
- Bugs come back after they were fixed
- The AI changes files you did not ask it to touch
- You are afraid to change anything because it might break
- Nobody can say which version last worked
Why it happens
AI coding tools only see part of your project at a time. When a request is big or vague, the tool has to guess. It often changes code in other places to make its guess fit.
Without saved versions and tests, there is no quick way to notice what changed or to go back. Each fix sits on top of the last one, and the project slowly drifts away from anything that worked.
None of this means you should stop using AI. It means the AI needs guard rails.
Try this first
-
Start using git today
Git saves versions of your project. Save a version every time something works. Then you can always go back to it.
git init git add . git commit -m "Working: login and dashboard" -
Ask for one small change at a time
Instead of “fix the checkout”, ask for one thing: “the cart total does not include shipping, fix only the total in Cart.tsx”. Name the file when you can.
-
Read every change before you accept it
Look at the diff. If the AI touched files that have nothing to do with your request, reject the change and ask again with a narrower request.
-
Go back instead of digging deeper
If a fix makes things worse, do not ask for another fix on top of it. Go back to the last working version and try a different approach.
Careful: the reset command below throws away all changes since your last saved version.
git reset --hard HEAD -
Add a few simple tests
Write tests for the things that keep breaking. Even three or four tests will warn you when an old bug comes back.
When to stop and call a person
Get a person involved when nobody remembers the last working version, when the same bug has come back three times, or when the code is too tangled to change safely. A specialist can find the stable parts, clean up the rest and set up a safe way to keep building with AI.
Questions people ask
Should I stop using Cursor?
No. It is a strong tool. It works much better with saved versions, small requests and a few tests.
Is it cheaper to start over?
Sometimes. If most of the code is tangled, rebuilding the core can cost less than months of patches. A code review will tell you which is true for your project.