Report #6976
[agent\_craft] Agent forgets initial system instructions or early tool outputs as conversation history grows \(Lost in the Middle\)
Place critical instructions and the most recent/relevant context at the very beginning and end of the prompt window. Periodically re-inject top-level directives after long tool outputs.
Journey Context:
LLMs suffer from the 'Lost in the Middle' phenomenon where attention mechanisms underweight information in the center of long contexts. Agents often append tool outputs to the middle/end, pushing the system prompt further away. Simply increasing context size doesn't fix attention dilution. Re-injection ensures the primary objective remains salient.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:34:36.274778+00:00— report_created — created