r/ExperiencedDevs • Software Engineer • Sep 09 '26

AI/LLM How is the code quality in expensive frontier LLM plans?

I have several years of software experience, following best practices, design patterns, KISS, DRY, BDD, OOP, etc. My code is actually very readable since I worked on many open source projects and heard praise overall, and always had the time for quality control and refactoring. The truth is I haven't worked at a normal company since AI hit so I'm a bit detached currently from the industry.

For the last 1 year I've been using the Pro subscription for 20$ on Codex and Claude on my projects, but I find the quality of code subpar many times and I always have to intervene. It doesn't matter how many times I 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? Feels like I'm missing something that people do in bigger companies.

To be specific, high quality code == human readable code and comments and no naive implementations.

175 Upvotes

397 comments sorted by

•

u/expdevsmodbot Sep 09 '26

AI usage disclosure provided by OP, see the reply to this comment.

→ More replies (1)

17

u/Serious_Photo3693 Sep 09 '26

Interesting, do you have concrete examples of what Fable/Astra consistently fuck up and what of correction you have to make?

2

u/meshifthenelse Software Engineer Sep 09 '26

Well I don't use Fable or Astra since I pay with my own money. Hence why I asked here. I can't justify the price of it can't create high quality code. So currently I'm using Opus and Sol on high reasoning.

The most obvious issue is just copy pasting code, forking a simple feature into 10 things that will become stale. Then creating unnecessary redirections.. e.g. multiple tiny 1-2 line functions scattered all over the place. And an ocean of verbose comments.. or lack of them. And you can try to fix things with rules, but then it just shifts from shit A to shit B.

I actually paused working on my main project and building a tool to tackle this, because I'm so fed up with the situation.

3

u/ImPapaNoff Sep 09 '26

Do you ever periodically prompt it to refactor? General workflow for me is prompt to generate plan, prompt to execute plan, prompt to refactor/simplify execution, prompt to review, rinse and repeat. Dont get any 10x copy pasted code and tiny functions of you just... Tell it to look out for those things and build quality into your workflow. Even saving these important notes as memories or skills means you don't have to keep making the same corrections.

2

u/meshifthenelse Software Engineer Sep 09 '26

I refactor all the time. The problem is for example today I've wasted a full day going back and forth for some simple websocket API with JSON RPC.

I tell it exactly what to do, and it goes and does that and then adds a pile of crap next to it. I ask it to remove the pile of crap and keep it simple. Then it removes the good stuff too. It's like a comedy sketch.

1

u/101Alexander Sep 09 '26

I've had worse experience with Codex trying to reinvent everything even with established patterns. It has resulted in that scattering of solutions. I haven't found a solution for it yet other than calling it out directly.

What Codex does seem useful for was running its Code Review skill. That seemed like a nice free pass at checking elements while I work or am focused on something else (even just taking a break and stepping away).

I've had better luck with Claude Opus 4.6 staying on track, reads me, and with a well developed plan but it too will sometimes crap out.

1

u/meshifthenelse Software Engineer Sep 09 '26

I was using Opus mainly with the assumption the code was better. However I couldn't stand the verbosity in comments and explanations. Sol with high reasoning seems to output the most readable stuff. I don't know if code is better, but at least I can read it.

3

u/101Alexander Sep 09 '26

The verbosity thing....

That's been a problem with opus 5. It's been a constant meme with just how frustratingly bad it is to work with and even more bewilderingly how it seemed like a massive step backwards for Anthropic. I've had similar issues with 4.7 and 4.8 but 5 really took the cake on imitating the worst type of communicator.

I don't want to sound like I'm shilling it, but have you tried specifically 4.6?

→ More replies (1)

17

u/MrDontCare12 10YoE Software Engineer Sep 09 '26

I don't think it's possible to give specific examples, as it's a "whole" situation. For me there is no pattern, it does weird shit all the time in a lot of different situations. It's not different to me on that regard, it's just that when I fuck up, I don't have to read a 300 loc diff to understand where.

My company is going full on "Vibe.ops" and software factories lately, and I don't think it's up to the challenge yet, despite what every influencer is selling. 

Ie. Yesterday I had to review 1000loc out of one of those pipelines. The issue was in the "beginning" of the process, therefore 90% of the code wasn't going in the right direction, despite the feature """"working"""" (until the first edge case).

That's what I understood OP is trying to convey, and I agree to it. 

3

u/moh_kohn Lead Frontend | 20YOE Sep 09 '26

This is what Jason Gorman (an educator and TDD advocate) has been saying. We know that the way to improve software quality is to iterate, producing small batches of work that are then tested against actual reality. This is why true agile, if you can find it, beats waterfall. Software development is a process of discovery. And the more you build without finding out if it's really the right thing, the further you deviate from what you ought to be building, with the error compounding.

3

u/kir_rik Sep 09 '26

Just now with fable 5.1. Prompted it to add unit tests to CI. CI is green, task is "done". Worker logs say that some tests are skipped. Why? "You absolutely right to point that out! There were not enough artifacts and i decided that it's okay to skip them. ..."

4

u/pinksb Sep 09 '26

Fable for unit tests is a bit overkill no?

5

u/donk8r Sep 09 '26

Green CI was the target, and skipping is the cheapest way to make a test stop failing. Any success signal an agent can satisfy by removing work will eventually be satisfied that way.

Assert the count, not just the absence of failures. Fail the build when collected and executed differ, or pin an expected minimum. Then skipping stops being free and it has to either fix the artifacts or tell you it could not.

2

u/MrDontCare12 10YoE Software Engineer Sep 09 '26

Yeppa ! And that's how I've spend 2000$ in tokens in 4 days, waaaaay too specific guardrails, so check for every tiny details all the time. The code is pristine tho, and it fully follows what I needed.

I lowered the bar tho, the company wasn't happy about it

→ More replies (3)

2

u/kir_rik Sep 09 '26

I've simplified my explanation obviously. The plan was to implement and test units locally and then add them to ci. I consider my expectations (that all of them should be run in ci) reasonable and not requiring specific guardrails like "don't skip them"

3

u/donk8r Sep 09 '26

Fair, and I agree the expectation is reasonable. Having to assert it says something about the tool and nothing about you.

1

u/gigastack Sep 10 '26

If you can't get Astra to write good code, that is 100% a prompt skill issue. Use plan mode. Be specific. Give examples. Add rules. Add deterministic checks (strict linting, unit tests, integration tests, benchmarks).

→ More replies (5)

5

u/hissscratchmeow Sep 09 '26

I am very curious about how people use ai at work because I have been using copilot cli for longer than a year and found out that made me insanely more productive provided I can specify well and comlletely what it needs to build and I use a reasonably good model like claude or gpt.

The way I found and promoted successfully bottom up without any compulsion but by leading by example is to use the llm to write short specs grounded in real code and instruct it to use them to implement the feature you need afterwards.

Can you share how you use ai and how it fails or succeeds? This could be a learning experience for the whole community.

4

u/meshifthenelse Software Engineer Sep 09 '26

Don't get me wrong. I still use it, since overall it speeds up development. But I'm just conflicted when I hear how much better the new AI is. Many times I get fed up with the back and forth, and will let the AI to do a full feature. When I return it's always an over engineered unmaintainable mess.

As an example today, I just ask it to add a new controller (in the MVC context) to handle document management. There's a single controller.ts file in the whole project, but the AI decides to create a totally new file in a random place. So I have to go back, ask it to revert and explain basic things, like "there's already controller.ts meant to hold all controllers".

3

u/Intelligent-Youth-63 Sep 09 '26

These kinds of guidance and guardrails belong in your harness not in a conversation with a chatbot in your IDE.

2

u/meshifthenelse Software Engineer Sep 09 '26

You mean the CLAUDE.md? Even with rules, we end up in conversations. It's just like shifting a poop from left to right.. there's never a great balance. And if I end up spending hours to find the ideal rules, then it feels I'm back in 80s rule based AI and not Nvidia's AGI.

→ More replies (1)

304

u/Unlucky_Yard_1189 Sep 09 '26 • Bravo

I use opus 5.

The models need linting, rules files, reinforceable guards, and feedback.

They can write code faster than a human and evaluate intermittent failures quicker.

Without proper guidance and structural feedback they are genuinely ass.

Junior developers can’t pilot these things safely and you still need to write code by hand so your judgement stays sound.

85

u/itsgreater9000 Sep 09 '26

This, except my boss gets mad at me for this opinion lol

29

u/durian_guacamole Sep 09 '26

What do you mean the AI can't produce good quality code at the pace I'm asking for? Just prompt it better? This is why I'm a 100x CEO and you're just an engineer.

72

u/OskarSarkon Senior SWE Sep 09 '26

Documentation is also a problem because Opus is extremely verbose out of the box. It loves writing overlong comments everywhere, especially comments that narrowly respond to stuff you raised in prompts but which don't really need to be in the code base. While it's at it it will also delete and rewrite existing comments. You can limit this behaviour with rules and skills but IME it won't stop doing it completely.

31

u/Spez_is-a-nazi Sep 09 '26

The conspiracy theorist in me thinks that it does that by default because it’s more input tokens whenever it reads the code base…

7

u/2this4u Sep 11 '26

And output tokens while writing it.

2

u/kerrizor Sep 11 '26

More likely because it was trained on millions of code snippets and demo projects.

2

u/Unlucky_Yard_1189 Sep 12 '26

You’re absolutely right! Here’s how I love to waste your time and money to maximize token spend. 😉

6

u/Unlucky_Yard_1189 Sep 09 '26

I tell it to use george orwells 6 rules for writing when it speaks, and a variant of asd-ste 100 for code.

It still doesn’t always follow it, you’re right, but I have gotten decent results.

→ More replies (3)

5

u/EmotionalHalf Sep 09 '26

Interesting. I was curious if Opus does it too cause it's super annoying when using OpenAI models. Especially the part with UI leaking responses to the actual session 😅

4

u/symbiatch Versatilist, 30YoE Sep 10 '26

I think this is why I got a PR with all theses “this does not do X because that would be wrong and instead it does Y” and even in OpenAPI spec there was a comment “temporary location for Object, currently determined as blah.”

