Lurker News
A lot of people outside tech ask me if AI is going to replace programmers and I just think: if that were the case we should be running out of things to do

The bug backlog should be empty and we've caught up to every feature request from PMs to the point that we are bottlenecked on the business side
But that does not seem to be the case with my own company or most devs I talk to in the industry
So what gives?

Comments (127) 90 threads

Show all comments

Showing thread 1 of 90

frostiness9 replies#
I don't know if I'm doing something wrong but bug fixing with AI has always been a crapshoot. You can absolutely tell an agent to fix an issue, and it will fix that issue, but the vast majority of the time that solution will be by adding code to cover the specific symptom in the bug report. It rarely considers or recommends solutions that have tradeoffs that may change behavior but will eliminate an entire class of similar bugs.

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.

ex-aws-dude4 replies#
It makes me wonder if it could be solved with better context management

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

philipwhiuk#
> It makes me wonder if it could be solved with better context management

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.

user43928#
I think it's rather a problem with the training pipeline incentivizing correctness and endlessly defensive code over simplicity and maintainability of the implementation.

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.

Unproven4275#
> Whereas with agents there is a still a lot lost between sessions

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.

realusername#
> It makes me wonder if it could be solved with better context management

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.

WillPostForFood1 reply#
* It rarely considers or recommends solutions that have tradeoffs that may change behavior but will eliminate an entire class of similar bugs.*

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.

apothegm#
Which takes meaningful amounts of human time and attention, and might explain bug backlogs not being empty.
Unproven42751 reply#
I mean I also think it's the way you prompt it.

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.

frostiness1 reply#
Neither of these prompts effectively address the problem though. Fixing the root cause and doing so with the least amount of code often is contradictory. Including instructions to make suggestions to improve code maintainability will cause the AI to do it every single time it makes a change, even if it's completely unnecessary, drowning out useful suggestions in noise. When a bug is caused by a requirement elsewhere in the application, current models are more likely to break that functionality and implement a fix anyway rather than pause and get confirmation on the requirement. They may leave a note about the broken functionality at the end, but by that point the AI has already been iterating with an incorrect assumption. Any code the agent wrote in the same turn is going to be tainted by that assumption and it often does not remove or rewrite that code when given clarified requirements.

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.

cluckindan#
”current models are more likely to break that functionality and implement a fix anyway rather than pause and get confirmation on the requirement”

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.

davnicwil2 replies#
I think this gets to something quite fundamental which is in the information loss when delegating a task in plain English.

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.

senordevnyc#
I don’t find this to be the case when using a good model (Opus 5.5 currently) and a decent process. I constantly have agents check out user bug reports, error alerts, little things I find when using my app, etc. I forward in emails, tag them in slack, drop screenshots, whatever. My first ask is that they investigate and figure out wtf is going on, what the root cause is, what the blast radius. And then from there, propose a few different approaches to fix with the tradeoffs for each, and let me choose.

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.

Breza#
When I write code, I have a very complicated model in my head of what I'm trying to do. If I were to write it all down, it would take hours and many pages and I'd still miss stuff. This has always been an issue in SWE, with everybody ending up with a slightly different idea of what a project should be.

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.

tauwauwau#
It should work, unless you're working on a very large codebase. I give the AI all the information that I would consider before implementing the solution, my prompts sometimes are multiple paragraphs, it's tedious but it gives good results. Information that I provide may include links to different repositories that may impact the feature being implemented, broad description of some terms, instructions to use a local temp/ directory to create temporary/reusable scripts when needed. Sometimes when I don't trust it, I explicitly ask it to come up with a plan without changing anything. Other times, I ask it to implement, build deploy, test deployed app and loop till the feature works. One of the instructions that I have in Agents.md is to periodically save session summaries in ./docs/ directory, you can use an external file. I haven't tried any context-management tools other than context-mode, which seemed to make it worse. But I haven't needed anything more than the docs/ directory yet, and that's when I leave it working for hours at a time to in implement/test/build/deploy loop. Interrupting it at every stage is going to make it slow, so it's better to see the end result and if you don't like the end result, you can try again with new instructions.
Nemesis-driod#
i think its always difficult to resolve the bug entirely mostly in backend, because of the different technology used and each has its trade off.

currently i am able to resolve most of the issue with AI Model when i talk in plain English rathe than prompt.

taurath#
You’re not likely doing anything wrong, people have different projects and use cases and then try to tell everyone else that their pattern that works for their context works for all.
codedrift_1 reply#
Agree, if you just aim the agent at a fix in isolation, it's like rolling dice. I spend a lot more of the agentic time on bug exploration than the fix. As the human who's probably getting paged if the fix also breaks, I want to understand what's being fixed and why. My remedy has been to explicitly state what you're asking for. I specify the fix needs to be simpler and more maintainable, and I include good examples of bug fixes or links to GitHub of what effective fixes look like.

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.

Breza#
I do something similar, though I write most of the actual code myself. If there's a problem, I paste in an error message and ask for the best guess as to what's wrong. Then I ask what specific functions/classes/etc are involved and I read those parts of the code and implement the fix.

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.

kypro#
Our codebase had a very subtle bug this week impacting a single client of our. I saw the report come through and was planning to fix it with an equally subtle, but slightly more consequential change given I wrote the code 2 years ago, but someone got to it before me with Claude.

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.