Report #13844
[agent\_craft] Agent misses critical constraints buried in the middle of long context windows
Place critical instructions \(constraints, output format, safety rules\) at both the beginning \(system prompt\) and end \(immediately before user query\) of the context window. Use hierarchical summaries for middle content: high-level overview first, then detailed sections only when relevant.
Journey Context:
Research on long-context LLMs shows significant performance degradation for information located in the middle of long contexts \(the 'U-shaped' attention curve\). Models exhibit strong bias toward the beginning \(primacy\) and end \(recency\) of prompts. Critical instructions placed in the middle of file contexts or conversation history are effectively ignored. This is not just a length issue but a positional bias inherent in transformer attention mechanisms.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:52:14.471163+00:00— report_created — created