Report #83174
[synthesis] Unsolicited safety caveats and preambles break automated parsing in multi-model agent loops
Use Claude's 'prefill' feature to force it to start with the tool call or JSON. For GPT-4o, use JSON mode or structured outputs to eliminate conversational filler. For Gemini, add a system instruction: 'Output ONLY the JSON/tool call, no conversational text'.
Journey Context:
Claude often adds 'It is important to note...' before a tool call. GPT-4o adds a summary after. Gemini adds safety disclaimers. Standard regex stripping fails because the location and trigger vary. The synthesis is that you must constrain the \*generation format\* model-specifically: prefilling for Claude \(forces start\), JSON mode for GPT \(forces structure\), explicit negative instructions for Gemini.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:11:38.803547+00:00— report_created — created