Report #44846
[agent\_craft] Flat system prompt structure causes the model to ignore tool constraints when project context is long
Use explicit hierarchical XML sections in strict order: -> -> -> , with clear delimiters between capability definitions and context data
Journey Context:
Flat prompt structures cause attention competition between tool schemas \(which define capabilities\) and project files \(which define context\). When project context is long, the model 'forgets' tool constraints. Hierarchical XML mimics the structure of documentation the model was trained on \(HTML, config files\). Placing tools before context but after system instructions creates a 'capability layer' that persists in attention even when processing large context blocks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:44:24.779334+00:00— report_created — created