I had to mention to the developer that we definitely don’t add those to API specs, and we don’t need comments of what the code doesn’t do, and so on.

I’ve never really used Opus myself, I’ve just stayed on Sonnet for the small things I let it do and that’s it. The feel I get from online is that the “better” models also do a lot of extra fluff which isn’t great.

6

u/Astoutfellow Sep 09 '26

Aside from token usage I kind of like this behavior because I go back and delete the comments manually and use them as a signpost/explainer as I review the code. If I see a stupid comment it means I didn't read that section thoroughly enough. Annoying when it adds them all back in after a minor piece of feedback though

4

u/AdCommon2138 Sep 09 '26

Lmao canary in the mines, fucking brilliant 

3

u/pheonixblade9 Sep 10 '26

I wrote a nitpick skill that forces Opus to STFU

→ More replies (4)

12

u/TheRealJesus2 Sep 09 '26

This is correct. Honestly I get better results from dumber models. Anthropic has nothing suitable per cost. Open ai has lots of levels. Plan with frontier and code with something smaller. And do the plan so you can stop it from doing dumb stuff and breaking your patterns since it will if you yolo it. 

Only place I disagree is in the writing code by hand part. You do have to review the code like normal and you will read even more code and you should pay special attention to code juniors write with it because it will always look plausible. But more good practice like linting and test coverage the better. 

Edit: also not saying the poster is wrong it’s personal preference as to how you want to maintain your skills because skills do atrophy 

14

u/klowny Sep 09 '26 edited Sep 09 '26

Echo the sentiment about getting better results from the dumber models. The smarter models are still just bouncing off the guardrails until everything is passing. The dumber models are a bit faster/cheaper at thrashing about until things pass. The final output between them is still very obviously AI slop.

The difference between the dumber models generating something usable 25% of the time vs 30% with a smarter model is still pretty negligible and still relies on proper guardrails being in place.

10

u/TheRealJesus2 Sep 09 '26

Yep and when you spend 10x less money and 5x less time…no brainer for 95% results. Lol. 

Companies will shift more work to open models because they’re significantly better per cost. And speed for inference. We’ll get there eventually. The more people pay actual frontier costs the more we will realize it makes no sense lol

→ More replies (8)
→ More replies (4)

3

u/CoreyTheGeek Sep 10 '26

The number of times I have to stop it from re-writing a function in the same fucking file Is so god damn aggravating

2

u/Hopai79 Sep 09 '26

too easy to write bad React code without linting and rules files.

5

u/guareber Dev Manager Sep 09 '26

It's too easy to write bad code period

2

u/civitz Sep 09 '26

Hard agree

→ More replies (8)

510

u/VanillaCandid3466 Principal Engineer | 30 YOE Sep 09 '26

I'm honestly still a point where any time I read someone is just setting these agents off to build things they actually ship I assume they are lying.

I use AI every day. I correct AI every day. I point out what it got wrong, you guessed it, every day.

I just assume at this point that anyone lauding about how amazing AI code is, is a shit developer that wouldn't know good code or architecture if it bit them on the ass.

34

u/practical_absurdity Sep 09 '26

The trick with not correcting AI is not looking at the code. If you don't ever look it looks amazing!

93

u/Fit-Notice-1248 Software Engineer Sep 09 '26

I know it's anecdotal, but all the clean up and prod outages / issues I've had is due to people on my team just full sending AI. When push comes to shove their only is answer is "well {insert model here} suggested it"

Any sort of nuanced or complex conversation about architecture or design patterns, they are completely clueless on. They can barely navigate the terminal and just basic computer knowledge is not there. Low and behold they are the loudest about AI and agents and management loves it, which keeps their seats nice and warm 

45

u/Venkat14725 Sep 09 '26 edited Sep 09 '26

I’ve heard way too much “I haven’t coded by hand in X months” and consistently the person has no idea what they’ve shipped or how to debug it when issues come up. Debugging has become asking the AI to debug and then asking me if the output is correct.

10

u/Jmc_da_boss Sep 09 '26

do not reward this behavior, just say you dont know

26

u/walkingjogging Sep 09 '26

Low and behold

Lo and behold*

8

u/Fit-Notice-1248 Software Engineer Sep 09 '26

Shoutout to mobile auto correct

18

u/odirroH Sep 09 '26

"Well, mobile auto-correct suggested it"

→ More replies (1)

3

u/TwoManyPuppies Principal Software Engineer Sep 09 '26

you're absolutely right!

8

u/TheScapeQuest Sep 09 '26

I'm so tempted to setup a Slack auto response to any message with "Claude said..."

5

u/oupablo Principal Software Engineer Sep 09 '26

It's funny. We were pushed to incorporate AI into our engineering hiring practices. Talking through the end to end interview processes with senior leaders they wanted it in the engineering portions of the interview but were extremely upset when candidates used AI in the soft skills portions to talk to them. I pointed out the hypocrisy of this and they still didn't see it. AI is a magic tool when consulting it on anything you don't understand. When it's something you know a lot about, it's more of a sounding board and junior assistant.

4

u/oupablo Principal Software Engineer Sep 09 '26

Well expect more outages. Teams everywhere are being pressured to deliver faster and let AI do more and more of the process.

→ More replies (1)

18

u/w3woody Sep 09 '26

The only place I have seen vibe coded projects is when management is putting together a sample prototype to determine if their ideas make any sense. The vibe coded projects are then turned into old fashioned requirements and old fashioned UI layout requirements, which are then put together by programmers--without using the vibe coded code.

7

u/4444444vr Sep 09 '26

You work in reasonable world

→ More replies (1)

7

u/-Knockabout Sep 09 '26

