What AI Coding Agents Still Get Wrong (and How I Work Around It)
I use AI coding agents almost every day now. They're genuinely great at a lot of things. But there are a handful of mistakes they make over and over, and once you know the pattern, you can design around it.

A few months ago I wrote about letting an AI agent rebuild my personal site. Since then, coding agents have become part of my daily routine. I use them to rebuild small tools, fix bugs in old side projects, and write the boring glue code I used to put off for weeks.
They're good. Really good, often. But after hundreds of sessions, I've noticed they tend to fail in the same few ways. None of these are dealbreakers. They're just things you learn to watch for, the same way you'd learn a new colleague's habits.
1. They solve the problem you described, not the one you have
If I say "the signup form is broken," the agent will find something wrong with the signup form and fix it. Whether that's the thing I meant is another matter.
What helps: describe the symptom precisely. "When I submit the form with an email that has a plus sign, I get a 500 error" is a ten-second sentence that saves a twenty-minute detour.
2. They're too eager to add things
Ask for a small fix and you might get the fix plus a new helper function, a config option nobody asked for, and a refactor of the file next door. Each change is reasonable on its own. Together, they make the diff hard to review.
What helps: say what you don't want. "Keep this change minimal. Don't refactor anything else." It feels silly to write, but it works.
3. They don't know what they don't know
An agent will confidently use an API the way it worked two versions ago, or call a function that sounds like it should exist. It isn't lying. It just has no way to know it's wrong unless something tells it.
What helps: give it a way to find out. Tests, a type checker, a build that fails loudly. An agent that can run the code and see the error fixes its own mistakes surprisingly well. An agent working blind just guesses.
4. They match the code around them, including the bad parts
This one is subtle. Agents are great at following the patterns already in your codebase. That's usually what you want. But if your codebase has a messy pattern, you'll get more of it, written very consistently.
What helps: clean up the example first, or point at a better one. "Write this like the code in utils/dates.ts, not like the old stuff in legacy/."
5. They say "done" a little too early
"I've fixed the bug" sometimes means "I've changed the code in a way that should fix the bug." Those aren't the same thing.
What helps: ask for proof. "Run the tests and show me the output." Or better, set up the project so checking is the default, not something you have to remember to ask for.
The pattern behind all five
Every one of these comes down to the same thing: the agent only knows what's in front of it. It doesn't know which bug you care about, what your team considers a good diff, or which parts of the codebase you're embarrassed by. You do.
So my job has shifted. I write less code, but I spend more time on:
- Writing a clear brief before I start (very much like writing a good prompt)
- Making sure the project has tests and checks the agent can run
- Reviewing the diff like it came from a fast, talented colleague who's new to the team
That last framing has been the most useful one for me. You wouldn't merge a new hire's first pull request without reading it. You also wouldn't refuse to work with them because they made a few rookie mistakes.
Would I go back?
Not a chance. Even with all of the above, I ship small tools in an afternoon that used to take a weekend. I just don't hand over the keys and walk away. Not yet, anyway.
Keep reading

The Boring Tech Stack I Use for Every Side Project
I used to start every side project by picking a new framework. Now I use the same dull, reliable stack every time, and I ship far more. Here's what's in it and why boring wins.

I Let an AI Plan My Week in Bangkok. Here's How It Went
I handed an AI assistant my budget, my work schedule, and a list of things I like, then followed its plan for seven days. Some of it was brilliant. Some of it sent me to a market that closed years ago.

Getting a Personal Website Under 100 KB: My Performance Checklist
Most personal sites are far heavier than they need to be. Here's the checklist I use to keep pages small and fast, even on a patchy mobile connection halfway up a mountain.