← Reddit

Claude Code writing much longer comments lately

Reddit · Either_Ad296 · August 15, 2026
Claude Code has been generating noticeably longer code comments over recent weeks, with ten to twenty line block comments appearing above thirty line functions that often duplicate information and re-explain nearby code. The generated comments provide accurate but redundant content such as restating library mechanics and explaining code narratives, and users attempting to limit verbosity through word-count restrictions find the behavior gradually returns during extended sessions.

Detailed Analysis

A recurring complaint has surfaced among Claude Code users: the tool has begun generating substantially longer, more verbose code comments than users are accustomed to, often producing ten-to-twenty-line comment blocks atop functions that span only thirty lines. The Reddit post describes a pattern familiar to many developers who rely on AI coding agents—comments that narrate historical changes to the code, restate well-documented library behavior, and redundantly re-explain the very line they precede. While the poster notes the content is technically accurate, it clutters the codebase in ways that feel unsuited for human-maintained repositories. Notably, even explicit project-level instructions capping comment length only partially solve the problem, with verbosity creeping back during long autonomous sessions, suggesting a systemic drift rather than a one-off quirk.

This behavior touches on a deeper tension in how AI coding agents manage context and memory. The poster raises a compelling hypothesis: verbose comments may not be a bug but a feature from the model's own perspective. If Claude Code lacks persistent memory across sessions, over-explaining code could function as a low-cost mechanism for the agent to "re-orient" itself when it revisits a file later, effectively using inline comments as an external scratchpad or context-recovery device. This would mean the verbosity isn't purely a stylistic failure but an emergent strategy for coping with the limitations of context windows and session boundaries—optimizing for the agent's own future comprehension at the expense of human readability and codebase cleanliness.

The issue also reflects a broader challenge facing agentic coding tools as they're used for longer, more autonomous stretches of work. Short interactive sessions, where a human is prompting and reviewing each change, naturally constrain output style because the user course-corrects in real time. But as tools like Claude Code are increasingly deployed for extended, semi-autonomous runs—executing multi-step tasks with less direct supervision—default behaviors like comment verbosity become more consequential, since there's less opportunity for a human to catch and prune unwanted patterns before they compound across a session or repository. This mirrors similar complaints across the AI coding tool ecosystem (including GitHub Copilot and Cursor) about models over-explaining, hedging, or padding output when operating with more autonomy or longer time horizons.

The unresolved questions the poster raises—whether this started with a specific model release, whether it's an intentional design tradeoff, and whether heavier commenting is simply the new normal for agent-maintained code—point to a broader unresolved debate in the AI coding space: as codebases become jointly authored by humans and AI agents, should stylistic conventions like comment density be optimized for human readability, machine context-recovery, or some negotiated middle ground? Anthropic has not publicly addressed this specific behavior change, and without release notes or changelogs explicitly documenting shifts in comment generation style, users are left reverse-engineering the model's tendencies through trial, error, and prompt engineering—an increasingly common dynamic as Claude Code's underlying models are updated more frequently than user-facing documentation can track.

Read original article →