logoalt Hacker News

synalxtoday at 4:12 PM8 repliesview on HN

I have this problem even in codebases. Claude will work on something, and add detailed comments in which it extrapolates the from the design and confidently states intentions and decisions which aren't actually grounded in reality. Then, later sessions suffer when it reads back those hallucinations and treats them as canonical.


Replies

bartreadtoday at 7:19 PM

Delete the comments: I’ve gone on a tear with these recently because they’re nothing but trouble.

The absolute least worst outcome is they chew up your token budget. But what tends to happen, and this is much more serious, is they poison future work and make further modification of the codebase more burdensome and error prone.

show 2 replies
post-ittoday at 6:34 PM

I've been whittling my way towards having Claude write zero comments in code. They're pretty much never helpful.

show 1 reply
rco8786today at 7:25 PM

We have this in our harness markdown:

```

## Comments

Use comments extremely sparingly. Most comments should be at the request of the user. When something warrants a comment, keep it to one or two lines: what the code does and why it's necessary. No background narrative, no replaying the investigation or failure mode, nothing a test name or the commit message already says. Applies to specs too. If a comment needs a paragraph, make the code clearer instead.

```

The comments Claude was leaving got absolutely out of control. Just lines and lines of LLM drivel that was barely intelligible and not remotely relevant to what a code comment should be used for.

mrtesthahtoday at 4:31 PM

Probably good to establish canonical spec documents up front that it can use and maintain as an independent reference?

show 2 replies
throwaway613746today at 4:41 PM

Anthropic hopes you just eventually give up and become completely dependent on Claude. Toss in 10 (or more) other developers with way less discipline and you will become dissillusioned with Claude's overengineered, incomprehensible, technosalad and your demise is pretty much guaranteed.

dan_ggggggtoday at 4:12 PM

[dead]

bsjdhdudjtoday at 4:51 PM

[flagged]

show 1 reply