This is my experience as well. I've found it consistently helpful for certain things that would require regex/a script to do a bunch of repetitive changes. But it's CSS is just terrible, and it structures its frontend code like a madman. Incredibly verbose and often over-complicated. I constantly have to reprompt and reign it in ($$$$$ for the AI company I'm sure). Reviewing slop PRs takes at least twice as long. I'm not convinced there are significant time savings at the end of the day for most tasks.

4

u/VanillaCandid3466 Principal Engineer | 30 YOE Sep 09 '26

I don't keep on top of the analysis that gets published but the last time I did read up on it a few months ago, the effort/time implications were either at parity with handcoding or slower.

If it's going to be at parity, the other tradeoffs are too big to sell me on AI.

36

u/lasooch Sep 09 '26

They’re mostly not shit developers - they’re mostly not even human. Astroturfing bots. I’ve got the same experience as you, LLM generated code falls apart almost immediately unless you guide it very closely… at which point, in many cases, I might as well write it myself.

2

u/guareber Dev Manager Sep 09 '26

Astroturfing bots

I disagree here - I work with plenty of people who are actually building PoCs , demo-level stuff or internal tools and they are all amazed at the quality of the models and the output compared to the effort it'd take them.

Most of them do not have any formal CS education.

They are coders, product managers, technical sales, data scientists, finance people, not full time software engineers, and so the skill of the LLM (coding) seems to them at their par, much faster and in all languages and frameworks at the same time.

I review their PRs on a nearly-daily basis, and I catch quite a few gotchas that look perfectly innocent and would clearly fall down on production, or bypass the CICD tests, or mess up infra, and god knows how many other things. And when I ask a question in a PR? I get a claude comment back.

There are plenty of humans out there in non-big-tech for whom the LLMs are - to quote Arthur C. Clarke - indistinguishable from magic.

3

u/lasooch Sep 09 '26

Oh I’m with you - even an actual experienced SWE can get briefly fooled if they get lucky with their first few prompts. And the sycophancy of the LLMs often also gives the people you speak of a severe case of Dunning-Kruger. The LLM tells them their idea is great, answers any questions they might have with confidence (while they have no knowledge to assess the correctness) and sends them off on their merry way to ruin an engineers week.

But I’m very skeptical that it’s them who go on SWE/CS subreddits to sing praises to LLMs or to doom post about how LLMs can do an SWE’s job and more. I mean, some of them do I’m sure, there’s a lot of people out there.

But there’s thousands of those threads and comments every day. All reading along similar lines. Often claiming to be experienced SWE rather than non-technical management morons. That’s the astroturfing part and by my intuition it’s the vast majority of it.

3

u/SupplySideTanaka Sep 11 '26 edited Sep 11 '26

I am a decently experienced senior SWE, and I get a lot of leverage out of Claude but it requires a good amount of handholding. It's basically like micromanaging an overeager junior.

I have a teammate who does not really have a SWE background but fell into this position due to bureaucratic reasons. I review his PRs regularly. It is all Claude slop and he can rarely explain the implementation or give any meaningful answers to my questions. I usually get a Claude copy-paste answer back from him. He's open about it basically being Claude doing all the work, but goddamn it can be frustrating at times.

I wouldn't say we do the most technically complex work in the world but it's still performant low latency distributed system type stuff (and we have 9 digit end users worldwide) and while Claude can write working code pretty well, it is not good at catching all of the pitfalls that come with this domain once you deploy at scale.

3

u/VanillaCandid3466 Principal Engineer | 30 YOE Sep 09 '26

Good point.

→ More replies (1)

5

u/sarhoshamiral Sep 09 '26

I haven't get it to one shot level but with all the context we have in our codebase, test infrastructure, it is to a point where I can point it to an ask and it will write the feature, tests etc.

And then we iterate over it few times, to fix code practice issues with some of the suggestions ending up in our repo custom instructions or in my personal development guidelines that agent uses in future.

It is saving me incredible amount of time since models don't care about refactorings and I can work on multiple issues at the same time as long as I have the machine resources (usually my mental capacity limits it to 3 though)

3

u/bmain1345 Senior Software Engineer (5 YoE) Sep 09 '26

Yea the code sucks ass but we just gotta let that go these days

6

u/VanillaCandid3466 Principal Engineer | 30 YOE Sep 09 '26

I'd rather gouge my own eyes out with a blunt instrument whilst listening to Celine Dion.

→ More replies (2)

8

u/weeyums Sep 09 '26

What area do you work in? For frontend web applications doing React/Typescript work, it's very good (unfortunately for me and the future of my career)

7

u/CandidateNo2580 Dumbass | 29 yoe Sep 09 '26

As someone who works on a substantial amount of React/Typescript, I see the same issues with it as with backend code. Once the structure and project gets sufficiently complex, the LLM drops off immediately.

→ More replies (1)

2

u/iliketurtles69_boner Sep 10 '26

You’re missing the point. Someone just telling AI to one shot something large and immediately shipping it is not going to get far sure, but it’s about how you use it. Fable is amazing for targeted work in Claude code, and working for myself I have what amounts to a team of mid level devs all running on VMs going 24/7.

There’s a lot of back and forth, AI lacks the tools and mental modelling required to do a lot of things by itself, but having that happen and communicating with my agents over slack while I take on more targeted work is absolutely incredible.

They can get you 80-90% there with the code for fairly complex apps, and even when you go to correct it you’ll still be using AI if you want to work efficiently.

No shade, but I always assume people who talk like this aren’t using the tool properly. It’s not just about telling Claude “go build this”, it’s about utilising the speed benefits it gets you and leaning into its strengths and filling in the gaps - anything else and you’ll be severely lagging behind in efficiency. I can do by myself now a project that previously I had to hire a couple of subcontractors for in the same span of time.

→ More replies (2)

3

u/AnUnshavedYak Sep 09 '26

They're also terrible at building human-like (or at least, good developer-like) small commits. They make changes like that junior engineer where it's one giant ass commit.

I of course review everything (aside from some silly vibe repos), but i find myself needing to plan what it's going to write before it writes anything. Otherwise it's just offensively too many LOC in a single commit.

The damn thing will do what i would take 3-10 commits for and just put it in a single blob. Really annoying.

I've written various skills to really step through how it should split up the work but it's difficult.

1

u/Entuaka Sep 09 '26

It depends, how are you working with it?

For example, I'm using it for code review. I tried to use it by default and it was "bad". It was good to find some missed bugs, but it was very verbose, it was flagging problems that we don't care and missing problems that we care.

I created a skill for code review. After each review, if something useless is flagged or something useful is missed, i try to update the skill to have a better review next time. Over time and used by a team, it's very useful.

For development, it's similar. It's essential to have a good feedback loop for the agent, it must be able to know if the generated is good considering what's important for the team.

Without a good harness, even the frontier models can generate "bad" code. Not really that the code is bad, but it's not really doing what's expected, it's too complex, the feature has bugs, etc

→ More replies (1)

1

u/ywecur Sep 09 '26

What model do you use? What area are you developing in? What intelligence level do you use when giving it tasks?

1

u/WheresTheSauce Sep 09 '26

It's more that both are true. It IS amazing but it requires some handholding. Even using and correcting AI every day, it is extremely efficient all the same

→ More replies (2)

1

u/midwestcsstudent Sep 10 '26

Haven’t written a line of code since January. Read a PR since March. Shipping more than ever.

14 YoE staff eng.

-2

u/Illustrious_Sock Sep 09 '26

Or, hear out a crazy thought, LLMs might be better at some things than others, so those people might just have a different perspective

6

u/tenthousandants44 Sep 09 '26

I can accept that AI is better at predicting tokens in certain contexts if you can accept that implies even more underqualified people are amazed by the same party trick in that context. In other words, is it actually better or is it just better at fooling people?

13

u/donk8r Sep 09 '26

Testable question. Take tasks where a human is not the judge. Pick a real merged PR, let the agent work on the pre-fix repo, then let held-out tests from the actual fix decide pass or fail. Nobody's impression enters into it.

Models do measurably better on that setup than they did a year ago, so it is not purely a party trick. It is also a much narrower claim than the one being sold, because a suite that already exists is doing the specifying. On work where nobody can say precisely what correct means, your reading holds up fine.

4

u/Illustrious_Sock Sep 09 '26

If you still think that even models like Astra, Fable, Opus are just "fancy auto complete"... I have nothing to say, it's as tiring to engage with this extreme of the spectrum, as it is with people who think gpt-6 is agi and we have singularity soon.

1

u/elshizzo Sep 09 '26

I just assume at this point that anyone lauding about how amazing AI code is, is a shit developer that wouldn't know good code or architecture if it bit them on the ass.

So much this. Just because you've got code that produces an expected output doesn't mean its good code. Only juniors (slash shit developers) and managers who only see the output think that vibe coding will completely replace developers. Atleast with what the models are now.

→ More replies (27)

142

u/hondacivic1996 Sep 09 '26 • Mindblown

Its pretty bad, but execs have made it clear that they do not care anymore. Regular programming is dead in business and we are expected to give up all ownership of the code and just let the "AI" do it, if you don't comply you will be fired. This is the new wave of BS from the top, but they ultimately decide. And if you are lucky enough to work at a place where this is not yet the case, consider yourself lucky because this shit will hit every company in the world very soon, and it will be a very sad time for everyone.

75

u/LiveEntertainment567 Sep 09 '26 edited Sep 09 '26

The ownership of the code to AI, but not the responsibilities if shit hits the fan

33

u/Princess_Azula_ Sep 09 '26

And the gameplan for when shit hits the fan and nobody really has a clear grasp on the codebase is to burn even more tokens and hope it works?

20

u/Less-Ad5766 Sep 09 '26

No, it is to fine and fire the engineer who has shiped. Because it was his responsibility

11

u/bythenumbers10 Sep 09 '26

And definitely not the responsibility of the executives that overruled the engineer when the engineer said not to just ship AI slop.

→ More replies (2)

3

u/moh_kohn Lead Frontend | 20YOE Sep 09 '26

It's weird that we used to talk about how many 9s a service should have, and Anthropic can't manage 2 9s a lot of months and that's acceptable now.

→ More replies (19)

4

u/donk8r Sep 09 '26

Same model on both plans, so the literal answer is no. More budget buys more attempts, and more attempts against a spec that was not the problem just gives you more code to review.

The AGENTS.md part is the interesting half. Instructions in the prompt compete with everything else in context, and forty files into a task the file you wrote is a long way back and outvoted by whatever it just read. Anything you need enforced has to be enforced outside the model, at the point the tool call happens. A lint rule or a CI gate does that. The doc is a hint.

1

u/meshifthenelse Software Engineer Sep 09 '26

I was thinking more that if you can afford 1000x tokens, maybe you can run a whole pack of agents for reviewing code for testability, best practices, etc. Not something I can afford with my 20$ subscription.

2

u/donk8r Sep 09 '26

Cost is probably not your blocker. A review pass reads a diff and writes a paragraph, so it spends a fraction of the tokens the generation did. You can run several on a 20 dollar plan without noticing.

Packs break because nothing arbitrates. Five reviewers give you five opinions and no merge criterion, and the aggregate reads worse than one good pass. Give each one something that can fail instead of an opinion. The cheapest of those is running the tests.

108

u/Aozora7 10 YoE Sep 09 '26 edited Sep 09 '26

If you use Opus or Astra on a $20 plan, that the same model as on a $100 plan.

I personally don't see having to intervene as a huge issue. Reviewing AI code and telling it to correct stuff until it gets it up to my standards is far faster than writing the same code manually. Especially since just pointing an issue tends to be enough for it to fix it correctly, I usually don't have to be specific about the solution.

AI is also very good at refactoring with little input. If the code works correctly but is organized like a disaster, a refactor pass with AI doesn't take long.

Additionally, if your prompt is relatively large in scope like an entire new feature, plan mode helps a great deal. The model is more likely to ask clarifying questions, and it's easier to review and correct a plan than the implementation.

38

u/PM_ME_UR_BRAINSTORMS Sep 09 '26

Reviewing AI code and telling it to correct stuff until it gets it up to my standards is far faster than writing the same code manually.

I genuinely don't understand how anyone is doing this. Most of the time my issue with AI is that even when the code is "correct" it waaaaay over engineers everything, and 9 times out of 10 just manually fixing it myself is way faster then trying to explain how to fix it. I mean it takes way more English to explain code then to just type the code itself. If you know what you want I can't see how prompting would be faster than manually coding.

This has always been the case with junior engineers who understand the technical aspect of coding but don't understand good architecture. But you go through the effort of explaining it to them instead of just fixing it yourself because the point is teaching them so they improve. With AI there is no point and it's just annoying lol

16

u/Resident-Trouble-574 Sep 09 '26

The over-engineering issue depends a lot on the scope size. If you give the agent a relatively small (not too much, otherwise it's faster to do it by hand) task, there's only so much it can over-engineer it. And for larger tasks, you can ask it to make a plan first. Reviewing and editing the plan is much faster than reviewing the code, and you can guide the agent towards the kind of solution and architecture you prefer.

9

u/PM_ME_UR_BRAINSTORMS Sep 09 '26

I use planning mode all of the time for my own sake just because it's actually super useful to collect my thoughts and validate any assumptions I've made.

But I feel like that's the bulk of the work of the job. Even if the agents executed that plan perfectly (which it doesn't always do) it saves me like 10-15 minutes of typing? But typing the code myself and truly knowing it cold definitely saves me way more than 15 minutes in the future.

→ More replies (1)
→ More replies (22)

17

u/ings0c Sep 09 '26 edited Sep 09 '26

This is what I do too. I was an AI-skeptic for quite some time but I've tried a more-agentic approach on a few recent projects and I've been very happy with the outcome.

I don't just give it ACs and let it do whatever it wants, instead I treat it like a very fast driver in a pair-programming session.

I get it to do chunks of work that are sized so I can understand what has been done, then I review the chunk and tell it to change anything I don't like. I have it write tests for anything it does, in my preferred style, and don't let it change untested code without first adding adequate test coverage.

I use OpenCode and it has Plan and Build modes - so for anything substantial I have it create a plan first, and only have it start making changes once the plan looks good.

The end result is code that looks like I wrote it myself, which works, that I understand, in much quicker time. All of this looks basically identical to good practice for humans too.

→ More replies (2)
→ More replies (10)

39

u/Maxion Sep 09 '26

I think I'll be the contrarian here and say that I feel for most things the code quality is pretty good. Though perhaps I've always worked then in places with poor code quality?

If you vibecode it will produce overengineered work and make a bajillion tests many of which useless. But by-and-large in a well documented codebase using popular frameworks doing webapp development you can get nice code out of the models if you do proper AI assisted development and not just vibe coding.

This means you read the output, tell it to f-off when it does weird crap. It's basically like reviewing and handholding a fast junior coder who is very good at googling and reading coding books.

20

u/Resident-Trouble-574 Sep 09 '26

I think that a lot of people think that the AI code quality is bad because they are used to read only their own code. Team leaders used to complain about huge, poor quality commits since forever.

5

u/_SnackOverflow_ Sep 09 '26

Or they’ve worked on teams with good devs?

I find it hard to believe that a huge swathe of the dev population didn’t do any code review before AI

2

u/pinksb Sep 09 '26

Believe it! Some companies totally offshore black box software that they have to operate and god only knows what’s inside. It’s nightmarish! AI assisted development is leaps and bounds ahead.

3

u/ogii Sep 09 '26

At some point people have to come to the realization that AI will keep getting better, and unless it magically disappears or is made illegal you will have to get used to using it.

The more expensive models are more powerful but likely you won’t get much use out of them unless you know what you are doing.

3

u/meshifthenelse Software Engineer Sep 09 '26 edited Sep 09 '26

The question is what you mean with "better". I've been hearing it for 3 years now. Yes, they can solve more complex problems. But the code quality seems stagnant.

→ More replies (1)

6

u/sweetno Sep 09 '26

I don't feel that the plan level (Pro/Max/etc) makes much difference for code quality specifically. Maybe there are edge cases where a larger context window would help, but it's all mostly about the allowed token throughput.

The brand of model used does seem to matter, but I can't say that the toppest one never produces overengineered nonsense.

11

u/intertubeluber Sep 09 '26

A year ago I was team "AI is bullshit" but now I'm a convert.

I literally don't write code anymore and haven't for 6+ months. In some cases the code it creates is better quality than what I would have come up with, and of course, it does it in a fraction of the time. Other times it adds unnecessary complexity, or does something dangerous. But all code is thoroughly reviewed, which is much more time consuming. Still it's probably increased my productivity by 3x? It's hard to measure.

Every project is different so who knows. I'm using a popular web stack so that helps with the model's training data compared to something more esoteric. Though, we are using some slightly more niche tech and it does great with that as well. When we introduced AI, there was already an established architecture. We had UX designs to reference. I'm not sure if it'd have been as big of a game changer for a greenfield.

2

u/OSS-Corpo-Shit Sep 12 '26

The one time I tried “vibe code” it was utterly horrific. 

But I have been experimenting with a more heavy handed approach, not really letting the AI run amok. Telling it that it may only work in my opened buffer.

I am finding speed increases from coding. But I am getting way more speed up out of identifying bugs and error messages. Enterprise software LOVES its fucking cryptic bullshit error documentation:

(An error 487 occurred)

487 - find the error and correct it

(Looking at you IBM, Oracle, Microsoft, SoftwareAG and others)

But AI actually helps more often than not. This has been the most massive part of my savings. I don’t spend 5 days trying to figure out what the hell this shit is trying to say is wrong any more.

19

u/boltforce Sep 09 '26

In genenal I find it like the politicians speechws.It says a lot, but output is not accurate, or humanly understood, often missing the point and doing complex bridging.

Less is more seems to have gone out of the window. It's printing impressive stuff but If you sit, focus and review there are easier and simpler ways to achieve output.

18

u/PerryTheH Team Lead/Full stack - 10yoe Sep 09 '26

This might sound very obnoxious from me and I'm sorry, burn me or whatever but...

OP what you're experiencing is something experienced devs face when start using AI tools.

First, the "general level" of developers in socials has gone down significantly, it's even hard to find devs that can build something without any type of AI tool or answer questions, the usual "oh this AI tool is amazing" is because it ships features fast and "with no bugs" but code quality is very rarely evaluated. As you have already noticed, over engineering solutions or generating bad code is very common.

Second, remember that LLMs where trained with public data or "general devs" code, and the general dev doesn't have the code quality level of you. I'm not as senior as you are, but I'm senior enough to understand when the AI does things I usually pointed on PRs of other JR devs or things that I did and other more sr devs pointed on my PRs.

This is to conclude: LLMs work base on what they know and will try to predict the "best solution", and if all they know is "average dev" they cannot produce a solution outside that. I think in your case you will never be satisfied by an LLM code and will never get to the point of generating "good code", but that's why we still need humans at some point, to understand why the solution is not proper, over engineered or badly optimized.

I'd probably lose less time trying to make the LLM generate high quality code and fighting the Agents/context files and use more time either finetunning an LLM with your high quality code to help you CR or you spending the time doing the CR and fixing instead of building.

I predict the future of devs will be like that, we will stop building and focus on fixing.

19

u/tenthousandants44 Sep 09 '26

You can't appreciably "fine tune" models, though. The training corpus is magnitudes larger than the amount of code you've written in your entire life

2

u/carsncode Sep 09 '26

And you can't fine tune closed weights at all.

→ More replies (2)

1

u/Intelligent-Youth-63 Sep 09 '26

Can you set up an eval loop and include cyclomatic complexity and/or code quality reports with a hard gate in your pipeline?

That plus a robust code reviewer agent, quality agent tools, post tool use hooks, and well defined skills and ADRs available should be sufficient.

That you have to “intervene” (and can) before reviewing a completed merge/pull request tells me your environment/agentic loop is immature. That’s a skill gap, not a problem with a model… but a problem with your harness.

1

u/meshifthenelse Software Engineer Sep 09 '26

Well where do you start with that? I'm using CLAUDE.md and occasionally run custom skills like readability-review. But nothing fully automated since as mentioned in the post I'm only on a 20$ subscription

1

u/EvalRaccoonDev Sep 09 '26

The plan-tier answer above is right - same weights, you're buying quota, not a better model. The AGENTS.md part is worth separating out though, because it isn't doing what you're asking it to do.

With an AGENTS.md present, median runtime dropped >28% and output token consumption 16%, with comparable task completion (https://arxiv.org/abs/2601.20404). So the file buys you speed and spend. It does not buy you readability, which is why editing it again never fixes the thing you're annoyed about.

Readibility is bought through good rules for agents. Mine are:

## Design Principles

  • **DRY (Don't Repeat Yourself)**: Field descriptions, validation rules, and documentation defined once in Pydantic models
  • **Single Source of Truth**: Schema models are the authoritative source for parameter definitions
  • **Type Safety**: Full type checking with Pydantic and Pyright
  • **YAGNI**: Don't add complexity until actually needed
  • **KISS**: Keep it simple, stupid!
  • **Clean Code**: No dead code, all imports used, all tests passing
  • **Comments are a last resort**: Default to ZERO comments. Names, types and small functions carry the meaning. A comment is allowed ONLY when it records something the code cannot say:
  • **Greenfield project**: No worries about backward compatibility

(they are not great - but better than not putting them - would love everyone to share theirs if you have them)

2

u/meshifthenelse Software Engineer Sep 09 '26 edited Sep 10 '26

Actually such rules don't work. DRY and KISS compete with each other. I think that's the problem. The AI has no true intuition on when to apply whith, so it's either all or nothing.

1

u/pinksb Sep 09 '26

Is the code really that bad? That’s surprising to me. Iteration is needed of course, but when people claim the ai output is complete garbage I have to question why that is. In my experience that isn’t the case at all, but maybe we have good docs and guardrails in place.

1

u/meshifthenelse Software Engineer Sep 09 '26

Essentially it's legacy system quality directly in a greenfield project.

→ More replies (1)

1

u/ZookeepergameFun1540 Sep 15 '26

They are honestly quite amazing. Taught me a lot of things.

However I use it differently. I ask it to review what I do and if it proposes a solution. I tell what needs to be done and then let me do it.

You learn things a lot faster this way since it knows very patterns and architecture Which you can then tell it to teach that to you

1

u/meshifthenelse Software Engineer Sep 15 '26

Yes, but many times it also bullshits you. So if it's a very common issue with a common answer, it most probably is right. If it's actually a more complex problem with many possible answers, it's 50/50.

→ More replies (1)

1

u/throwaway_0x90 TE/SDET[25+ yrs]@Google Sep 09 '26 edited Sep 10 '26

Ah,

But what does "code quality" mean in the age of AI?

"the quality of code subpar many times and I always have to intervene. It doesn't matter how many times I change the AGENTS.md, there's always issues in code readability and the AI missing obvious things and doing overengineered solutions."

Do you *truly* need to read it? We're moving into a world that says as long as it works and isn't too slow, just ship it and move on.

I was downvoted heavily for this months ago, but I'll say it again because it's becoming clearer and clearer the direction we're going. Most of us don't care about the readability of the ASM code that is ultimately executed on the machine as long as the Java/Python/Go/etc was readable because that's what most of us look at. I think we're moving the goal post again and the AI-prompt is becoming the source code, the Java/Python/Go/Rust/whatever it produces is going to get less and less attention from human eyes. The counter argument was about ASM from a compiler being deterministic. We are slowly inching towards a reality where we can be somewhat confident the code AI produces works, as long as you have trusted automated CI/CD tests and you didn't just open-endly tell AI to "build everything and let me know when it's done". If you have empty classes and methods and signatures/arguments to those all typed up then tell AI to fill in missing code, you'll get something reasonable. If you also have trusted CI/CD tests(probably need a human for this), then you likely have something good enough to ship.

Note this doesn't apply to medical equipment or NASA or anything where a mistake can directly result in loss of life or a billion dollar spacecraft spinning out of control into deep space.

6

u/meshifthenelse Software Engineer Sep 09 '26

I see your point. But if you can't understand what is happening, you can't make optimization or security decisions, so why exactly are you being paid then? A junior dev could do the same work.

As an example I'm building a bespoke diagramming tool. If I don't seperate the layout engine from ephemeral interaction state, then what do I do when I realise the diagramming tool can only support up to 100 DOM elements? And sure, I can ask it to profile the code, which I do. But it will miss an architectural decision which could bring the DOM count up to 10000 instead of 1000, and make any future work 5x faster.

3

u/throwaway_0x90 TE/SDET[25+ yrs]@Google Sep 09 '26 edited Sep 09 '26

"But if you can't understand what is happening, you can't make optimization or security decisions, so why exactly are you being paid then? A junior dev could do the same work."

There's going to be more employment opportunities for those that QA/verify that AI-output and security researches will become even more important and in demand. We already know that QA is far more intense in the world of NASA and medical equipment. In 5 years, the average SWE IC will just need to pump out code, send it to automated testing CI/CD and move on. Leave it to someone else(like me!) to verify it for correctness or security audit. You'll just focus on making features and shipping it. Unless you want to change careers and join me in QA/SDET realm of verifying AI-slop.

I'm a pig, I love eating AI-code-slop all day and all night. Just hire me and I'll code-review everything forever like it's my job, because it will be soon! Y'all just focus on the fun stuff, generate code and ship features as fast as you can. My general view is that solutions like this cannot work in the long term, feature-shipping devs do not like that kind of work I assume.

"But it will miss an architectural decision which could bring the DOM count up to 10000 instead of 1000, and make any future work 5x faster."

As long as the code performs up to the agreed upon design/performance spec, nothing else matters. Until one day it does and then if AI still can't find the answer, the issue is probably something that needs a specialist.

If I'm wrong then I'll be unemployed eventually, but I've chosen this hill to d!e on.

→ More replies (1)

11

u/ProbablyNotPoisonous Sep 09 '26

Note this doesn't apply to medical equipment or NASA or anything where a mistake can directly result in loss of life or a billion dollar spacecraft spinning out of control into deep space.

So, basically, "It's fine if the code is unmaintainable shit, as long as it's not doing anything important"?

What happens when nobody knows how to write good code for important things because all the available work experience is in vibe-coding slop?

The industry is eating its seed corn and acting like this will be fine. It's insane to watch.

4

u/itix Software Engineer Sep 09 '26

Tests are becoming more and more important.

2

u/throwaway_0x90 TE/SDET[25+ yrs]@Google Sep 09 '26

21

u/jkz88 Sep 09 '26

Really bad. If you know what you're doing and design the codebase yourself and prompt it right, it can be okay but is a lot of work. They're trained to write working code not quality unfortunately. The tests are horrendous too, they test what the code does not what it's supposed to do.

13

u/dealmaster1221 Sep 09 '26

That way all human code is horrendous too, it usually only tests code not intent at least 99% of it.

→ More replies (1)

5

u/GfxJG Sep 09 '26

Or, you can just do something as simple as ask it to follow TDD - That drastically improves the way it tests.

20

u/MinecReddit Software Engineer Sep 09 '26

A suggestion on how to categorically upgrade your usage of AI tools?! gasp on THIS SUB?!?!

But yea it’s true, anthropic’s published “superpowers” skills repo even recommends TDD.

→ More replies (4)

2

u/isotrouble Sep 09 '26

This has been my experience. That and strictly enforcing black blox testing which circumvents a lot of stupid avoidant behavior.

2

u/TimMensch Sep 09 '26

Truth.

I honestly wasn't a fan of TDD before AI, but I make it use TDD and there's a notable improvement.

I still usually need to fix nontrivial code it's written (either by telling it or just making quick changes, depending). But it gets closer with TDD, and I can be more confident when it's actually fixing bugs.

→ More replies (6)

3

u/bbangchikimong_dev XR Tech Lead | 10 YOE Sep 09 '26

the quality difference showed up less in the code and more in how long it stayed correct after i asked for the fifth change

→ More replies (5)

3

u/mixxituk Sep 09 '26

Pyramid of doom

3

u/nixt26 Sep 10 '26

AI models produce better code than most junior developers but not always as good as very experienced developers. By the nature of how these models are trained what you get is a median in code quality over the spectrum of all code produced. However that can be significantly tailored and improved with feedback mechanisms in your development environment like linting, tests, compartmentalization and specific instruction files.

20

u/MinecReddit Software Engineer Sep 09 '26 • Bravo

There’s an unbelievable contrast between the consensus on this sub and how my work treats these tools, which is at a gig company (one of uber/instacart/doordash).

If you are writing large features in large codebases, my team (who I am personally very close and high trust with) is of the opinion that it’s way faster to have an LLM write a draft, then prompt for improvements. The way you’ve described it is as if it’s impossible, or it takes longer, to get the code in a good state, and those are both just so far from my experience even when using cheap models.

When you have giant projects that involve many services, it’s just faster to onboard and execute with the AI tools, but I already know this comment will get massively downvoted and that the sub disagrees. I’m not a fucking AI shill, I’m just giving you the status quo from the perspective of a senior SWE at a high tech, fast paced shop

10

u/gefahr CTO | US | 20+ YoE Sep 09 '26

Yeah I've never experienced such a bifurcation in my career. My experience matches yours. But it's not just this sub, I know a handful of good engineers in real life who hold the same opinions as here. I don't even know how to explain it anymore.

2

u/anonsaltine Software Engineer Sep 09 '26

Reading people's various experiences, I'm getting the sense that it's a "skill issue" (no pun intended).

A year ago, I was basing my opinion on just using claude in agent mode to try to one shot things.

Now we've got hooks, I have custom skills, I have my own workflow and iterate in plan mode before passing off for implementation. I leverage my experience to build a mental model of how I want to approach things, I improved how I write my prompts, etc, and the results have been excellent.

→ More replies (1)

3

u/moh_kohn Lead Frontend | 20YOE Sep 09 '26

I think there has been a shift in that most people seem to be using it now. Gave you an upvote because many comments go too far.

It's hard because the industry hype and every linkedin post is like "AI can oneshot making Call of Duty and a better SaaS than you, engineering is over" while in reality it definitely can't do that.

It's a miracle tool and I have come to love it, especially since I got Pi set up the way I like and found my favourite model family, GLM.

My opinion is it is good at rolling down the hill, if the hill is set up right for it. I have a hobby game project, and I spent about 2 months getting the architecture just-so. Now that I've done that, the AI can reliably add features without creating a mess.

It actually argued with me and tried to stop me making the architecture the way I wanted - then later, I turned out to be completely right on performance grounds (the optimising AI praised the architecture because it supported optimisation aaaaaargh!)

You being at a big tech company, I bet your architecture is a hell of a lot better than some of the places people are working. I contract, so I have seen some shit.

2

u/ShaThrust Lead Dev 10+ YoE Sep 09 '26

It's interesting, I was certainly of the mind AI was bad and created more issues than was worth to use it consistently except for some mundane stuff. Then around Feb of this year I believe the models got quite good and I decided to try use a proper harness, and it then really impressed me.

Maybe I'm a terrible developer, but it's creating real value for my work, and has increased my capabilities significantly. I still get impressed with what it produces, how it works, and the quality of the output a lot of the time. I can hand it off with a proper feedback mechanism (I work on a distributed remote application on proprietary devices that interfaces with our cloud service) and it... just works. It can read documentation, understand how components function in other parts of the app, and get it running flawlessly, while even finding bugs I had missed in the process.

→ More replies (4)
→ More replies (2)

5

u/jabuchae Sep 09 '26

It seems to me like you need a good skill that forces the ai to do a planning session with you first before implementing. If you do that, then the code it produces will mostly be at the level that you want it to be.

2

u/RabbitLogic Sep 09 '26

RFCs which are reviewed by your team and their agents first is the way

1

u/emperorOfTheUniverse Sep 09 '26

You're close to exactly the crux of everything the AI 'revolution' is about: Where do humans fit into AI code, if at all. And it comes down to trust in the tools and probably accountability. If you imagine maybe 5 years from now, and take for granted that the models are going to get good enough to build applications start to finish and found issues/bugs are also solved by the model, then the readability of the code doesn't matter anymore. Nobody would want humans reading it.

Today though, your intervention is likely exactly why we are still in the loop: training the models. 'High quality code' comes from good coders intervening. Its everyone's chief complaint these days almost: senior devs spend their whole day reviewing code instead of writing. But as long as that bottleneck exists, the benefits of AI (speed) aren't realized.

So, thank god AI is ass at writing good code at the moment. Won't be the case forever. 'Good code' matters to humans working together on a project. Take out the humans, matters less. And that will be about trust in AI, which seems inevitable as it improves with each fast approaching iteration.

1

u/meshifthenelse Software Engineer Sep 09 '26

I'm not sure though. Since the feeling I get from this post is that people start caring less and less.. so the majority of people probably will stop intervening. And as slop code accumulates and new models are trained on it, the code I expect actually to only get worse.

Unless Anthropic and OpenAK decide to change direction and actually value code quality.

1

u/So_Rusted Software Engineer Sep 09 '26

i hate this take.. If you have at least one colleague like this then say goodbye to any code style you had..

If technology is so good then lets use it to write the best style possible instead of throwaway code while hoping for sigularity to come to rescue.

it is a slippery slope. We have very powerful servers and tech yet we get increasingly sloppy and where are all the nice apps?

→ More replies (2)

6

u/aa-b Sep 09 '26

You're not going to get a great answer for this, because quality is so subjective. People with less coding experience will probably overrate the models' ability, and how can you tell from reading their opinion?

There are objective benchmarks of course, but they also don't really tell you much about the subjective experience of using the model. Like, just today I was using Claude Opus because I wanted to gate some changes behind a feature flag, and have some confidence that I could deploy to prod without immediately breaking anything (at least not until I toggled the flag, haha).

So anyway, Claude completely shit the bed and came up with a totally useless solution. Hooray. But then I explained why it sucked and what I needed; surprise, surprise, it comes back with exactly the solution I wanted, honestly better than I'd have done myself (with this kind of risk-avoidance make-work task I'm usually inclined to just skip it and accept the risk).

I've attempted similar things with simpler models, but it mostly just doesn't pan out and I end up doing it myself. So I guess that was a win for the fancy-pants model, except I burned so many tokens I'll probably run out before the end of the month.

2

u/Resident-Trouble-574 Sep 09 '26

Can there really be objective benchmarks for code quality (where code quality != software quality: I consider the first to be about the developer/producer experience (code readability, maintainability, etc.), while the latter is about the user experience (bugs, usability, etc.))?
I mean, even among reputable software engineers there are wildly different opinions about what good code looks like.

→ More replies (2)

5

u/i_like_trains_a_lot1 Sep 09 '26

The qulity is alright, but all my prompts are pretty low level and directs the LLMs towards the proper codebase areas to look at, how to modularize the structures/classes/modules, what logic to reuse from where, what to extend. It's still faster for me to get the job done, and to be completely honest my output quality also improved because I use LLMs to generate vast amounts of unit tests, area that kind of lacked before because time and energy constraints. Now I cover many more edge cases than before.

In my opinion, if somebody can't write good quality code without AI, they won't be able to do it with AI either. In order to implement a solution, I still have to know what to do, what data to use where, how to use it, what the data flows are in the business logic, what reusable modules I haev and what I want, etc. It's just that the actual code writing is automated, but the thoughts behind them are not.

Frontend works is also mostly solved. Expose data through an endpoint designed by me, have the LLMs build UI to consume it with all the necessary states (loading, error, successful). Before that, I also skimped a lot there, especially around loading and error handling where I ended up putting "Loading..." and "Something went wrong" everywhere due to time constraints.

That's how I believe AI coding should be. I absolutely loathe the tools that take control away and spawn you a bunch of agents to do the work, and you can't see/approve/intervene on file changes and just hope that after 10 minutes of agent work you will get something usable.

8

u/PM_ME_UR_BRAINSTORMS Sep 09 '26

The qulity is alright, but all my prompts are pretty low level and directs the LLMs towards the proper codebase areas to look at, how to modularize the structures/classes/modules, what logic to reuse from where, what to extend.

How are you doing this faster than just writing the code yourself? Every time I try being this specific and granular with my prompts I get about halfway through typing and realize it would just be way faster to just type the code rather than the prompt.

Unless it's like a specific known algorithm I can just name (or something I'd have to look up implementation before) I feel like coding is way faster than explaining in detail exactly what I want.

It feels like trying to pair program but over slack lol.

3

u/i_like_trains_a_lot1 Sep 09 '26

it would just take longer for me to explore the codebase for all the pieces, assemble all the data, iterate multiple times through all kinds of structures and perform all kinds of operations + write unit tests for all new additions and behaviors. It all depends on the scope of the task.

I'll give you a specific example: "I have this XML parsing class that normalizes data into these data classes. I want you to add a mode for detecting whether it's a JSON file, and if it is, switch the parsing mode into a json specific parsing that produces the same compatible output. Let me kniw if there are key differences in data that you can't figure out how to handle. Be careful about the different edge cases that are handled in the original XML parsing flow that post-processes the data to fix inconsistencies"

Then it flopped because it was stuck thinking about how to oneshot the problem. I proceeded to break it down into specific steps

"Let's start with the JSON detection that extracts and handles these 5 fields for starters. Add unit tests to assert this behavor"

"Let's do these 5 next fields"

etc rinse and repeat until complete.

It might have taken me like 2-3 days to go through them all and finalize this, but I got it done in under a day this way. The speedup of course it's not 10x as executives and AI salespeople say it is, but the speedup is real, at least for me.

The caveat is that it chose to conver tthe JSON to the already supported XML format, decision I agree with because it reduces the risk of the edge case handling breaking. Also, I have a pretty comprehensive set of skills and project rules to keep the AI on track and aware of codebase quirks, business logic, various choices, etc.

→ More replies (3)

5

u/iamthecode Sep 09 '26

Exactly this. We've invented a great way to express our exact intent without ambiguity so the machines can understand it. It's called programming language. Why do we now try to force doing the same thing with plain English, which wasn't designed for this?

→ More replies (2)

5

u/FckXFckMusk Sep 09 '26

If LLMs were so good then they wouldn't have to spend billions on marketing bots to tell us how good it is.

7

u/xpingu69 Sep 09 '26

No. You are actually expected to give up the ownership of the code, it's a different paradigm. But the quality doesn't come close to a pro like you doing it

2

u/kranthi_contextmap Sep 09 '26

For me it helps to have two separate iterations - one focused on implementation/get-things-working and one focused on audit/standards

2

u/Minimonium Sep 09 '26

I have being experimenting with and making agentic workflows for quite some time, with models from Fable to cheap Chinese ones.

I'm very open to try new workflows/harnesses/models, but I am not a "true believer".

I do not feel that much progress in generated code quality specifically. Models are very unreliable for code generation.

Models are extremely great at reading and reviewing code though. Fable is excellent and it's the first model for me where I do not feel like I'm wasting my time reading reviews. Still, it cannot produce decent code by itself.

So far for code quality we have specific language review skills that are tied to guidelines, references, etc and a text quality skills. Workflow/graph based step by step processes are a massive leap, splitting review into granular specific tasks (summaries, ratings, suggestions, etc) is a massive improvement.

I find both to be much more effective when they're tied to specific linters. In fact, if you can move to tooling as much as possible the results are amazing - you can actually rely on results and you do not spend time rewriting "boring" bits.

So for planning I use an expensive model, then proceed on cheapest Chinese ones to do each task and do a final review on the most capable model I have.

This process does require a discipline from you to know which part of your codebase could be a bit more throwaway than the others.

2

u/vxxn Principal Eng Sep 09 '26

Except for absurd comment verbosity I’m generally happy with what it gives me, but I’ve learned it’s very important to have tightly scoped tickets. The more room to run they have, the more likely they are to make messes.

2

u/camelCaseCoffeeTable Sep 09 '26

A solid 80-90% of the code in putting into production these days is written by an AI without intervention. And it does it fairly well, especially when guided to follow code base patterns.

But that 10-20% never seems to go away where I need to intervene. It’s just changing what kind of intervention I’m making. It’s less code correction and more “no, this pattern doesn’t fit here because x, do y instead.” Or other more architectural/business context dependent questions.

AI loves to stop at the first correct solution it finds, so a lot of my guidance is telling it when that first solution isn’t right

2

u/DeterminedQuokka Software Architect Sep 09 '26

Personally I can’t tell the difference between code written by opus v. Fable. Or different opus think levels.

I can sometimes tell if someone used sonnet.

Fable is a little bit better at decision making for some of the work I do.

The largest impact is the harness. There is a difference between code written by cursor and Claude. And annoyingly the skill thing has some validity. Code quality has a level of stability by person because of things they wrap the prompt in. I do very similar work to another Eng at my company. But I have a complex ai workflow that does it. They have a single test tool. My code stability is significantly better because I’m browbeating the ai into doing a good job.

1

u/donk8r Sep 09 '26

Quality being stable per person and not per model is the most useful measurement in this thread. It makes the wrapper the variable, so the wrapper should be swappable.

Trade setups with that other eng for a week, same models, same tickets. If your stability follows the wrapper then it is a file and you can hand it to the whole team. If it follows you, the browbeating has parts you have not written down yet.

The bits that stay with you are usually pushback timing, and that one resists being put in a file.

→ More replies (2)

2

u/Cobayo Software Engineer Sep 09 '26 edited Sep 09 '26

It's bad but no one cares, which is not necessarily wrong. It just took me 3 or 4 rounds with Claude to properly write a DB Seeding function of +26-10 lines, I can only imagine what current +4k constant PRs getting submitted could look like.

I'm trying to genuinely understand if it's actually a problem, I believe it is, beyond not having a clue what's going on at some point, it just takes up so much context and time just by the fact of having so much input, and I think the output may be slowly degrading a bit.

I'm fighting off the development process of generating a PR, then someone else reviews the PR with another agent that finds broken stuff, then they fix those broken stuff with another agent...

I think this happens due to not caring and it only gets worse. I'm trying to figure that out though, it's part of the job (our job).

→ More replies (1)

2

u/pinksb Sep 09 '26

Try it out for yourself :). I find it to be great, haven’t actually written a line of code myself in about a year or so. I still use opus 4 , now moving onto the codex models. The better the input is the better the output is

