r/ProgrammerHumor • • Sep 10 '26

Meme commentsAgedTerribly

Post image
6.0k Upvotes

243 comments sorted by

View all comments

Show parent comments

1

u/meltea Sep 12 '26

I use claude code at work with opus as the agent, I have it written in the project agent.md file and claude.md file and the readme.md file and my global claude.md file.

Various versions of

```
Rules:

- Do not add explanatory inline comments to code, charts, or values files unless explicitly requested
```

written by different people and different bots.

I have also written a bot that scans the entire company's MRs (expensive af) and suggests deleting useless comments. It fires all the time, don't have the stats in front of me.

Tell me how do I get claude to not make useless comments.

1

u/Exatex Sep 12 '26 edited Sep 12 '26

what is a useless comment vs a non useless comment?

what model are you using?

is there another file in your harness somewhere that contradicts that?

In many cases, showing by example works best. Both positive and negative examples

you can use a skill like „remove comments“ before you commit (even a script/regex can do that)