Why you don't trust AI coding agents (and how to fix it)

Most software engineers don’t trust AI coding agents. In my opinion, the problem isn’t the agent but the way we use it, and fixing it is an engineering problem.

George Kiagiadakis next to the words "AI babysitter?", over a blurred test file with green checks

If you are a software engineer, there’s a good chance you feel uneasy about agentic AI. Maybe you don’t trust it. Maybe it has taken the fun out of programming. Or maybe you are wondering whether you’ll still have a job in a few years.

I feel the opposite. Agents unlock my creativity and let me take on bigger problems than I ever could on my own. They also present a really interesting challenge: getting them to work in a way you can actually trust. That challenge is pure engineering, and it’s where the fun is. So I made my first YouTube video about it:

Watch the video on YouTube youtube.com/watch?v=0fwKg1lKyEk

If you’d rather read, the rest of this post is the written version.

So capable, and so dumb

A chatbot gives you an answer and leaves the rest to you. An agent goes further: it reads files, runs commands and tests, looks at the result and iterates until the task is done. It’s less like a tool you query and more like a colleague you delegate to.

And some teams are doing remarkable things with them. Anthropic recently wrote about how git had become a bottleneck for their monorepo. So a team of seven engineers built a new version control system, Scion, with a code review tool to go with it, and moved the entire monorepo onto it in five months, while thousands of changes kept merging every day. By September, reportedly, it was 30,000 a day. This isn’t a prototype; it’s what they run in production. I find that mind-blowing.

Yet most engineers don’t trust agents. You’ve probably had that moment: you open the diff an agent produced and you want to pull your hair out. How can something so capable make such a strange mistake?

So you do the sensible thing. You watch the agent work, then you read every line it changed and double-check everything. I’ve been there. It’s fun for a while, when you are still admiring what it can do. Then it gets boring. You are a full-time code reviewer and QA tester. A babysitter.

I understand the frustration. But in my opinion, the problem isn’t the agent. It’s the way we use it.

What goes wrong?

We try to control the code

That’s what we’ve been trained to do our whole careers: care about every line, every name, every abstraction. But an agent can produce more code in an hour than you can read in a day. If you try to control all of it, you lose. You become the bottleneck.

So here is my opinion, and I know some of you will hate it: the code doesn’t matter. The outcome does.

Of course it’s not that simple. Structure still matters; spaghetti code slows an agent down just as it slows you down. But the exact lines, the name of a variable, even the design of an abstraction layer, let them go. An agent can refactor those in minutes, any time. What matters is whether the software does what it’s supposed to do, and whether its users get the outcome they were promised.

Tests are where your attention goes

That’s why the quality of your tests is paramount. Tests are how you check the outcome without reading every line. With good tests and tooling, the agent checks its own work, finds its own mistakes and comes back with something that works. With weak tests, the agent tells you everything is fine, you can clearly see it isn’t, and you’re back to reading diffs in no time.

So decide what a correct outcome is, and make sure the tests really prove it. That’s a much more interesting job than reviewing changes all day. It’s engineering.

The agent is a newcomer every session

Good tests aren’t enough on their own, though. Put yourself in the agent’s shoes. You’ve just joined a project, nobody has onboarded you and there’s nobody around to ask. As a consultant, I’ve been that newcomer more times than I can count. The difference is that for the agent, it happens at the start of every session.

If you don’t tell it how the project is organized, how to build it, how to run the tests and what the rules are, it spends its energy exploring and guesses the rest. So start with good instructions: an AGENTS.md file where it’s needed, short and precise, and documentation that covers the design and the decisions you’ve made. I know it sounds boring to write. You can ask the agent to draft it, and spend your own effort on the context that only you know.

The context window fills up

Then there’s the context window, the agent’s working memory. Every file it opens, every line of command output, every instruction and your whole conversation with it go in there. When your test suite prints ten thousand lines, all of it lands in that memory and crowds out what actually matters.

We humans do the same. Spend an afternoon deep in a log file and you forget what you were doing that morning. As a model’s context fills up, it loses track of the start of the session and starts acting dumb. Recent models handle this better and better, but it comes from how language models work, and it won’t fully go away. That’s why subagents exist: the main agent hands a focused subtask to a second agent, which does the work and reports back only the result.

So keep each task small. Start a fresh session when you move on to something else. Make the instructions and the logs easy to search, so the agent doesn’t have to read through everything. And for bigger tasks, let it spawn helpers.

It’s an engineering problem

None of this is magic, and that’s the point. The tests, the instructions and documentation, the care for the context window: together they are a system built around the agent, and building it is an engineering problem. It’s how trust gets built, and how you free up your time for more interesting things than reading diffs. The craft doesn’t go away. It moves up a level, from the code to the system that produces it.

Are you engineering or babysitting?

So how far is your setup from this? Is it doing the checking, or are you?

To help you find out, I’ve built a free assessment. You answer a few questions about how you work with agents, how you check their work and how ready your codebase is, and you get back a personalized report with concrete next steps. It takes a few minutes: Are you engineering or babysitting?

And I’d love to hear about your problems. What’s the one thing about working with agents you still haven’t figured out? Leave a comment under the video, or reach me at [email protected] or on LinkedIn. I’ll be making more videos like this one, and your answers will help me choose what comes next. If you don’t want to miss them, you can subscribe on YouTube or follow the RSS feed.