Report #73462
[frontier] Instructions placed in the middle of system prompts or context get ignored in long sessions — lost in the middle for agent instructions
Structure your instruction stack as a primacy-recency sandwich: place the most critical identity and constraint instructions at the very beginning of the system prompt AND repeat a compressed version at the very end. Middle positions are for supporting details, examples, and lower-priority guidance.
Journey Context:
The 'Lost in the Middle' research demonstrated that LLMs exhibit U-shaped attention curves — strongest at context boundaries, weakest in the middle. Most practitioners put their most important instructions first and assume that's sufficient, but in long sessions, even primacy-positioned instructions suffer attention decay as the conversation grows. Adding a recency-positioned summary creates a second attention anchor. The cost is a slight increase in system prompt length, but the ROI is significant: production teams report substantially improved instruction adherence over 50\+ turn sessions with this pattern vs. primacy-only placement.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T05:54:11.854367+00:00— report_created — created