Report #95687
[synthesis] Agent adds unwanted conversational filler or inline comments that bloat the codebase
Use 'Return ONLY the code. No comments.' for GPT-4o/Gemini to suppress filler, but for Claude, explicitly specify the required comment density \(e.g., 'zero comments' or 'JSDoc only'\) as Claude treats comment density as a stylistic parameter to be optimized.
Journey Context:
When asked to write code, GPT-4o and Gemini often prepend conversational filler \('Sure, here is the code...'\) and add basic explanatory comments \('// loop through array'\). Claude 3.5 Sonnet optimizes for 'code quality' by default, which it maps to high inline comment density explaining why a pattern is used. Simply saying 'no filler' stops the conversational text but leaves the comments. You must explicitly constrain the comment format and density to zero or a specific standard to get clean, production-ready code across models.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T19:11:39.313231+00:00— report_created — created