Writing

The Pitfalls of Agentic Coding

Agentic coding tools are genuinely useful. They are also very good at helping teams accumulate problems faster than they can notice them.

There is a moment, usually in week two, when agentic coding starts to feel like a superpower. You describe a feature in a sentence, watch a few files change, run the tests, and ship. By the end of the afternoon the commit log is dense and the product has moved. It is easy to mistake that velocity for progress.

It is not the same thing. Agentic tools — the kind that plan, edit files, run commands, and iterate against feedback — are genuinely useful. They are also extremely good at helping teams accumulate problems faster than they can notice them. Most failure modes are quiet, plausible, and easy to defer until the invoice arrives months later.

The velocity illusion

Speed is the pitch, and the pitch is honest: an agent can produce a working slice of software faster than a person can type it. What it obscures is that typing was never the bottleneck. Understanding the problem, choosing an approach, and verifying the result were. Agents compress the visible work while leaving the expensive parts untouched.

That feels like acceleration. The diff grows and the demo works, but the decisions that determine whether the software is maintainable — where the boundaries are, which assumptions are safe — have been made by something that does not have to live with them. The bill arrives later, paid by whoever reads the code cold.

Comprehension debt

Every codebase has two kinds of debt. Technical debt is the cost of a shortcut you can see. Comprehension debt is the cost of code nobody on the team can explain. Agentic coding is a remarkably efficient generator of the second kind.

A conventional pull request is a conversation: the author wrote it, so the author can defend it. When an agent writes a thousand lines, the nominal author may have read a summary and skimmed the diff. Questions like why is this retry here? have no owner with an answer. The code works until circumstances change and someone must reason about it from scratch.

The discipline that helps is unglamorous: you own everything you merge. If you cannot explain a change without the agent open in another window, it is not ready.

Review is the new bottleneck

Agentic workflows shift the constraint from writing code to reviewing it. A single engineer can generate more reviewable surface area in an hour than they can meaningfully review in a day. The natural response is to review less carefully — to look at the happy path, see green tests, and approve.

This is where small, plausible mistakes compound. A swallowed exception. A retry without backoff. An authorization check placed one layer too high. None of these break the build. All of them are the kind of thing a careful reviewer catches and a rushed one does not.

The fix is structural. Keep changes small. Separate mechanical refactors from behavioral ones. Require tests that fail before the change and pass after. And treat “the agent wrote it, so it is probably fine” as the same red flag as “it worked on my machine.”

Confidently wrong, at scale

Agents are optimized to produce plausible output. Plausibility is a wonderful property for prose and a dangerous one for software, because incorrect code rarely announces itself. It compiles. It passes the shallow tests. It has the shape of a solution.

This is especially true at the edges of a system: error handling, concurrency, time zones, permissions, and anything involving money. Models have seen enough of these patterns to reproduce their silhouette without the reasoning that makes them correct. The result looks more conventional than what a thoughtful engineer might write — and is wrong in exactly the places convention stops helping.

The defense is cheap and boring: verify the claims. Run the thing. Read the logs. Check the edge cases by hand. Ask what would have to be true for this to be wrong, then try to make that true.

Requirements drift in the retelling

A subtler problem lives in the prompt. When you describe a feature to an agent, you compress context: the business reason, the constraints, the exceptions. The agent fills the gaps with what is conventional. Usually that is fine. Occasionally it quietly redefines the feature into something easier to build.

Nobody notices: the output is coherent, and the tests test what was built rather than what was asked for. By the time the mismatch surfaces, it is a product decision disguised as a bug. Writing acceptance criteria before the agent starts — and checking the result against that text, not the diff — catches most of it.

The craft still matters

There is a temptation to read all of this as an argument against the tools. It is not. It is an argument against outsourcing judgment. Used well, agents are excellent at the work humans are slow at: mechanical migrations, test scaffolding, exploring unfamiliar APIs, producing the first draft that makes the real design visible.

But the value still comes from the engineer’s ability to decompose a problem, notice when something is off, and say no. Those skills do not atrophy because agents exist; they atrophy when engineers stop practicing them. A team that only reviews generated code slowly loses the muscle memory to write or debug it.

Guardrails that keep you honest

None of this requires a heavy process:

  • Keep diffs small. A change you cannot review in twenty minutes is a change you are not really reviewing.
  • Write the spec first. Acceptance criteria before code; check the result against the criteria, not the agent’s summary.
  • Require a failing test. For bugs, at minimum. It is the cheapest proof that the fix addresses the problem.
  • Read critical paths line by line. Auth, billing, data deletion, and anything touching secrets deserve human eyes.
  • Own the merge. If you cannot explain it, do not ship it.
  • Budget for cleanup. Treat generated code like imported code: useful, but not yours until you have made it so.

A slower kind of fast

Agentic coding is real progress. It removes real tedium, and teams that use it well will outperform teams that do not. But the tools accelerate whatever direction you point them in, including the wrong one.

The teams that get the most from agents will not be the ones that generate the most code. They will be the ones that keep their review standards, their curiosity, and their ownership intact — and treat speed as an input to quality rather than a substitute for it. That is a slower kind of fast, and it is the only kind that compounds.