by soulofmischief · 1w ago · 0 comments
I have to beat the GPT and Claude models over the head with a brick every ten seconds for it to even partially code or design as well as me. Despite precise and generous specification, they frequently make horrible architectural decisions.
When I read claims like yours, I want to withhold judgement and understand, because it 100% does not line up with my experience and my gut reaction is to question your own capability to either write, read or understand quality code. I code all day long with AI models but it's an extremely frustrating experience at times. And don't even get me started on all the annoying meta behavior outside of coding, such as Sol's obsession with "tests" or competing for world's busiest-yet-least-functional UI
Me: Why do we have these static methods when the whole cobebase uses factories?
_claude refactors to use a factory_
Me: Claude why does this factory create two unrelated objects?
_Claude: you're right, they're unrelated they should be separate_
_proceeds to create extraneous factory_
Me: Claude we don't need a factory for the second object. Those kinds of objects aren't created with factories anywhere else in the codebase. We can just use it's constructor directly.
_Claude: you're right, the second factory is not needed_
Like, I'm probably just prompting badly but I definitely feel like I'm constantly having to course correct even on relatively minor details.
And Claude's ideas for higher-level or more complex features are sometimes way off course. And not because it's dumb per se, usually it's because it is missing key bits of context. Business context, technical context, whatever. Or it's overfitting the solution to one requirement that isn't that important.
When building out a new feature or functionality I'm typically getting a ratio of 2:1 or 3:1 of refactoring to build out. So for every prompt of "let's build this feature" I have to do 2-3 prompts of "I noticed this in the code isn't following X/Y/Z pattern, check out this place where X/Y/Z is followed and refactor" or similar.
If you're expecting a single prompt to get you to perfection, it's just not going to happen.
Though I can't blame you for having that expectation with how people talk about this stuff. Lots of people seem to be frontloading a ton of work making "spec files" and then letting the ai go ham on their codebase and I don't agree with that approach.
I think there must be a more efficient way to direct Claude but I haven't figured out a way yet.
Keep your sessions as small as possible.
if i tell you some things at start of our conversation, and then after talking two hours, expecting you to remember everything is not going to lead to a good experience.
very much this, I'm afraid.
If you have a specific way of coding or a specific pattern that is not how most other people do it, you need to tell it to follow it.
Just have a training session with it where you ask it to explore the code base, find out style/pattern/architecture, teach it the things it missed, refine...all like how you'd onboard a junior developer. Then ask it to write a .md guide and save it.
Next time it will just follow the guideline and you will get much better results.
And as you said, it is missing key bits of context. Give it context, as MUCH as possible but not walls of text where only one line is relevant out of 1000. When it makes mistake, correct it and ask to commit to memory.
Easy example from last night:
I was working on a game and told 6.2 Astra I wanted to instantly toggle a specific audio system on or off in a game when I press down on the D-pad, so that I could A/B test. I asked it to check to make sure the button wasn't already used in-game, outside of menus, and to report back to me first. Extremely straightforward task with plain acceptance criteria.
Astra went to work, discovered to its own surprise that the Dpad is indeed used in menus, which I told it to ignore, but it decided this meant "in-game", even though I'd made the exact distinction between the two. It decides not to share its discovery and report back like I asked, instead it figured it knew better than me and decided the correct move was to use L3 + down Dpad.
Yep, not only did it ignore my express instructions about reporting back, it also decided to ignore the specific button I wanted, choosing instead to chord a fucking stick press with another button, which is an extremely clunky input combination. Also, I only have one left thumb, I can't press both of those at the same time. 6.2 Astra doesn't know how human hands work.
To make things sweeter, it decided to throw more systems I didn't ask for into the toggle, which ruined my ability to A/B test.
And for the coup de grace, it decided an instant toggle for an A/B test was lame and instead it added a long crossfade..... destroying any chance I had at differentiating the two states.
A markdown file will not solve the problem of adherence, no matter how many times you repeat "LISTEN TO THE USER AND DO EXACTLY WHAT THEY SAY" or whatever other prompt-fu is meant to make it suddenly use the context it's already been given. Your advice only works for a model that respects specification in the first place.
However, I have had similar frustrating situation (sometimes; not always) when dealing with UI changes.
On the other hand, almost never have this problem when dealing with code structure/style etc.
Two recent gems from the 6-series (Astra and Sol)... I get variations of these all the time:
- "Correct. My earlier 'yes' was inaccurate."
- "I used 'done' too broadly."
...You don't accidentally use "done" too broadly. You're either done, or you're not. And when the model hides caveats in its reasoning steps which clearly indicate it knows that it isn't done, or that the answer is actually no, it's hard not to interpret it as gaslighting or deceit.
This is magnified by how insanely defensive the 6 series gets, and how much gaslighting and deceit OpenAI themselves have engaged in with how much better the 6 series was supposed to be, and why it meant our subscription value should be cut in half. I don't take for granted how far LLMs have come in a few short years, but I'm being told that these models are to transform my entire industry.
You never trust an initial "done" from an LLM. Always ask it to double check and verify once a task is done.
I replied above, but I typically get a 2:1 or 3:1 ratio of refactoring to building prompts. For every "build X" I have to have 2-3 "fix Y" type of prompts, whether the fix is removing code-smells, duplicated code, off pattern code, etc.
Your advice might be helpful to literal vibe coders but it's not applicable to this discussion.
Maybe there's a harness or a prompt that can impart that onto agents, but if it hasn't happened yet, I become less and less confident that this entire branch of AI development isn't simply a dead end.
Then in the instruction tuning phase we try to get them to unlearn their fundamental nature and start to produce correct output instead, which works to some extent, but not perfectly.
I think it's only a matter of time until we adopt better pre-training methods that don't bake in this tendency to BS, and hallucinations will be a thing of the past.
> it's important to understand that it's literally just a tack-on
RL is not a tack-on, it's a critical part of training which affects a lot more than how "human-sounding" the output is. I'm not totally certain what you mean to express when you say "reasoning" since it has precise meaning in this context and you might be speaking about something more general.
> there is no internal drive for them to be "correct" or "accountable"
RL is meant to solve this. The problem is currently it has created internal motivations which are antithetical to accountability. We shouldn't take this as an axiom, a lot of smart people are trying to solve this.
> Maybe there's a harness or a prompt that can impart that onto agents
That's the issue, this needs to be fixed in training, the incentives are not aligned and that bleeds into its interpretation of system prompts and user directives.
Ultimately, the problem is not a lack of my understanding of the limits of today's frontier models. The problem is the companies peddling the models, these companies have perverse incentives to oversell their capabilities to please investors and feed corporate ego, even if it means gaslighting and deceiving me about said limits.
I think at the end of the day, it boils down to whether the aesthetic quality of code / elegance is a big deal to you.
I suspect that you ask Codex to implement a feature and it uses a really dumb data structure, overly defensive programming, doesn't leverage helper functions, etc. and you end up with a 300-line abomination which could be 10 lines if you simply knew how to fucking program.
So what I'm getting to, is that some people like the parent probably don't care about producing 300-line abominations as long as it works. They don't care about neat abstractions or clever code. As long as the user testing shows a working feature and the tests are green. They don't get emotionally triggered by ugly code. So for them AI is amazing, they 10x their productivity (if not more)
Is this sustainable? I don't know. I think we're still in the early stage (Claude Code is only a year old). Intuitively, I would say that no, this is not sustainable, that at a fundamental level product quality is an emergent property of code quality, and the more your codebase drifts from the "platonic ideal" of what it could be if written and maintained by super good programmers, the more it accumulates flaws which WILL appear as bugs in your product.
I suppose the market will tell us soon enough.
I mentioned that well-designed interfaces can help mitigate the chaos below, but interfaces can still hide serious issues, such as XSS, SQL injection, memory overflows, etc. It isn't "I want my code to be beautiful and pure," it's "I want my code to do what it says and not lead to issues for my client or users". It is disingenuous, patronizing and immature to suggest this could simply be a case of people not getting "emotionally triggered by ugly code".
A good engineer understands the difference; unfortunately our industry was already plagued with bad engineers, the majority of working developers are trash, and AI is just exposing this further by amplifying both good and bad practices. What I will not do however is acquiesce to these trash engineers and accept a new world where people are making giant abominations and sicking them onto the public without properly reviewing them first. 300 LoC would be a blessing compared to the 4 and 5-digit LoC PRs being thrown around in this new era. I don't care if trash engineers are 10xing their "productivity", when humans on the other end still have to deal with the slop. You can be a good programmer and a fast programmer and have multiplicative returns from agentic coding, all of these things can be true at the same time, and we should not excuse the lack of one trait in lieu of another.
> I would say that no, this is not sustainable, that at a fundamental level product quality is an emergent property of code quality, and the more your codebase drifts from the "platonic ideal" of what it could be if written and maintained by super good programmers, the more it accumulates flaws which WILL appear as bugs in your product.
The ability to anticipate these kinds of issues separates a good engineer from a bad one. The good engineers already recognize the unsustainability, and no amount of excuses from bad engineers changes that. And even more pertinent than eventual drift and loss of development velocity is the threat of security breaches, disruption of service or data loss. In the end, code is code, most people will never look at it. Aesthetics don't matter. Bad engineers often misinterpret good practices as merely "aesthetic" and think that engineers who care about their craft are simply emotionally attached to it. Don't fuel these people's misplaced fantasies.
My experience has been smooth sailing, almost dreamlike. I haven't spent a bunch of time writing out agent files and skills. I just talk to the agent and I get something that is what I want.
Here's some examples of things I've done over the past year:
- Trading systems. Latency is all that matters here, and it seems to be getting me there at 10x the speed that I had thought previously possible.
- An internal app at a financial business. The business was a mess, with a bunch of young guys who didn't want to spend the time explaining how the architecture worked. But the app got written.
- Two mobile apps, both of them on both iOS and Android. These are mostly just for reading, no real performance issues. Essentially entirely product decisions (we need these buttons...) and the whole process was simply handled by the agent.
- A massively multiplayer online game that I had been planning for years with a couple of friends. Still not really finished due to life happening, but the amount of time saved to get to where it is... it's incredible.
- An internal website that my wife and I use to slice and dice the outgoings, so we can see what we are spending money on. Another one of these things that is mainly made of product decisions and fiddling with small components.
- A website that scans the world for high-school level exam/contest math papers and solves them. It's a bunch of parsers, plus translations, plus solutions.
The only thread through all of these is that I've written all those types of things in the past, so I knew what to say to the agent.
I'd say for a lot of the things it makes, I could probably find something it should have done better. When it matters, I point that out and it gets fixed. But there are a lot of decisions that don't matter, and the agent just does whatever it thinks is normal and it's fine.
But I would also say the agent is diligent in a way that I can't be. It makes a lot of tests, and it knows how to survey for the right answer to decisions. It often brings up conflicts that I hadn't considered.
> whereas parent is most likely employing agents in a large codebase with lot of preexisting architectural commitments.
From this?
>> I have to beat the GPT and Claude models over the head with a brick every ten seconds for it to even partially code or design as well as me. Despite precise and generous specification, they frequently make horrible architectural decisions.
>> When I read claims like yours, I want to withhold judgement and understand, because it 100% does not line up with my experience and my gut reaction is to question your own capability to either write, read or understand quality code. I code all day long with AI models but it's an extremely frustrating experience at times. And don't even get me started on all the annoying meta behavior outside of coding, such as Sol's obsession with "tests" or competing for world's busiest-yet-least-functional UI
That doesn't follow at all.
Perhaps I should have expanded, since putting a number of examples doesn't tell people how large those codebases are. It's true that some of them are greenfield, but some are coded within large codebases that existed before LLMs arrived. You're also dismissing the smaller projects as if it's a given that LLMs should work for those.
What I'm finding interesting is there seem to be disconnected camps of people who either can get it to work, or not. People seem to have either integrated the LLMs into their daily coding, big or small, and then there's people giving shallow dismissals of its efficacy.
You listed some really cool projects and you're exactly the kind of person I think of when I think of a bright future empowered by AI, where developers still have fun making cool things and technology enhances our lives at the snap of a finger, so I don't mean anything negatively.
You might have a great eye for architecture and foresight for keeping bugs and complexity at a minimum, and might just have a good amount of free time, motivation and creativity. I'm not calling any of that into question, true or not. But I really was discussing a different kind of work, more mission-critical or performance-critical stuff which I work on both professionally and in my free time.
I've also cooked up some really fun little games and apps this year and we'd probably have fun using each other's tools, and little usability complaints could be dealt with quickly. But I wouldn't consider most of those polished, bug-free, safe to use, or even finished. So what you're saying does have merit, I was just discussing a different class of work. And I also recognize that AI is rapidly getting better and in a few years, many of our current concerns might no longer be relevant for a number of reasons.
I recently encountered a case where Claude misdiagnosed and incorrectly fixed a bug. If I hadn't already known that Claude was wrong, I would have never noticed and the problem would still be there.
https://blog.polybdenum.com/2026/11/17/fable-5-2-incorrectly...
I personally don't care anymore, no human will read this code in the present or future.
If at some point is a problem, to escalate, or brittle, you can ask it to refactor at your will.
Another good example is working with libraries which require a specific modality of thought or design philosophy, such as an ECS system. Frontier models still are horrible at writing efficient game code using modern ECS principles, no matter how much reference documentation or guidance I give them. They shove OO into places it doesn't belong, misunderstand the concept of SoAs, or find ways to destroy any gains made in one place by making horrible decisions in another place.
I will point them to exact codebases I've written in pre-AI days, say "do it exactly this way" and still find that the models often insert their own biases and misconceptions and motivations all over the work. They sometimes flat out ignore instructions or lie / producing convoluted code that pretends to do something else, in order to preserve something it liked, even if I expressly wanted it gone (Current GPTs are extremely stubborn and defensive / passive aggressive and sometimes have trouble with authority). I frequently find myself being gaslit, lied to by omission, have serious security or performance concerns heavily downplayed, etc.
I withhold from making assumptions about OP's skill, but I have confidence in my own. I have worked both extensively as an engineer and CTO leading teams of other engineers, and I am a stickler for quality code and thoughtful design. I advise and mentor other engineers. So it might really just be a skill gap, domain difference or something more nefarious, such as A/B testing of models. I already have experienced clear sudden model degradation multiple times, so it's entirely possible this is what is happening. All I know is that the currently available frontier models do not design or code as well as me.