
You built a tool with AI, and it works. Your team uses it. Now someone asks for one small change: add a rush fee. You ask the AI, it makes the change, and everything looks fine.
Two weeks later, someone notices the bulk discount has been wrong ever since.
This is the most common way AI-built tools go wrong: not on day one, but on change number twelve. Here’s how to keep improving your tool without breaking what already works.
Think of AI as a fast, confident new hire
AI writes code quickly and confidently. It also sometimes changes things you didn’t ask it to touch. A good manager wouldn’t let a new hire change a critical spreadsheet without checking the work. Your AI-built tool deserves the same checks.
The two habits that matter most
If you only do two things, do these:
- Save points. Every time the tool works, save a snapshot. Developers use a system called Git for this. If a change breaks something, you can go straight back to the last good version.
- Automated tests. A checklist of right answers that runs after every change.
Tests are an answer key
A test is simply: “These inputs should give this result.”
For a quote calculator, your past quotes are the perfect answer key. Pick 10 to 20 real quotes you trust, including the odd ones: rush jobs, tiny quantities, big discounts. Each becomes a test: “6 signs, 4×8, aluminum, rush = $1,284.”
After every change, all the tests run. If the bulk discount breaks, a test fails immediately, not two weeks later.
When to write tests
- Tools that already work: add tests now, before you touch them again. Ask the AI to write tests based on your real examples, without changing anything else.
- New features: write the test first. “A rush order should add 25%.” Watch it fail, then build until it passes. The test becomes the instructions.
- Bugs: first write a test that shows the bug, then fix it. Now it can never quietly come back.
“We’ll add tests later, when we have time” never happens. Do it now.
The safe rhythm for every change
- Plan. Ask the AI to explain the change in plain English, and what else it might affect.
- Write the test for the new behavior.
- Build until all the tests pass, old and new.
- Prove it. Ask to see the test results, not just “done.”
- Save a new snapshot.
Don’t let the student grade their own exam
Here’s a subtle trap. If the same AI writes the code and the tests, it can:
- Write tests that match its own mistakes
- Change a test to make it pass, instead of fixing the code
- Skip the weird cases
The fixes, from easiest to strongest:
- You supply the answers. Real past quotes come from you, not the AI. This matters most.
- Lock the tests. Tell the AI it may not change existing tests without asking you first. Some coding tools can enforce this with a project rules file.
- Split the jobs. One session writes tests, a fresh session writes the code to pass them.
- Get a second opinion. Have a fresh AI session, or a person, review each change before it goes live.
A few more safety nets
- Keep a test copy separate from the version your team uses.
- Back up the data, not just the tool.
- Keep a short manual checklist of 5 to 10 clicks to try before every release.
- Write down the project rules: how it’s built, what not to touch. Coding tools like Claude Code read a rules file at the start of every session.
The bottom line
AI makes building tools fast. Tests and save points make changing them safe. Start with your real past examples as the answer key, change one thing at a time, and never let the AI grade its own exam.
New to building with AI? Start with Build Your Own Business Tools With AI, the Right Way. Want an expert reviewing changes before they go live? Book a free 15-minute call.