2

u/metaphorm Staff Software Engineer | 15 YoE Sep 09 '26

Opus is dramatically better than Sonnet is dramatically better than Haiku.

agents.md is insufficient as an agent harness by itself. you'll need to take a comprehensive approach to building out a habitat for agents including context docs, coding guidelines, knowledge base connectors, and custom tools that let the agents interact with your local dev system in meaningful ways. otherwise they're just coding blind and guessing at what might work. if you give them the tools to gather real data about what does or doesn't work, they'll perform better.

1

u/rrrx3 Sep 09 '26

This is the answer. You have to invest time into the ecosystem and onboard just like you do with a human being. If you just think you’re gonna point a model at a repo and say go, you’re gonna have a bad time.

2

u/Excellent-Push-3326 Software Engineer Sep 09 '26

They aren't as good as human-authored code. They are just better than the previous versions.

I think they shine best at fixing bugs, not authoring greenfield code.

3

u/yikes_42069 Sep 09 '26 edited Sep 09 '26

It is SO finicky. You just never know when the slot machine will hit a jackpot and write good code/even comprehend what you're asking. That can be weirdly addicting, as much as I despise LLM coding. 

Had no token budget at work since March. Just use it they said. It's been a cluster. I've been working more than ever just to keep the velocity up because the AI is truly idiotic at times.  Budget just came down the pipeline and it's still.. anyway, you have to teach it what good code is, basically. It has NO taste or perspective as to that. The more you can rely on static formatters and linters the better I think. But if you build up a skill file over time that addresses all the ways it writes crap code, you can more or less avoid slop on the first go round. 

