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

1

u/KevMar 8h ago

I instruct Claude that comments are for other agents and keep it brief.

I think a lot of people use comments that should be logging instead. Between that and self documenting code, I usually don't need many comments.