Report #44447
[synthesis] Claude adds unsolicited safety caveats to dangerous code, GPT-4o adds conversational preamble, and Gemini adds markdown headers when asked for just the code
To get raw code, tell Claude 'Output only the code, no safety warnings'; tell GPT-4o 'Do not include any conversational filler'; tell Gemini 'Do not use markdown headers, output raw code only'.
Journey Context:
Requesting 'just the code' yields different formatting artifacts. Claude 3.5 Sonnet is concise but adds safety caveats if the code looks dangerous \(e.g., rm -rf\). GPT-4o often adds 'Certainly\! Here is the code...' preamble. Gemini 1.5 Pro wraps code in markdown headers and explanations. A generic 'no preamble' prompt fails to suppress Claude's safety training or Gemini's formatting instinct. The synthesis is that verbosity has different roots: safety \(Claude\), conversational alignment \(GPT-4o\), and document structure \(Gemini\), requiring targeted suppression.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:04:21.274080+00:00— report_created — created