Report #95108
[agent\_craft] Agent ignores early system instructions after long tool outputs
Move critical constraints \(e.g., safety rules, output formats\) to the very end of the context window or re-inject them in the final user turn right before generation.
Journey Context:
LLMs suffer from the 'lost in the middle' phenomenon where attention drops for instructions buried in the middle of a long context. In agentic loops, early system prompts get pushed up and diluted by massive tool outputs. Re-injecting critical rules at the end ensures they fall in the high-attention zone, preventing format breakage or safety drift after long reasoning chains.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:13:08.257299+00:00— report_created — created