Why Are Coding Agents So Dumb?
44 points by mtlynch
44 points by mtlynch
I get that this is more of a rant, and I agree with a lot of it, but some of these are Claude-specific or have plausible reasons.
For example, I don't think harnesses parallelize work automatically because they're more likely to hit session limits, and they consume more tokens in message-passing, coordination, and conflict resolution than when serial.
Likewise, when it comes to model/task suitability, self-reflection on model suitability is non-existent in general, yes, but there are passable alternatives.
In Claude, I instruct it to use models appropriate for the subtask, and it kinda works, but if you use Oh-my-pi, it allows you to specify models for different roles (slow, smol, review, basic tasks, etc), and will use them consistently.
Oh-my-pi also directly supports advisor agents, where a smarter model watches another subagent, and interjects as needed, which is a hybrid solution.
Thanks for reading!
For example, I don't think harnesses parallelize work automatically because they're more likely to hit session limits, and they consume more tokens in message-passing, coordination, and conflict resolution than when serial.
I think this is a plausible explanation, but I still find it unintuitive. Wouldn't you expect the agent eat up more tokens to do 10 tasks in the same session/context than to have one supervisor delegate to 10 tightly-scoped subagents?
But even token efficiency aside, I imagine there are lots of users like me who don't run up against quota limits often and would happily trade tokens for faster execution (in wall time).
Wouldn't you expect the agent eat up more tokens to do 10 tasks in the same session/context than to have one supervisor delegate to 10 tightly-scoped subagents?
Depends on how well the agent manages to provide meaningful context to the subagents, and they don't end up rediscovering the same things the main agent already did. In practice, this seems a bit mixed.
I would! And in fact, I use supervisor agents just like this.
But I was thinking of a different kind of serial, where instead of multiple tasks in a single long session, you have multiple sessions one after the other, one per task.
"If I had a human employee tell me they sat idle their whole shift because they wanted my input on some superficial detail, I’d quickly fire them."
I think I found the root of the issue here.
Your wish list for coding agents is essentially 70 years worth of computer science, design and product discipline, coupled with super human intelligence and human level restraint. If we had all of that we'd have solved pretty much every problem in CS. And you want it to be open source.
We're closer to having humanoid robots that can reproduce themselves than that.
Thanks for reading!
Which wish list items do you mean? The models are capable of these things but the agents don't take advantage.
This is a great rant :-)
One thing I'll often do is ask my agent to update the project docs first (or I'll make initial edits). I want to see what this will look like from a user's perspective. Once I'm happy with that, I'll move to plan, and then code.
I agree, I rarely read every last plan detail, but they are probably still a useful exercise for the agent to go through the planning step for itself (like a human).
I suspect frontier labs see harnesses as just an LLM-to-bash adapter. You won't see smart harness features from them, because everything a harness could help with, they hope to RL-train into their next model.
It's both model and agent. The model has a context limit, so until someone figures out a way to efficiently flush and make it long lived, you have to treat every LLM interaction as if with a baby freshly spawned but with a vast compilation of knowledge but that knows nothing about the specific environment except AGENTS.md or whatever shitty crutches we have.
Yeah, that's what hold agents back the most right now
You can ask them to take notes into a file, but that solution come with a lot of drawbacks:
So you end up repeating yourself, again and again, until you get completely mad.
a lot of this cognitive dissonance goes away if you just substitute "tool" or "code generator" for "agent" throughout. anecdotally you will also have a much better time using them, in terms of satisfaction vs frustration.
Yeah, the author's complaints don't resonate with me because when I use this things I treat them as "intelligent code generation". I say, things like, "the code currently does X because of Y. Make it do Z instead" where there is usually only one reasonable way to do Z in the context of the codebase.
Another potential difference is that I've had a lot of practise writing self-contained tickets for colleagues/future-me, so I'm implicitly managing that kind of context when piloting an LLM.
i think one of the issues with the agents by the big labs, is that their core assumption is that the LLMs keep getting better and you'll eventually just be able to throw more LLM at the problem, and building an agent using more "traditional" means is a waste of time
this is also a common mindset for more amateur ai maximalists, and seemingly everyone within a certain radius of san francisco
there are people experimenting with building better harnesses (that's basically the entirety of what openclaw is. and whatever steve yegge's project is) but the overlap between people who want better harnesses, and people who believe the LLM will just brute force the problem in 6 months, is nearly a circle, so the amount of serious investment in it is relatively low. and the projects doing it are a bit of a garbage fire (though useful insight probably does come out of them, i wouldn't want to actually use most of them)
there's also the less ideological version of this, which is just that the models shift under your feet every couple months and it's hard to build a sustainable business on top of it. whether or not the LLM solves the problem for you, it's probably going to break a lot of the harness every update
i don't think it's entirely "token merchant wants to sell tokens and doesn't code"
You said you tried pi, but basically everything you want exists today. I'll give a few example extensions below, but for many of these you've got plenty of options.
pi explicitly knows about itself out of the box and can use any provider out there.
There are plenty of goal modes that force the LLM to get things done, no more questions, and they include hierarchical subtasks. https://pi.dev/packages/pi-goal-x This includes the reviewer model that ensures the model is kept honest and actually gets the right fixes it.
There are plenty of UIs that show you what the state of the agents is. Many work on your phone. Many have cloudflare built in so that you can tunnel in from anywhere.
There are sandboxes which will for example lock your agent into a docker container. So you can give it whatever access you want. https://pi.dev/packages/@agimon-ai/doompi-sandbox
Even a version of the proxy secrets idea exists, just with environment variables but does the same thing, https://pi.dev/packages/@xynogen/pix-env
The quota, effort, cost, etc. routing exists. https://pi.dev/packages/pi-auto-model I don't think it takes into account when your limits reset, but I don't use this one.
There are so many fleet/swarm/herd/workflow extensions that scale to dozens and even hundreds of agents. That support git worktrees by default so that agents aren't blocked, etc.
etc. Just search for what you want.
The one missing piece I think is around self-reflection: could I have done this faster. I have a private extension that does this, surprisingly not something that exists as far as I can see. But that's the beauty of pi, you can whip something like this up easily.
Based on the title: because they're not coding agents. I can call my coffee machine a barman, but that doesn't make it a barman, a coding agent is still literally just an autocomplete with longer context than the autocomplete of yore, but that's still literally all it can do. You can try to write a harness that makes different autocompletes look at the result and decide whether "they would have written that" or whether the results do what the autocomplete predicts should have happened and intervene if the mismatch between expectation and reality is too low, but you still end up with an incredibly stupid solution that can only "do". It can't change, it can't learn, it can't even really fix (it can only just to to do again, hopefully differnt this time), it can't do anything other than "just autocomplete some more".
I think the part about OS level sandboxing is factually wrong? Claude supports that via bubblewrap: https://code.claude.com/docs/en/sandboxing
Which part is wrong?
Sandbox is off by default in Claude Code. Even when you enable Claude's sandbox, my understanding is that it still gives itself read access to your whole system, and you have to enumerate every path it shouldn't be able to read. I'm reading the docs now and having trouble understanding how I'd even configure it to say, "You can only read the current directory."
My point is that Claude Code and Codex are insecure by default, and they make you do a lot of work to restrict their access rather than designing the agents to use the least privileges necessary to do their work.
Which part is wrong?
Statements such as:
Surely, there was some sort of filesystem permissions or limited chroot kind of protection that prevents a random and unpredictable piece of software from exploring my entire computer unfettered, right? Not so. The docs encouraged me to write the LLM a polite letter kindly requesting that it not read certain files or directories.
And
agents are only usable if you give them access to everything
The first quote follows the sentence "when I first started using my coding agent," which was two years ago. It's not describing the situation today.
The second quote is accurate today of Claude Code and Codex. They expect access to everything by default and it's the user's responsibility to figure out how to limit access. Even with Claude Code's sandbox, I don't see a way from the docs to restrict read access to a single repo directory.
All of these problems with Claude are why my weekly usage is currently sitting at 0 on it while I have used all $200 of my Devin.ai usage.