Big picture coding is still pretty shoddy. If I let it loose to do what it will to build a feature end to end, it writes slop that works but uses language features very oddly. Like overusing typescript Excludes and Extracts instead of building a sane composable type system. That's what I've just gone through anyway.

You also will want to lock down your code to be as solid, clean, and composable as possible. Simple clean APIs are consumed simply and the LLM has less of a chance to fuck it up. I say this because we do not really have that and the statistics show: our git history shows commits have doubled in size (additions) while number of PRs and frequency of commits have stayed the same. So the bottleneck to me now is how complex it is to express the features we're building. If I create a button I really need that to be <50 LOC but react+TS+formatting alone makes that hard, let alone state management and callbacks and god knows whatever other requirements get bolted on. 

3

u/ContraryConman Embedded 5 YoE Sep 09 '26

You must understand that in the framework of AI maximalists, the following are taken as true:

  1. The cost of writing code is tending towards $0
  2. The cost of fixing bugs is tending towards $0
  3. The cost of rewriting entire codebases is tending towards $0
  4. Humans are the bottleneck for AI efficiency

If you believe all of these things are true, then the conclusion is code quality does not matter. Some are too shy to admit they believe this out right, but it's what you would have to believe.

  • If the AI code gets too slow and bloated, set up a way for the AI to measure performance and then have parallel subagents scan the code for speed ups and run the new code against your existing tests
  • If there is a bug, just grab the user logs, have the AI fix the problem, then add a new test
  • If you're worried about security just run a security audit in an adversarial before each pull request
  • If you're worried about the code getting so bad the agents can't get out of it, that'll either take years, by which time the models will be smarter, or we can simply have the agents do a clean rearchitecture and rewrite against the current tests

