My AI Assistant Wrote My Code. I Wrote the Bug Report.

· 2 min read · Syed Omar Faruk Towaha
My AI Assistant Wrote My Code. I Wrote the Bug Report.

Last month an AI assistant wrote me a beautiful function. Clean names, a helpful docstring, type hints, even an edge case I hadn't considered. It also used a library method that doesn't exist. It didn't hesitate. It didn't add a comment saying "probably." It simply invented pandas.DataFrame.smart_merge() with the calm confidence of a man giving directions in a city he has never visited.

That's the whole story of AI coding tools in one anecdote: impressive, fast and occasionally fictional.

What they're genuinely great at

Where they bite

The shift nobody warned me about

Before
My rough breakdown for a typical feature before.
After
With an assistant: less typing, much more reviewing.

I type far less now. I review far more. That's the real change: the job moves from writing code to judging code. And judging is harder than it sounds, because AI-generated code is fluent. It looks like code written by someone competent, so your brain relaxes. That's exactly when bugs walk in.

My rules for working with an AI pair programmer

  1. Never merge what you can't explain. If you couldn't defend a line in code review, you don't own it yet.
  2. Run it. Every suggestion gets executed and tested, not just read.
  3. Check imports and method names against real documentation when you don't recognise them.
  4. Ask for tests alongside code, and read the tests first. Wrong tests are a great way to discover a wrong understanding.
  5. Keep secrets out of prompts. Your API keys and customer data don't belong in a chat box.

So, is it worth it?

Absolutely. I'm faster, I try more ideas and I spend less time on tedium. But "AI wrote it" is not an excuse anyone accepts when production breaks. The assistant writes the draft. You are still the author. And the author, sadly, is the one who writes the bug report.

// related

// prefer the terminal?

Open the terminal blog and type read ai-wrote-my-code-i-wrote-the-bug-report.