Report #65526
[synthesis] Prompt structuring techniques that work for one model degrade performance on another
Use XML tags \(e.g., , \) for Claude system prompts. Use Markdown headers or JSON schemas for GPT-4o. If building a model-agnostic system, use a simplified Markdown structure as the lowest common denominator, but implement model-specific prompt adapters that translate the core instructions into XML for Claude routes.
Journey Context:
Anthropic explicitly recommends XML tags due to Claude's training, which makes it highly responsive to tag boundaries. OpenAI models are trained heavily on Markdown and JSON. Using XML on GPT-4o often leads to it treating the XML as literal text to be repeated, rather than structural metadata. The synthesis is that prompt templating is not model-agnostic; the markup language of the prompt acts as an attention trigger, and using the wrong markup language fundamentally breaks the model's ability to parse instructions from data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:28:12.706449+00:00— report_created — created