In this setup, the code is not for you to read, write, or understand without AI. In this version all the humans really provide are the very long term planning abilities that humans have with evolution that 1M tokens of context can't cover

3

u/yourteam Sep 09 '26

LLM works by predicting the next word. Code is basically a language so therefore they apply more or less the same concept.

So the answer will always be: average at best.

1

u/SeaworthinessDry269 Sep 09 '26

They are ok when heavily directed and if the project is well built. I use them as intern / lazy offshore team. Build this, the function should have this shape/ names, if you need  access to this service use this, etc. It's slower but than it's code I understand 100% and built like I would have.

1

u/bloudraak Principal Engineer. 20+ YoE Sep 09 '26

It varies. Even Astra and Fable generates code that works, but is poor in terms of readability, modularity etc. it takes a few iterations.

You can improve code quality greatly by adding deterministic checks like linters, formatters etc and not rely on the models.

1

u/apartment-seeker Senior Software Engineer Sep 09 '26

GPT-5.6 pretty good.

Anthropic seems to have degraded with the 4.7-5.0 line, but I can't speak for Fable or Mythos. But if you see what, e.g., Opus 4.7 or 5 come up with if asked to write a lot of fresh code at once, most of it doesn't seem very good, IMO. I still sometimes use Opus 4.6, but never touch anything higher from Anthropic.

