Some of my meat-based engineers have taken issue with it and directed Claude to never leave comments unless strictly necessary, but I want to know what others think. Personally, I write and read a lot of code comments so I’m confused about why these specific comments are so offensive to my fellow engineers.
I have two questions: 1. Why does it do this? 2. Do you have feelings about it?
Is the agent leaving breadcrumbs for other agents? Do they improve the output of future agent-driven code or is it just a stylistic choice?
I don’t want to devolve into a discussion about the purpose of code comments at-large. Instead I’m wondering if there’s a purpose behind the specific comments that agents leave
carlostkd•9h ago
This is basic from school.
Why not?
Two reasons: First, you are telling an attacker, "Look, my code works like that, and this function does that, etc., etc." Without comments, let the attacker read and try to understand everything alone, if he can.
Secondly, it's easy to copy totally or partially, you spent hours coding and anyone can say "Oh look a nice function; it's what I was looking for."
The normal behavior should be keep comments for yourself in a development code copy delete all comments for production.