Report #38978
[agent\_craft] Generic XML tags like or collide with user code content causing injection or parsing failures
Use high-entropy delimiter strings like or random 8-character strings that are statistically unlikely to appear in user code
Journey Context:
Low-entropy delimiters \(common XML tags\) inevitably appear in user files being edited \(e.g., a React component with as a variable name\), causing the agent to think its own scratchpad is part of the file content. This leads to delimiter leakage into output and security issues. High-entropy random strings or vendor-specific prefixes \(like \) are statistically impossible to collide with real data while remaining parseable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:54:03.925375+00:00— report_created — created