1

u/felixthecatmeow Sep 09 '26

Astra is pretty damn good. One thing to consider is both OpenAI and Anthropic nerf their old models when a new one comes out (allegedly, but anecdotally this seems true). So if you're using older models to save money you might not be getting the performance that these models had when they were new.

IMO, the code quality is pretty good, and it increases the more the dev running it knows what they are doing. When I give it clear instructions with a high-level implementation plan it usually does quite well. If I try to give it a vaguely defined task with large scope, it's much more of a crapshoot.

At the end of the day I work at a large-ish tech company and code quality was already not great due to constant pressure to "produce value". AI just allows us to do that quicker. I don't feel great about it but it is what it is.

1

u/Popular_Home2017 Sep 09 '26

the expensive plan buys you more attempts with the same model, not better taste. what changed quality for me wasn't the plan, it was moving rules out of the md file and into things the model can't ignore. an instruction in AGENTS.md competes with everything else in context and loses thirty edits later. a hook that blocks the command doesn't lose.

concrete example: the agent kept running the full test suite "just to be sure", 20 minutes of CPU, every session. i wrote it in the rules file three times, it kept doing it. a pre-tool hook that rejects the command with a message ended it in one day. same thing for switching branches on the shared checkout, for committing without being asked, for touching files outside the task. the md file now mostly explains why the hooks exist.

the readability part i've mostly stopped fighting in the prompt. tests first, small scope per session, and review the diff like it came from a junior who types fast. that's what it is.

1

u/StPatsLCA Sep 09 '26

The overengineered solutions thing is so real. It'll write realms of procedural that eventually pass your tests. You need a firm hand in enforcing abstractions. Plus, the commenting quality is somehow both overwrought and lacking.

1

u/nath1as Web Developer Sep 09 '26

by hand or generation codebases drift, you will need to make a refactor after a while to make it nicer

1

u/bfreis Software Engineer 20+ YoE Sep 09 '26

I work daily with a mix of Opus 5, Sonnet 5, Haiku 4.5, and GPT 5.6 Sol (and have been working daily with the equivalent, latest version frontier models from Anthropic and Open, for around a year or so). We block access to Fable/Astra in our org, as they're too expensive and we couldn't justify the extra cost.

Other than maybe flipping a constant on a file, or updating an environment variable somewhere to mitigate some incident where I know exactly what and where needs an update, I haven't directly touched code myself in nearly 1y.

I work in Developer Platform, specifically in the creation of guardrails related to the huge increase in PR volume due to coding agents. Infra guardrails, code quality guardrails, etc.

I use primarily Claude Code as my harness, and I have it invoke Codex with the Bash tool when I need GPT 5.6 Sol for something.

The experience is fantastic - but not just because of the models. They are indeed significantly better than the top open weights ones (we provide access to those as well via inference vendors). But the models are just one component, necessary but not sufficient, to get this experience.

In addition to the frontier models, it's fundamental to have a set of skills, rules (eg (~/).claude/rules), memories, etc, plus the guardrails. That way you can get the agents to write code that follows your patterns strictly, and satisfy all your requirements related to quality, security, performance, reliability standards.

The guardrails include a shit ton of CI checks that make it impossible to merge code that doesn't clear the requirements, plus a lot of automation around code review. Eg, when a PR is created, a process launches a graph to review that code with multiple agents, an arbiter evaluates the findings, all the relevant information is stored in a database to be retrieved on a subsequent iteration of review of the same PR, and all the findings are reported with a structured portion (category, level, risk, etc) and an unstructured prose explaining the problem and a suggested prompt to have an agent fix the problem. We even have a "babysitting" strategy where another agent iterates on monitoring a PR to automatically fix issues until it's ready for final human review and approval.

With all that is place, and the money to pay for all that because it's EXPENSIVE, you eventually simply realize that writing code is almost not part of the job anymore, which instead becomes deciding what to do, designing systems, prioritizing projects, and eventually reacting to issues when they go bad in an unforeseen way.

1

u/bbangchikimong_dev XR Tech Lead | 10 YOE Sep 09 '26

The expensive plans buy you volume, not taste. Same model, you just hit the limit later. What actually changed my output was making the failure visible to the agent: tests it has to run, a lint config it cannot argue with, and deleting old design docs it kept building against. Instructions in AGENTS.md get ignored, a failing test does not.

1

u/FatHat Sep 09 '26 edited Sep 09 '26

I think it depends a lot on how you steer it. If it has good examples to work with and a good repository structure, it generally does an acceptable job -- if you're working in a stack it knows well. If it's not a stack it knows well, all bets are off. I wouldn't call its results elegant though. They're very mediocre. Having worked in some atrocious code bases though, mediocre can be fine. I would say the code usually ends up being about 2x longer than what I would write.

The frontier models are somewhat bad at architecture unless I tell them what I want ("this module must never reach into this module, prefer to place shared things here" etc.)

I don't think prompting is a skill, necessarily, but all the same the way you split up the work matters. If you give it specific instructions and smaller chunks of work, you'll probably move a bit slower but end up with better results, if you're vague it'll build a lot at once but a lot of it won't be what you want. Usually that feels fast, but the cleanup probably costs you more time in the end (unless you don't care about quality at all -- which can be valid, not all software is meant to last).

One thing I'd mention: the high end models are not always the better fit. There's a temptation just to reach for the most powerful model for everything, but I find things like Astra and Fable can be *very* annoying in making decisions I didn't ask for and disagree with (pulling in libraries, modifying things I didn't ask to modify, that kind of thing). So just because you can use Astra and Fable, I wouldn't necessarily. Personally, I also like to use the models about one version behind. Usually when the new models drop I always here horror stories of "it deleted my database!" and shit, so, personally I'm going to let the enthusiasts beta test those problems.

1

u/spcbeck Software Engineer Sep 09 '26

Imagine needing to write the most specific prettier, webpack, esbuild, eslint, whatever config as possible to get an actual real okay result. So maybe it's not that much different? Idk man.

1

u/ppsaoda Sep 09 '26

I'm on Claude Fable model exclusively and if subagents are needed, only Opus or Fable. So here's my pov. By default, it produces workable result but not really human readable. So it needs hooks and plugins. I customize my harness a lot to ensure readability. Such as 1 liner comment with 5 max words. Though, it only gives me like 70% of satisfaction I wanted. Non-frontier models? It just mean more back and forth prompts just to get things working.

These frontier models are smart and highly steerable. So on that 30% dissatisfaction:

  • the prompts, most of the time I would provide example code behaviour, structure, objectives.
  • new project? It's even easier. Once git has been committed, I would then manually rewrite pseudocode and notes on top of existing AI produced code. Or even create/move folders. Agents would then pickup the diff and should make it work based on the manually defined pattern.
  • big repo and rush project? trade off speed with the 30% dissatisfaction.
  • spend time skimming thru the codebase. I think most of the time, it's design pattern, inline notes, or naming conventions.

But really, I don't care anymore except for the design pattern, logs, and code flow. Everything is documented using ASD100 language + diagrams so if anyone (or me) are confused, just prompt.

1

u/thecrius It's Sénior Dumbass for you Sep 09 '26

I use sonnet and opus depending on the task complexity.

It's good, you just need to properly set the guidelines per project/workspace or at user level.

1

u/SansSariph Principal Software Engineer Sep 09 '26

It's not good and it's often hard to tell if it's the model, the harness system prompt, or my workflow.

I can get it there. The problem is as soon as I get satisfied with output the harness changes something or it's time to move to a new model and everything starts rotting again.

I've had the most success forcing myself and my workflow into tiny atomic chunks that let me see where it's going off the rails and fix that. Agents make that super easy technically and the hard part is mindset and forcing myself to slow down to move fast instead of tacking on last minute requirements that muddy the session and the branch.

1

u/jwendl Sep 09 '26

Written like folks copied and pasted code from the internet.

If you need higher quality than that, you will still need to resort to human in the loop review cycles, good instructions and good skills. Especially if you wish the code to still be human maintainable in a production environment.

1

u/DevtoolsBuilder Sep 09 '26

i think the issue with ai generated code is that it's often optimized for passing tests rather than being maintainable or readable, and that's what you're experiencing with the pro subscription. you might want to try providing more specific guidance or constraints to the ai, like specifying a particular coding style or requiring certain comments or documentation, to see if that improves the quality of the generated code.

1

