by frostiness · 1w ago · 0 comments
This is mostly a problem of agents not having the autonomy of managing an entire project and having the ability to make tradeoffs to increase simplicity or maintainability, but when given that autonomy no AI model I've used uses that privilege to write simpler, more maintainable code.
It's very hard and actually a lot of work to draw an appropriate buffer around a problem in terms of how much agency you want to be exercised in considering other concerns when fixing it.
It takes a lot of skill on both sides to negotiate this even in an ongoing conversational loop.
There comes a point of course where essentially doing this communication and negotiation is equivalent to the work. At that point, you really aren't saving all that much time by not writing the code yourself in a lot of cases.
Maybe greenfield type work is the exception, where generating the code can actually save hours of typing, but certainly for bugfixes on mature systems where the right fix with all factors and competing priorities considered and negotiated only results in say 10 lines of new code, you start to wonder what actually is the benefit of delegation and automation here.
When you wrote code one day at a time, you could talk about these things at the next standup and make sure everyone was on the same page. Agents move so fast in whatever direction they choose that you can easily end up getting to the wrong place very quickly.
Combined with a solid set of skills for how to do work in my codebase, this means that in 95% of cases, I can get this fixed with a few mins of my time and attention, and move on with my day.
The 5% of issues where the root cause is more fundamental do fall under what you’re saying though.
Asking it to just blindly wander the codebase won't give a good result, because there's a non-zero chance the code next to your bugfix is also badly written. The agent just propagates what it sees unless you steer it in a different direction.
The other thing I've started doing is turning the root cause into something enforceable: linters, static analysis, unit tests. I know as engineers we (mostly) do this, but agents are really terrible at writing good checks. eslint's "no-restricted-syntax" is my new best friend.
When you have a sprawling codebase that's gradually grown over time, it can take hours to find which file is responsible for a specific behavior, so having an LLM to pinpoint it is fantastic.
Are you specifically asking it to do that? You can just point AI at a bug and say "fix" or you can ask it to review, plan, offer alternatives. You can get a lot more out of it if you actively engage.
A real developer builds up global context of the whole project over time, you always hold the overall architecture in your head
Whereas with agents there is a still a lot lost between sessions
Its similar in a sense that a new developer to a project does more hacky local solutions whereas the senior on the team knows when the architecture needs to change as part of a fix
The problem with context I see primarily in mixing up user intent and hard requirements with random half-correct notes some other agent left in the comments.
Are y'all using AI agentic frameworks? I don't have a lot of issue with anything being lost between sessions, I have active memory and context management and have my agents write up documentation for each project to pick up where they left off or to hand it off if needed.
There's a reason that repos are now bloated with AGENTS.md files that try to cram context in as pre-text. And that there's so many vibe-coded context/memory aggregation frameworks.
It's an AI-hard problem.
It cannot, in my current company we have extensive tech documentation, one of the best I've seen in my career, a team responsible to craft the agent tooling and it still doesn't help enough.
Ultimately, I think the AI companies are just optimizing for the wrong things and the benchmarks do not reflect a real company.
They patched around it with a few hundred lines of extra code. It was the obvious way to fix the exact bug report without causing side effects, but it paid not thought to the underlying design issue which allowed the bug to crop up in the first place. It also made a very bad judgement in regards to performance when considering the amount of data and variability of data we have in production environments, which was partly why the code was designed as it was.
This code will 100% cause problems down the line and I will now need to unpick the fix and make the better fix to address it.
In the past devs may have made a similar change, but when it reached PR a human familiar with the code would have looked at it and advised against it. However, humans don't need to read code anymore, so the AI reviewed it and said the fix looked great.
I feel this is a good example of the state of software engineering in 2026.
And I'm not suggesting I'm any better. I'm pushing slop into production every day because I am assured that AI is better at writing code than me and I should just trust Claude and get something shipped ASAP. If there are bugs Claude can fix it later.
currently i am able to resolve most of the issue with AI Model when i talk in plain English rathe than prompt.
Whenever I bug fix, I prompt it specifically to solve the problem not fix the symptom of the problem, and do so with the least amount of code changes possible to fix the problem. And I also tell it that if there's a more maintainable way to solve the problem(like prevent similar issues in other parts of the project, ie problems with a particular dependency or library being used) to suggest alternatives.
I think it's also important that the AI either has context to your entire project(like ability to read the source), or you put the context of what it's solving in the prompt you give it specifically.
It's tempting to blame all AI issues on prompting because it's the only thing that we're able to control, but if a task falls into the long tail of work unable to be satisfactorily completed with AI, there's no prompt that will work. When there's always the alternative of doing the work yourself, it's not worthwhile to spend the tokens or time to get an AI model to do something after the first two or three prompts.
On the contrary, Claude Opus 5.5 consistently refuses to break requirements even if I insist on fixing something. It genuinely knows more about the project than I do.