Remix.run Logo
post-it 6 hours ago

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

sdeframond 6 hours ago | parent [-]

How do you do it?

ch4s3 5 hours ago | parent [-]

You could probably add linting rules to your tool of choice and tell claude that your lint tool has to pass.

demibabs 5 hours ago | parent [-]

but then no human generated comments allowed either, right?

ch4s3 5 hours ago | parent [-]

I'd do this by only running the linter locally and using this as a custom rule for the LLM, but I need to think about it a bit harder.

devmor 5 hours ago | parent [-]

There is probably something you can do to only apply some rules to the actual changed lines in a git diff.

You may have to write your own linter for that specifically.

notsirius 4 hours ago | parent [-]

you'd probs want a commit hook for that

unleaded 2 hours ago | parent [-]

Does "don't write comments" not work?

jaggederest 5 minutes ago | parent [-]

about as effective as don't make mistakes... For anthropic's models at least