A week or so ago I needed to convince chatgpt that following code will indeed initialize x values in struct struct MyStruct { int x = 5; }; ... MyStruct myStructs[100]; It was insisting very passionately that you need MyStruct myStructs[100] = {}; instead. I even showed msvc assembly output and pointed to the place where it is looping & assigning all x values and then it started hallucinating about msvc not conformin…
Why agents are bad pair programmers
111–120 of 239 posts
Re: Why agents are bad pair programmers
#112Earlier quoted context omitted.
I usually add “discuss first. Don’t modify code yet”. Then we do some back and forth. And finally, “apply”.
Claude Code has "plan mode" for this now. It enforces this behavior. But its still poorly documented.
Re: Why agents are bad pair programmers
#113But sometimes if I manage to nail the right headline, nobody reads my post and just has their own discussion, and I am spared.
Re: Why agents are bad pair programmers
#114Earlier quoted context omitted.
Sadly, I mean my current employer is doing the whole "tracking to see AI usage rates" and basically checking in performance reviews if people are using as much AI as the AI sales people told the CEO people need to use. We're a SaaS company so we own all our code.
Wow, really?! I had no idea that such policies existed. Quite astonishing I have to say.
Re: Why agents are bad pair programmers
#115When I first tried an LLM agent, I was hoping for an interactive, 2-way, pair collaboration. Instead, what I got was a pairing partner who wanted to do everything themselves. I couldn't even tweak the code they had written, because it would mess up their context. I want a pairing partner where I can write a little, they write a little, I write a little, they write a little. You know, an actual collaboration.
My approach has generally been to accept, refactor and reprompt if I need to tweak things. Of course this does artificially inflate the "accept rate" which the AI companies use to claim that it's writing good code, rather than being a "sigh, I'll fix this myself" moment.
Re: Why agents are bad pair programmers
#116Pair programming is also not suitable for all cases Maybe not for many cases I mentioned this elsewhere but I find it absolutely impossible to get into a good programming flow anymore while the LLM constantly interrupts me with suggested autocompletes that I have to stop, read, review, and accept/reject It's been miserable trying to incorporate this into my workflow
I’ve always seen it as primarily an _education_ tool; the purpose of pair programming isn’t that two people pair programming are more productive than two people working individually, they’re generally not. So pair programming with a magic robot seems rather futile; it’s not going to learn anything.
Re: Why agents are bad pair programmers
#117In my experience the problem is not they are too fast, they are too slow. Honestly, their speed is just the right amount to make them bad. If they were faster, I could focus on following the code they are writing. But they take so much time for every edit that I tune out. On the other hand if they were slower, I could do other work while they are working, but they are done every 50 seconds to a few minutes which mean…
Re: Why agents are bad pair programmers
#118Finally someone said it, they're overconfident in their approach, don't consult us with the details of the implementation, they're trained to create mock APIs that don't follow structure, leading to lot of rework. The LLM actions should be measured, collaborative, ask for details when it's not present. It is impossible to give every single detail in the initial prompt, and a follow up prompt derails the train thought…
Also giving them more details seems to confuse them. There is probably a way around this, though. They are pretty good in finding a tiny silver of information out of the ocean. What I hate is that the industry is all geared toward the same model (chat bot). Imagine if we never invented the keyboard, mouse, GUI, touch screen, etc...
Re: Why agents are bad pair programmers
#119This guy needs a custom prompt. I keep a prompt doc around that is constantly updated based on my preferences and corrections. Not a few sentences but many many lines of examples and documentation
Re: Why agents are bad pair programmers
#120I don't know if it's giving the tools less self-confidence per se, but I think it's exposing more the design process. Like ideally you want your designer to go "Ok, I'm thinking of this approach, i'll probably have these sorts of functions or classes, this state will be owned here" and we can approve that first, rather than going straight from prompt -> implementation.