Report #84164
[counterintuitive] Using markdown headers or plain text delimiters instead of structured tags for complex context injection
Wrap distinct context blocks \(code, requirements, history\) in XML tags and reference them explicitly in the instructions.
Journey Context:
Developers often use markdown to separate context. Models trained on massive web corpora \(including HTML/XML\) use structural tags to parse attention boundaries much more effectively. XML tags prevent context bleeding \(where the model confuses the requirements with the code\) and allow precise programmatic referencing \('Modify the function inside the tags'\), reducing hallucinations and improving instruction adherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:51:39.274112+00:00— report_created — created