by tminima · 2w ago · 0 comments
While I haven't worked on any 20yo code base, while working on my projects, I have found that iteratively I am asking to do many of the low-level things like architectural changes and refactorings.
These situations often pop up when I am not getting an expected output, multiple back and forths, specific bugs, continuously flaking tests. I usually then ask it to explain the architecture and what's going on. I add the patterns it's missing or I feel it should consider from next time onwards, to the harness.
It's not the same as pre-llm era but I think this is how things are going to evolve.
Agents are good enough on their own, but they introduce a significant amount of drift.
Simply asking "is this TOOL like SOME_OTHER_TOOL in the codebase?" Is typically enough for the agent to out itself as introducing redundant/refactorable code.
My question is: if an agent knows how to fix a problem in one part of the codebase, and introduces drift in another part of the codebase, is that a problem? If 2+2=4 but so does 3+1=4 and 6-2=4, does this matter? (Math equations are used here to represent similar but varying logic in code)
The math equations were simply a low-effort way to describe similar behaviors to achieve similar results; not intended to be taken as literal.
Allow me to extrapolate the original framing of my comment/question:
Is the reality of an agent producing a similar or duplicate solution, be it in shape or spirit or semantics, actually a problem?
Is the non-deterministic nature of an agent producing objects (I'm an OOP nerd) and behaviors of similar likenesses detrimental?
Extrapolating this question seems to have offered an answer, at least in my own mind.
I'm of the mind that the more unique shapes to do the same thing exist, the more opportunities exist for a program to break.
Thus leaning towards solutions that are more deterministic, and resisting drift.
However, my proclivities are not absolute and open to examination.
Is like, this should not take this long, or be this hard, can you explain me what is going on?
And then is when you realize is more complicate than needed, and ask for a refactor. The refactor also takes 5 minutes while you brew coffee, so this is also why I don't buy the anti-doomers saying that someone will need to fix the vibecoded mess, no sir, it will be fixed by vibecoding too while they walk the dogs.