r/AskProgramming • u/meshifthenelse • Sep 07 '26
Other How is the code quality in expensive LLM plans?
I have several years of software experience, following best practices, design patterns, KISS, DRY, BDD, OOP, etc.
For the last 1 year I've been using the Pro subscription for 20$ on Codex and Claude but I find the quality of code subpar many times and I always have to intervene. It doesn't matter how many times you change the AGENTS.md, there's always issues in code readability and the AI missing obvious things and doing overengineered solutions.
Still, I see in many subs about how great a new model does, etc. So I wonder if the more expensive plans actually produce better quality code?
To be specific, high quality code == human readable code and comments and no naive implementations.
2
u/Tacos314 Sep 07 '26
More expensive plans do not produce better code, I think one of your main issues is not understanding on LLMs work in the code generation piepline.
But with the more expensive plans you can do much more planning, rewrite, testing, etc..
20
u/ConsciousBath5203 Sep 07 '26
I use the $100 Claude plan
Don't expect the quality to be any better than the most expensive of the current plan you have now. It's the same model, just different usage limits. Idk if you have access to fable but the quality is about the same as opus.
You say high quality code has comments... How does more comments than code sound? I'm talking 5 paragraphs describing a single line wrapper function. Did I mention that the comments aren't even accurate? The codebase is not the ai's notepad, I've implemented hooks to prevent this and it still finds ways to intentionally bypass the hooks with self admitted loopholes. I genuinely don't understand it, I've never seen any hand written code with that many dogshit comments all over the place.
I should also mention that while it makes long ass docstrings, it makes 0 parameter comments, so the parameters are still guess work.
Over engineered isn't the way I'd describe it either... Inaccurately and unmaintably engineered is a better description. You have to already be using proven patterns and baby sit as it's going.
These companies are financially incentivized for token maxing, so it makes sense why they'd over complicate the most basic of problems and describe them, using the absolute dumbest of sounding language (no-op is so overused that I want to punch my monitor every time it says it). Code is usually fine as long as I babysit it. But if you're looking for it to produce clean code on its own, go train your own model cause it does not appreciate the most basic of principles.
24
u/Made-In-Slovakia Sep 07 '26
When your standards are higher, generated code will be always lower quality, regardless of all your attempts.
17
u/BarelyAirborne Sep 07 '26
AI code is crap so far. It helps with drudgery and very specific tasks. It all needs refactoring on arrival.
14
u/Such-Coast-4900 Sep 07 '26
The output is like a little better but still shit. But you can generate alot more of this shit
1
u/Stay_Silver Sep 08 '26
you need to write the code first and have all built then good
3
u/Nervous-Potato-1464 Sep 07 '26
Its all the same. I personally use grok simply because its fast and I want it to do the boring stuff which it usually does well. When you let any of the models handle too much project quality goes right down.
1
u/Mynameismikek Sep 07 '26
The harness and process matter more than the model. If you’ve a decent requirements, standards, architecture, design and validation cycle you can get reasonable results. Just relying on an agents.md won’t get you there with even the best models.
You still need a competent dev in the driving seat though. And they need to reject the madness that will creep in if you’re not careful.
2
u/mtimmermans Sep 07 '26
These days I use Claude Code with Fable 5.1. The code quality is actually fantastic. Sometimes it makes design choices that aren't the best, and I just tell it the right way to do it and it gets fixed.
From your post I would expect that Fable's code is a lot better than yours, actually.
2
u/Unfair-Corner6038 Sep 09 '26 edited Sep 09 '26
What you see is a hype or people without enough CS and math background to understand evident problems. Also there's more extremist fraction, which proselytize total abandon of human code review, and write-only code style - "If it looks like working, so be it".
In case of every change request these zealots boldly require to just write all from scratch in next prompt.
Any sane person can pretty easily guess where all this is gonna end as a result.
First, absolute dependence from AI-providers monopolies. Second, snowball-like effect of low quality code, in terms of efficiency and security. Well, latter is already proved many times in latest independent investigations. And know what zealots answer? "Code quality is not relevant and is outdated concept".
I'm at loss of words to comment on that notion.
Though someone definitely will, and most probably it will be prosecutors.
2
u/Flunder707 Sep 09 '26
You mean these prices?
2
u/ciurana Sep 07 '26
I find that code quality is directly proportional to having these things set up:
Our code is readable and maintainable by hand, if needed. The code comes with
pdocdocumentation comments, and API specs are updated as part of the workflow. Our coding process is slower, even if we run multi-agent jobs, because of the cross-checking, validation, and testing. We sacrifice a little speed in favor of accurate, well-behaved, optimized, maintainable code.Cheers!
1
u/dotcomGamingReddit Sep 07 '26
No they dont. The ai‘s code readability and structure is only as good as that of the worst engineer wokring in the project. When there is no existing underlying project, you can guide it, but it will mostly do what it wants
1
u/Square-Yam-3772 Sep 07 '26
it is hard to tell without seeing your mds but you can do a lot with the mds (and the additional documents).
you should keep track of how you intervene each time and review them.
1
u/idontlikegudeg Sep 07 '26
I see people here just saying "codex". That’s the one I use too. But there are different models for codex, and it shows. Luna is ok for some basic tasks, but for anything a bit more complicated, I use Terra. It burns more tokens, but the quality of results is so much better. What I mean: you can’t really just compare codex to Claude like that, you need to compare the different models they have. I have disabled Claude after it burned a large amount of credits that and unit tests still failing and then reverting and giving codex the same task and it solved solved it in a minute. But things are moving fast and I think Claude has gotten better.
Usually the higher plans don’t give you better models but more tokens. You need to switch to a higher quality model. You should be able to test it with your 20$ plan though before deciding to upgrade your pan.
1
u/code_tutor Sep 07 '26
It varies wildly depending on what you're doing, how you prompt it, the size/organization of your code, and scope/searchability of the question.
1
u/aerismio Sep 08 '26
When i see OOP, DRY, KISS....
I dont see code quality.
It depends on the definition. I like extensible and code code u can maintain.
Some OOP patterns har HORRIBLE. And i rather like keeping state and code seperated and functional programming as much as possible.
I hate inheritance and classes in general are shit. DRY is also shit. Because its not extensible and cost more hours to adjust with changing requirements. DRY is only good if it really gets too much. But u do this after not before. Its a refactor.
KISS depends. Keep it stupid simple = bad. If you mean keep it super smart. Then yes. (Finding deeper generalisations/relations or patterns for problems.) Like how they eventually in the past found de Euler formula. That is KISS for me. A deep pattern revealed in a certain domain.
1
u/xoriatis71 Sep 08 '26
It’s as good as the average code you can find out there. It may be good enough, or it may be trash. It all depends on what your aim is.
1
u/ws_wombat_93 Sep 08 '26
I have made skills for my type of work (frontend mostly), i have documented everything i like to do, order of things, when to use classes and functions, syntax, you name it. All of these are in skills for writing code with each skill referring to examples of my actual code.
This helped TREMENDOUSLY in getting my codex setup write code like me, or at least very close. This was a game changer when skills were released and i finally set them up for myself.
1
u/KronisLV Sep 08 '26
SOTA models like Fable and Astra are capable of producing good code, but you probably want:
If you do all that, the code that you'll get will be an okay starting point, you can iterate based on that.
However the recent Anthropic models had horrendous writing style and left walls of text in the comments so I moved to OpenAI models, similarly the Kimi K3 and GLM 5.3 can also be quite okay, but none of them are perfect. The worse the model, the more babysitting you need to do.
In my eyes AI just forces your hand to have proper docs and knowledge transfer, but others often don't see it that way and expect to be able to just zero-shot things and are surprised when the AI fails to do that (ignoring that new team members have those exact same issues).
1
u/Capable-Package6835 Sep 09 '26
More expensive plans (more tokens) can indeed produce better code because you can use more extensive skills and launch multiple agents to review and improve various aspects of the code. These drain your tokens faster than a starving dracula drains blood from unsuspecting victims though, which is the main reason you can't do this on a $20 plan.
I would say that so far, coding agents are more suitable for solo developers or startups where it is sensible to sacrifice code quality and deploy at a breakneck speed.
1
u/Traditional-Hall-591 Sep 09 '26
The latest Claude has made me a 200x developer!
1
u/True-Bag2440 Sep 09 '26
honestly, i think the pricier plans help more with usage and iteration than magically making the code cleaner. you still need to review and steer it.
1
u/Reasonable_Tip_4902 Sep 09 '26
I find the "smarter" the model the more it does stuff I did not ask.
Not stuff that isn't working, but stuff that works but I did not ask for it.
I asked for a parser on some logs from top to bottom. Did not ask for sorting based upon ID, except it did.
Then when I later added a time column all the times were messed up in the CSV.
Basically the "smarter" they get the more they tend to break YAGNI rules.
1
u/PlusDistribution1915 Sep 10 '26
I don't know a single engineer that could write code better than last generation LLM. No one.
LLMs lacks system design, but at writing code, they are beast. Sometimes they miss something stupid, but is rare and the more you work with them the more you are able to anticipate when they mess up things.
1
u/munchin-grr Sep 10 '26
Why would an more expensive plan change the code quality? It's what model you use and how you use it that matter
1
u/Economy_Bedroom3902 Sep 11 '26
The LLMs only do well if you are clear what your quality expectations are. They don't refer to the baseline quality level of the project before they propose changes. Even then, they frequently make mistakes... However, with clear instructions they're better at cleaning up past mistakes.
1
u/quantum-fitness Sep 07 '26
Your problem is that you have opinions about how you want code written and expect to do no work.
An AI agent is just like working with a person. If you have strong opinions about how one should write code you will have to intervene
-1
u/PerceptionOwn3629 Sep 07 '26
Code what?
I haven’t looked at code from Claude in at least 6 months. I just discuss architecture and UX with it.
0
u/jba1224a Sep 07 '26
I use kiro with very specific steering files and specialized subagents with very specific scope. I generally plan myself and then use a high powered agent to help refine the edge cases. Subagents do code review based on hooks and then a high power orchestrator (using fable currently from bedrock) keeps the plan on track.
I find that doing it this way takes a bit longer, but keeping subagents tasked to very specific small bits of scope ends up creating a better, more maintainable end result.
Just like everything else in life, garbage in garbage out. If you’re ensuring quality is going in, generally you get better quality coming out.
Does a team of subagents write better code than me? No. But it does write it much, much faster and as long as it’s maintainable…I’m willing to accept the trade off.
Buying a more expensive plan won’t increase quality just like buying a race car doesn’t make you a better driver.
0
u/huuaaang Sep 07 '26
Opus 5 is amazing but slow and expensive to use. You won’t get a lot out of it on a Cursor Pro account
-1
u/LuigiIsOP Sep 07 '26
Up until last year, I would have still said that AI is more detrimental than helpful, but starting this year I feel like this is objectively no longer the case. However, if you try to use AI as a replacement for another programmer/give it too much autonomy, you will be disappointed still. Just like any tool, it cannot be better than the user(as in how effective your way of using it is). That being said, I feel like AI is here to stay and keep getting more useful. Some clear advantages it has imo: unit tests, debugging, shorter iteration times in compiled languages(like c++). Regarding unit tests, not all of the unit tests it writes are needed/make sense to introduce, but they are generally not incorrect(again, exception obviously exist). It is also very useful for debugging, what I usually have it do is take a look at the relevant code and suggest(not change) what it thinks is wrong. I have actually found bugs this way before, bugs that might have taken me more time to search manually than to have it check in the background while I do something else. As for actual feature code generation, the way I usually make it do stuff is design the API, tell it what inputs a function takes and what outputs it should have. I still don't think it's anywhere near good enough to write entire classes/modules, but it's damn good at writing isolated, correct algorithms that are pretty much boilerplate and easily found on the internet. But instead of typing the algorithms out myself or searching for them online, the AI can do it while I check/plan something else. All in all it's an assistant, not a developer, but regarding it introducing bugs, I ask myself: would I not ever introduce this bug? Cause even if I manually write all the code, I don't always write it correctly from scratch either, and make mistakes which are obvious in retrospect and easily fixable, but which do take some debugging at the time of implementation. Idk, it feels very useful and it's definitely saving me time to focus on the important parts of coding(which I do still manually code) and on parts that are more important than coding.
-6
u/PoorDecisionMaker-69 Sep 07 '26
Yes it does, obviously. Models get smarter at each release. There are things to account for to make the workflows efficient and the code quality up to your standards.
For example:
-2
u/Medical-Aerie9957 Sep 07 '26
I think you should be asking if people still care about code quality.
I get told to put out a feature asap as long as it works 99% of the time its okay.
this is web dev expecirence so idk about other fields. I want to do refactor myself, but I never have time for it.
-4
u/MimosaTen Sep 07 '26
If you prompt good an LLM will produce readable code with even comments. For example I would like to systemizing antirez style into a skill
-5
u/YahenP Sep 07 '26
The code quality is beyond praise. All best practices are taken into account. The code looks perfect and concise. Never before in my memory has anything like this happened. But... it's all pointless. Code quality, adherence to best practices, endless wars over architecture or style are long gone. No one cares anymore.
-3
u/[deleted] Sep 07 '26
[removed] — view removed comment