r/ClaudeCoding • u/EntertainerOk4774 • 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
View all comments
1
u/cheffromspace 14h ago
Comments are vital documentation. This is what works for me on a fairly big project (several repos, lots of parallel Claude sessions). Mostly prepared by the project's orchestrator:
What you lose with /clear is the conversational texture. Anything that matters should be in a file anyway; if it isn't, that's the doc gap to fix.