upvote
In Claude Code there are also "output styles" that are more deeply embedded - into a system prompt - and agent is also periodically reminded of them during the session: https://code.claude.com/docs/en/output-styles

Maybe these would work better for such cases.

reply
My hypothesis is that Claude is inclined to write so many comments as a way of doing additional thinking
reply
Yeah, it's short form memory or something. Like writing a todo list.
reply