logoalt Hacker News

ljmyesterday at 5:49 PM5 repliesview on HN

Purely anecdotally the one persistent issue I have with LLMs writing code is that they are absolutely paranoid and add a load of indirection and defensive crap and even if you prompt to avoid that it will often require manual steering to remove the cruft.


Replies

AussieWog93today at 12:39 AM

https://github.com/EspoTek/.claude/blob/master/CLAUDE.md

Stick the "Never suppress errors" section into your Claude.md, this will never happen again (works for me with Python/Flask, ymmv for other languages).

dizhnyesterday at 9:14 PM

Fallbacks and backward compatibility are killing me :) So many code paths that just don't fail predictably.

hk__2yesterday at 7:40 PM

I’ve experienced this with GPT but not with Opus/Fable.

show 1 reply
adastra22yesterday at 6:56 PM

I have not noticed this with Opus 4.6+. The result is usually not too far from what I would have written myself.

show 1 reply
pdantixyesterday at 8:15 PM

recent gpts are horrendous for this, whereas recent claudes have a tic where they incessantly add useless comments referring to previous changes and will use multiple single-line comments instead of a standard multi-line docblock.

show 1 reply