Report #53040
[synthesis] Generated code or docs contain unsolicited AI disclaimers
Add a strict negative constraint in the system prompt: 'Do not include any disclaimers, AI self-references, or caveats in the code or documentation.' This is strictly required for GPT-4o and Gemini, while Claude responds better to positive framing: 'Write production-ready code with no meta-commentary.'
Journey Context:
Agents generating documentation or code comments often produce unprofessional output with AI disclaimers. OpenAI and Gemini models are heavily RLHF'd to include these. Negative prompting \('Do not...'\) works best for them, while Claude's instruction-following sometimes interprets negative prompts as the very thing to avoid, making positive framing more reliable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:31:23.218701+00:00— report_created — created