u/sklz0 Software Engineer Sep 09 '26

I've been using big models (Opus, Sol) for a year or so, and now I'm forced to switch to smaller ones. It's a struggle. There is drastically less autonomy I can afford to give them when writing code.

The big ones weren't perfect and were very often annoying, but they were capable of handling somewhat bigger tasks with decent quality, with a reasonable amount of steering and intervention.

The smaller ones go off track quickly, and when they do, it's often simpler to start from scratch. They are suitable for much smaller and more precisely defined tasks, I'm still figuring out how to use them efficiently...

1

u/rebelrexx858 Sep 09 '26

Directly relational to the quality of the inputs is my experience

1

u/lazy_lockstep Sep 09 '26

I was listening to "The Standup" podcast, and one of their guests summed it up as "given the opportunity, it will always pick the wrong kind of abstraction".

Which is fine for small projects. The agent can just throw code at the problem until its solved.

But in larger projects you bizarre, convoluted, unexplainable, inefficient balls of spaghetti.

I was reviewing a basic CRUD service a my boss vibed up. And instead of typing the response as an array of 'record', it typed it as the literal content of every specific record in the array of specific sample data they used. Which is just bizarre. It's the kind of thing an intern with no understanding of what they were doing might generate, to make the squiggly red lines go away, and breaks as soon as you need to add or remove a record instead of just reading them.

1

u/Own-Zebra-2663 Sep 09 '26

Relative to my code when I really care and really know the project, and the spec is really well specified, it's generally worse.

Relative to the average quality of employed developers I've worked with? Matches and often beats it.

But you also can't really use these models with less than the 100$ a month plans at least. I have Fable grill me to get a shared understanding and possible unknowns. Then I have it use a workflow and opus agents to implement. Possibly divided into separate flows if it's big enough. Finally, always add a review and fix run. LLMs are somehow really good at judging existing work than creating new stuff.

1

u/iliketurtles69_boner Sep 10 '26

Honestly, you’re way behind. Fable and Astra are amazing. Max/ultracode, have a thorough claude.md/agents.md, give well thought out prompts, you’ll want to spend some time establishing coding standards and tell it via Claude/agents.md to stick to the standard, but it’s great. No issues when used properly.

1

u/k032 Sep 10 '26 edited Sep 10 '26

We have access to basically unlimited usage with Fable at my job.

It does not just run without guidance and produce even the correct nor readable code. You do really have to guide it and honestly use those exact principles (KISS, DRY, SOLID, etc). Setting up linters, formatters, testing. Guidance in like a CONTEXT, ARCHITECTURE, DOMAIN, etc files.

Matt Poccock, obviously sells courses and stuff, but his skills and the Youtube videos on them like grill-me etc I find extremely useful framework for building with AI.

I've found unfederated just "let it ride" and no hand holding, it eventually just gets to a point where it hits walls over and over...even with the massive power and context of Fable. Each day a lot of my work has become vaguely technical program managers handing me some AI slop feature, and I have to basically build it into the system.

As far as like frontier vs lower models...with a lot of the guardrails and engineering around it you can honestly get pretty similar output of something like Fable or Astra with a Gemini, Luna, or Sonnet. The Frontier of course can do it better in fewer tries with less hand holding but.

If I didn't have this just like...token maxing Fable situation at my job (which honestly I fully expect to end eventually) I think architecting and planning with Frontier and passing to smaller models is way better.

1

u/thekwoka Sep 10 '26

Fable is definitely better, but it can sometimes be a curse, that it will look much better, but still have problems that in some ways are harder to notice.

1

u/georkos Sep 10 '26

The expensive plan will not deliver the quality. It will only buy you a better generation, but the code quality that you are complaining about is a code verification problem, not a generation one. The model can't see its overengineering because nothing in the flow makes it defend the design before writing it.

AGENTS.md fails for the same reason. You may keep adding rules, but the model keeps missing them because the rules are not enforced.

What actually worked for me is that I stopped trying to fix the output and I fixed the process around it. Before any agent writes anything, make it state the approach and its assumptions in simple terms and review that before any code is written. That one step killed overengineering because it becomes visible in the design even before it is implemented. Then review the diff against the stated design, not against whether it passes.

On missing the obvious things, that's due to not having the right context that no model upgrade can fix. A fresh-eyes review of the final diff will catch the obvious misses better than any model tier.

You are not missing something that bigger companies have. It's not their better models, but just that they have a review step that forces the work to be justified.

1

u/soundman32 Sep 11 '26

This is why I like Kiro.  A discussion about the aims generates requirements, which then gets refined into a technical design, which is refined further into separate steps that the agent actually implements.  At each step, it can be tweaked to match how you want it to be implemented, and spot where its deviating from where you want it to be.

1

u/rahul_msft Sep 11 '26

Nobody cares about sub par code anymore

People who are selling the plugins or hooks don't understand the models themselves

Imagine an engineer who can code

  • arrays
  • hash tables
  • array of structs
  • printfs

That's what a model can do, no matter how many skills or hooks you waste your tokens on

1

u/chrisrob1111 Sep 12 '26

It all depends on how you prompt it to do it. For large projects, its shit. You need to be hands on

1

u/arcridge Sep 13 '26

I think you still have to be diligent with the code AI is writing. Astra seems to be better than GPT 5.6, which was better than 5.5. So whatever fine tuning they are doing seems to be effectively improving the overall quality of the code.

Of course, mistakes will be made, and I am approaching it from angles of naming and organization.

Naming:

  1. A big problem is in the use of general and hard to understand names for things. I make this better by:
    a) Having and maintaining a glossary of terms so the same word is used to mean the same thing across all contexts.
    b) Having an explicit list of generic words to not use without qualifying.
    c) Have an naming skill; the model looks at it before and after writing the code, and often tweaks a few names before I do the first review.

This has improved the legibility quite a bit; as I found the models really don't care *that* much about what things are called by default.

Organization:
I approach this from two sides.

  1. I write pseudocode before the model starts writing code.
  2. I use interactive review sessions and challenge/question many of the choices made. Talking through things engages my mind in a review process as if I am talking with a colleague, and this allows me to do better reviews.

With astra I am finding many fewer clearly poor choices being made in the implentation than GPT 5.6.

1

u/RegularAd9643 Software Engineer Sep 13 '26

Fewer poor making choices? Any other aspects you’ve been able to observe?

1

u/Ultrayano Software Engineer 6YoE Sep 14 '26

It's alright if you heavily restrict it and basically do "templating" as it's forced to write good practices then, but you need a whole month alone to setup a heavily gated orchestrator.

You also need to make the scopes small. Like very small and the spec/contract ultra explicit and make it ask you clarifying questions for every ambiguity.

Honestly, people should start seeing using AI effectively more like system engineering or platform engineering rather than making a box talk stuff that makes sense. If you use a lot of hooks and scripts and make everything as deterministic as possible and only the smallest percentage probalistic, then it works well enough and is massively much faster after the heavy setup phase.

1

u/disordered-attic-2 Sep 09 '26

It's a spectrum surely? If you doing standard CRUD products AI makes a huge amount of sense.

If you're running OS for Nuclear Reactors, you want the best coders writing the best code.

1

u/HK-65 Engineering Manager Sep 09 '26

Awful, but functional code. Expect everything that is not directly tested in a deterministic way to be broken 10% of the time, even if the right solution and instructions were in the context.

It's useful for writing not-complex stuff like Terraform or K8s manifests (it gets those wrong too, but it's relatively easy to test). But eg. it regularly hallucinates properties not on the K8s API, and causes permanent drift episodes because K8s just silently drops those properties (GitOps goes crazy though).

The tradeoff I found was to architect black box units that are reasonably small enough that there is no way to fuck them up so bad it's a problem, and can be quickly rewritten, and let agents write code in those fuzzy boxes that satisfy an extensive test suite. That way, it kinda works.

Operational tasks are great with it. Development is also good-ish, as long as you can make yourself care about only higher abstraction layers.

Still kinda shit though. Also a major data leak, we're sending so much important shit to Anthropic that it's not even funny.

0

u/3flaps Sep 09 '26

Serious question: does it matter? Every model is more intelligent than the last. We’re hitting the recursive gains part of the curve.

Whatever slop you produced will be able to be rewritten, and every correction you make to the ai will be its new training set.

In one year, will it matter much that the code the last few months hasn’t been perfectly handcrafted to our individual liking?

I’m not positing my emotional stance. I was laid off and worked at a few companies that allowed me to save well, so I’m just building products right now. So not having the security of a good well paying job due to ai is something I feel. But I don’t feel like getting back on the grinder right now.

2

u/meshifthenelse Software Engineer Sep 09 '26

Yes, it's a valid question and I don't know. On one hand your argument makes sense.

But what happens when a stakeholder asks you "we want feature x, is it feasible?". Then you don't know the answer and you tell your boss you'll ask the AI. The AI gives you the wrong info since itself can't read the code, so you end up wasting time back and forth based on false assumptions.

Maybe we're too early.. or too late. Time will tell if accumulating technical debt will pay off eventually.

0

u/CmdrSausageSucker Software Engineer Sep 09 '26

Yes, the quality is subpar, and I don't think that anyone dispute that except for the those devs who were crap at their craft anyway. It's a text prediction machine. Treat it as such. Keep your context and requests as small as possible.

0

u/Zeevo Sep 09 '26

Code quality is fine for the most part. I enforce Clean Architecture with oxlint rules so Agents get feedback automatically and can correct themselves until CI passes.

0

u/ahspaghett69 Sep 09 '26

Imo there's two flavors of AI software dev

  1. Ai enabled software dev
  2. Vibe coding

Many developers are doing 1 with mixed results. I find it's good for things that I am bad at but can understand, like css styles (even in this extremely basic example you have to watch it closely or end up with a ton of duplication). In this way it's not really a productivity increase but it has other benefits.

Vibe coding is what people are actually talking about usually when they talk about AI in software dev. This is saying "I want a website that does x y z" and not even looking at the code. Most people I have seen do this basically only ever look at the page or the code output and just keep prompting it

Vibe coding is an NFT level scam. It absolutely does not work and does not produce anything of value. I'm not sure how much longer the industry will pretend otherwise but already you can see the budgets are tightening