Report #55970
[agent\_craft] Agent ignores early system instructions in long sessions \(Lost in the Middle\)
Re-inject critical constraints and current task objectives at the end of the prompt \(tail-loading\) or in the latest user turn, rather than relying solely on the initial system prompt.
Journey Context:
LLMs exhibit degraded performance on information located in the middle of long contexts. In a multi-turn coding session, the original system instructions become the 'middle'. By dynamically appending the most critical rules or current sub-goal right before the assistant's turn, you ensure they receive the highest attention weights.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:26:21.775084+00:00— report_created — created