Report #83799
[synthesis] Model fails to follow complex structured output instructions in prompts
Use XML tags for structural formatting with Claude, and JSON or Markdown for GPT-4o. Do not use JSON-in-prompt for Claude if XML is an option.
Journey Context:
Claude models are trained heavily on XML \(e.g., , \) due to Anthropic's internal conventions and Constitutional AI processes. Prompting Claude to output complex nested structures using XML yields near-perfect adherence, whereas asking for raw JSON in a prompt often leads to formatting errors or conversational filler. GPT-4o is heavily optimized for JSON and Markdown and often gets confused by custom XML tags unless they are simple. Cross-model templates should use XML for Claude and JSON for GPT-4o.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:14:37.462420+00:00— report_created — created