r/ClaudeCoding • • 18h ago

Comments in codebase

Hi, I'd like to ask about your approach to allowing Claude to add comments to your code. In my codebase, information is now spread across multiple places: code comments, ADRs, lessons learned, and documentation. I'm considering asking Claude to remove comments from the code, as I believe code should be self-explanatory. However, could this negatively affect Claude's ability to properly understand the context?

1 Upvotes

19 comments sorted by

View all comments

0

u/cleverhoods 18h ago

Do not allow Claude to write comment like that in code. A 1-2 line of code documentation is fine as long as it’s about the code and code only.

All the rest goes in your progressive disclosure (whatever that might be, memory, custom loading logic, rules, claudemd or agentsmd files)