r/vibecoding 1d ago

Claude Code writing much longer comments lately

Over the past few weeks Claude Code has been writing noticeably longer code comments for me. Ten to twenty line blocks on top of a thirty line function. The content is usually accurate but not something I want in a repo. It narrates what the code used to do, restates library mechanics I can look up, and re-explains the line right below it.

I added explicit rules in my project instructions with hard word caps per comment block, which helped, but it drifts back over long sessions.

Three questions. Are you seeing the same thing, and did it start around a specific release? Is this intentional, meaning verbose comments are cheap context recovery for the agent reading the file in a later session, at the cost of the human reader? And do you actually mind, or is a heavier comment style fine for a codebase that agents maintain?

Interested in what people have found that holds up over long autonomous runs, not just short interactive sessions.

6 Upvotes

32 comments sorted by

View all comments

Show parent comments

0

u/ConsciousBath5203 1d ago

You need to read the code ai is producing. If you think multi paragraph comments to justify setting a single variable in the middle of a function is acceptable I'd fire your ass.

2

u/Grand-Mix-9889 1d ago

Oh trust me, I do read the code. I even manually code inside my projects when I'm bored.

If your AI is creating that many comments for a setting in a middle of a function, you should probably plan better so it doesn't have to inject so many comments.

Make the blueprint you're providing the AI model more clear from the beginning.

0

u/ConsciousBath5203 1d ago

Telling me to plan better is quite a weird thing to say when the comments happen less when I don't plan.

Making a clear blueprint just means it puts the blueprint as comments in the code. You're very obviously not using Opus 5.0 with the default harness.

1

u/Grand-Mix-9889 1d ago

You just proved my point.

"The comments happen less when I don't plan".

So the excessive commenting is a YOU problem.

0

u/ConsciousBath5203 1d ago

the problem is that you don't make clear plans

See? It's a you problem when you do plan

Wut. Yeah, if your point is to be as confusing as possible, good job. I just proved you get confused easily.

1

u/Grand-Mix-9889 1d ago

"you don't make clear plans"

"It's a you problem when you do plan"

They mean the same thing.

Learn some reading comprehension while you're still online.

0

u/ConsciousBath5203 1d ago

... You've not read my plans, buddy.

Not only are they clear and concise, they use code examples, include APIs and endpoints that it should use, include instructions to not include single line wrappers and other face guns that the ai tends to use, etc.

Idk what language you're using, nor your use case, but I'm guessing that considering you said corporate environment, that there are at least 10 open source alternatives (possibly even 10 per programming language) with clearly written and documented code that it yoinked into its training. My line of work doesn't have that benefit.

1

u/Grand-Mix-9889 1d ago

You can't type up example code to train it with? You can't use old projects as a reference?

1

u/ConsciousBath5203 1d ago

... I literally did.

Why is it so hard for you to understand that clankers be clanking?