---
title: "My worst coding agent habit: two-hour tasks, six-month projects"
description: "I wrote those plans, not the agent. Picking the solution before understanding the outcome, splitting a plan into phases because phases look professional, and writing a plan so detailed it becomes an implementation in markdown. All three make the agent run smoother, all three make the decisions worse, and I am not proud of any of them."
date: 2026-11-02
---

There is one task I keep coming back to. It was small: swap the cache layer, fix three call sites, run the tests. I handed it to an agent and got back a four-phase plan, eleven files, and a dependency table. The plan looked good. I approved it.

Two weeks later I was still tearing out a temporary adapter the plan had asked for in phase two, to bridge the new thing to the old thing, when both things were my own code and both could have been changed in one afternoon.

This has happened often enough that I stopped blaming the model. The coding agent is not broken. It is obedient, and what it is obeying is a plan I wrote. The longer I do this, the clearer it gets that my bad weeks do not come from agents failing to write code. They come from three things I do before the agent writes a line.

## One: picking the solution before understanding the outcome

I recognized this one from the brief that answers its own question. I gave a worker: implement the WebSocket server for the realtime layer. The worker did it well. It tuned the connection pool, handled reconnects, wrote tests for the heartbeat. CI went green.

Three weeks later I found out most of the traffic only ever went one way, from the server down to the browser, and the thing that actually hurt was not keeping a connection alive but rebuilding state after the network dropped. WebSocket was still a reasonable choice, but it was a choice, not the problem. I had spent three weeks optimizing an umbrella when what I needed might have been a brake.

An agent obeys "implement the WebSocket server" without complaint. It has no reason to ask anything back, because that sentence already answered the bigger question. If I had said "make sure the browser gets call state with this latency, this ordering, and this reconnect behavior, WebSocket is what we are trying", the worker would have had the standing to say the direction was wrong. Same agent, same model, one different sentence at the top, three weeks apart.

There is a second problem in the same place: agents make entering an unfamiliar domain too cheap. I once built an integration layer for a service I had never used. The code ran within hours. I understood it in about three weeks, and during those three weeks I kept fixing things I would never have written if I had understood the domain first.

The fix was not to stop using agents. It was to split the work into two stages. In the first stage I let it write no code. I only ask it for vocabulary: what concepts exist in this domain, how do they relate, what is mine to own and what belongs to the provider, what happens when the connection drops. Once I have the vocabulary I move to the outcome, and the outcome has to fit in one sentence with no technology name in it. Only then do we pick a solution, and the solution gets marked as being tried, not settled.

The test I use: if the sentence describing the work names a technology, it is not the outcome yet. It is one answer to a question I have not written down.

## Two: splitting into phases so the plan looks like a plan

This is the expensive one, because it looks so professional.

A tight change has a starting state, an ending state, and nothing in between. The plan splits it into four phases anyway. Phase one only adds the new abstraction. Phase two moves the consumers. Right after phase one the codebase sits in a third state: half old, half new. That state has to compile too, and be tested, and be reviewed.

That is exactly what I did with the cache layer at the top of this post. Add the new layer, write an adapter to bridge the two, add a compatibility branch for the call sites not migrated yet. All three were real code with real tests, and all three were things I knew would be deleted.

They did not get deleted.

This is the part that worries me more. The agent in phase one knows the adapter exists only for the migration. The agent who opens the codebase two months later does not. It sees two paths alive, both with green tests, both with abstractions that look intentional. So it treats them as the architecture. When it fixes a bug it adds a test protecting the old path's behavior. When it adds a feature it supports both paths, to be safe. A different worker sees the duplication and adds a shared abstraction to fold them together.

A few rounds of that and something meant to live two days has tests, docs, dependents, and consumers. Removing it now means telling apart the tests protecting a real requirement from the tests just freezing a migration state. Temporary code, once it has enough tests around it, is very good at manufacturing evidence that it matters.

I am not saying everything should ship in one shot. Sometimes a transitional state is required: data already running in production, independent clients that will not upgrade together, two services deploying out of step. But when the whole change lives in one codebase and I can move every consumer in the same work loop, keeping both paths because the plan said four phases is a cost I invented.

The question I apply to each step: if I skip this and go straight to the end state, what actually goes wrong? If the answer is "the plan stops looking nice", the step does not need to exist.

Something changed here compared with the years before agents. Large refactors used to be expensive because I had to hold a lot of context, touch many files, remember every call site, and I dropped things constantly. Splitting the work reduced real risk. An agent can change a group of related files, update the consumers, and run the tests in one loop at a fraction of that cost. So some tightly coupled changes no longer need to be broken up to feel safe. What used to be good craft is now an expensive habit.

I also picked up a cheap trick. When an agent says the task will take six weeks, I tell it it has six hours. Not to make it sloppy, but to force it to choose the shortest path instead of the most complete-looking one. If it genuinely needs more time, it will say why specifically, and then I have a real answer to weigh.

## Three: writing a plan so detailed it becomes an implementation in markdown

This one is hardest to spot, because it feels like being careful.

The plan starts in the right place: what the API returns, which inputs are valid, how errors are represented, which test proves the behavior. That is contract, and it should be locked tight. If two workers read it differently, we find out at integration that the pieces do not fit.

Then the plan slides. It starts listing which file to change, which helper to create, which function calls which, where a variable lives, how each branch is written. At that point the agent is not implementing. It is translating a long pseudocode document into syntax.

I have paid for this. Once I wrote a brief telling the agent to create a helper named X in file Y and call it from Z. The agent did exactly that. But when it opened the source, that file already had a nearly identical abstraction missing one parameter. It created the new helper anyway, because the brief said so. Two near-duplicates lived side by side for three months.

Agents are very obedient to a detailed specification. That obedience is an asset right up until it turns a guess of mine, written from a lower layer of context, into a constraint the agent is not allowed to question.

The boundary I hold now is simple. The plan locks what multiple parties need to read the same way: contract, invariants, behavior, who owns which data. Inside a worker's own scope, the worker decides. If a small choice changes behavior another component depends on, changes a shared API, or breaks an agreed invariant, it escalates. If it only changes how the code inside is organized, it settles that on the spot and does not bother me.

That boundary changes how I review too. The question is no longer "does the implementation match the plan line by line". It is "does the implementation keep the contract and the outcome". If a worker found a simpler way that still keeps all of it, that is an improvement, not a deviation.

Lock too little and the pieces will not join. Lock too much and the plan becomes an implementation written in prose, never compiled, never having seen the real source, with the authority to force the source to match. Both make coordination worse. What I want locked is the shared meaning of the system, not the minutiae of whoever is implementing it.

## All three share one root

Looked at together, they are one thing: I decide at the upper layer, with the upper layer's information, and then I send that decision down as fact.

Picking the solution before the outcome is deciding earlier than the information allows. Splitting into phases invents a structure from the plan and then makes the system live inside it. A plan detailed down to the function swaps a guess at the planning layer for what someone reading the code would see.

In all three the agent is not wrong. It does exactly what I handed it. What I handed it was an unripe decision, dressed as a requirement.

What I keep from this is not a process. It is a question I ask before handing anything over: is this sentence describing the thing I want, or the way I thought of getting it? If it is the second, the person receiving it has to be allowed to say the second one is wrong.

My two-hour task can still become six months. But it has to pass through someone who is allowed to tell me it is two hours.

And I have not fixed the habit. I still approve plans with more phases than the change needs, notice around phase three, and let it run anyway because I am busy with something else. That is why I wrote this down: not to show off a method, but to give the habit a name so I catch it a little earlier next time.
