ASADULELAHBOOK A CALL →

Home / Answers / Software built with AI agents

Software built with AI agents

How do you handle production bugs in AI-built software?

By Asadulelah, a Kerala-based builder of custom software and AI systems for businesses.

You handle them like any production bug, with more discipline, because an AI agent will happily "fix" a symptom in seconds and move on. My process: find out fast through alerts, find the root cause before anyone touches code, stop and rethink after three failed guesses, stay with the deploy until the fix is really live, and turn every bug into a test so it can't come back.

Find out before the client does

The worst bugs are the quiet ones. I learned that from my own system. My AI assistant runs a nightly maintenance job. In mid-2026 it started failing after a subscription lapsed, and it failed around 70 times over 12 days without anyone being told. I only found out because I happened to ask.

Now every always-on service I run has two alarms:

  1. Crash alerts. When a service fails, a small, separate script sends a message to my phone. It runs independently of the service, so it still fires if the service itself is what died.
  2. Stall alerts. A daily check looks at when each job last actually did its work. That catches the case where something "succeeds" but does nothing, or the timer silently stops.

Later I found one more gap: the process that runs all my scheduled jobs exited cleanly one day, and everything was down for two hours with no alert. A watcher now checks it every five minutes. "It's scheduled" and "it's working" are different claims. Something has to check the second one.

Root cause first

When a bug is reported, the symptom is rarely the cause. Before editing anything I trace the real flow end to end and find every place that uses the function I'm about to change. The fix goes where all of them pass through, so I'm not patching one path and leaving the others broken.

With AI agents this matters even more, because an agent will patch exactly the line you pointed at.

The three-strike rule

If three different explanations for a bug turn out wrong, I stop. A fourth guess isn't progress; it's a sign the problem is structural. That's the moment to step back, look at the design, and sometimes tell the client honestly that the fix is bigger than it looked.

Stay with the deploy

A fix isn't live because the deploy command ran. I watch it to the end and check that the new version is actually serving, not that the old one is still running behind a "success" message. Then I test the fixed feature live, the way the client uses it.

If a fix has to go out fast, testing doesn't stop at the deploy. The skipped checks run straight after.

Turn the bug into a test

Every real bug becomes a test case. The next time anything changes, that case runs. This is what stops the same bug from coming back three months later after an unrelated edit.

Tell people plainly

When something breaks for a client, they hear what happened, what I changed and whether anything was lost, in a few plain lines. If I caused a delay, I say so. People forgive bugs. They don't forgive finding out late.

What to ask your builder

AI-built or not, production software is judged by how its problems are handled. Build for the bad day.