| ▲ | loufe 3 hours ago | |||||||||||||
I read recently in an anthropic blog post from an HN post that they found Claude did a better job when informed it is "responsible" for maintaining the codebase. I was astounded multiple times how quick it was (as a part of my precommit review process), when told, to point out some code quality issues (usually that it to some extent knew there was already a re-usable component / pattern it simply chose not to apply and rewrote -less well- from scratch). I know this post is more about the ML handicapping, but I do think any model at this stage in LLMs is necessarily incentivized not to invest more into keeping a codebase maintainable, because that requires more "energy" and -I imagine- the model is tuned to be as "lazy" as possible while satisfying whatever objective it has. As a further aside: I feel like this is what separates my "AI written" and "vibecoded" projects. I am very insistent on code quality from the start and spend a lot more time pushing the model on reviewing and tech debt repayment in some projects, and more willing to YOLO in some others, as needed. The model is, in a sense, wise not to architect a production grade go/rust cli tool when a simple messy python script will do for the few hours it'll be used. | ||||||||||||||
| ▲ | edg5000 3 hours ago | parent | next [-] | |||||||||||||
Generally, asking it to review will almost always find real issues without overblown severity. The key is that once the model ends the turn after delivering on a task, it won't do this audit by itself, but how you prompt it won't matter much, as long as you let it evaluate the work as an explicit task. I call these "audits" and do this constantly. This can be either a new session or the existing one, does not matter that much for the results, although I generally use clean sessions for this. One risk is them reading each others' scratch dirs, which can make the audit no longer fully independent. | ||||||||||||||
| ||||||||||||||
| ▲ | rawoke083600 2 hours ago | parent | prev [-] | |||||||||||||
yea agree about code quality. When working on a big'ish code project (mostly ai coded), I will every few days stop and ask something along the lines of: "Lets do a full code review, focus on logic issues, common gotchas wrt to (insert tech or library), code smells and errors. But first do some research on the latest gotchas and common errors wrt to <insert tech here>" The above is not set in stone ofc, but something along those lines, and I switched between different models todo it, mostly Opus,Astra on med to high effort. YMMV The main wins are todo it as a habit and every few days or X amount of features added. Being more specific helps like "focus on performance or code quality or errors etc" | ||||||||||||||