Report #41341
[synthesis] Generated code has excessive or inconsistent vertical whitespace
Add 'Output compact code with minimal blank lines' to the system prompt for Claude; add 'Use standard PEP 8 formatting' for GPT-4o.
Journey Context:
Claude 3.5 Sonnet tends to generate Python code with excessive blank lines \(2-3 lines between functions\), which fails linters \(E303 too many blank lines\). GPT-4o tends to generate more compact code but sometimes misses blank lines around classes \(E302\). Gemini is usually fine but inconsistent. A simple instruction to adhere to PEP 8 specifically fixes GPT-4o, but Claude needs a stronger 'compact/minimal blank lines' instruction because its default style is highly vertical.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:51:59.139786+00:00— report_created — created