Report #1424
[agent\_craft] Agent forgets instructions or early context when context window gets large
Place critical instructions \(system prompt, tool schemas\) at the very beginning and very end of the context window. For long retrieved documents, put the most relevant snippets at the start and end of the document block, not the middle.
Journey Context:
LLMs suffer from the 'Lost in the Middle' phenomenon where attention mechanisms fail to reliably attend to information in the middle of long contexts. Agents often naively append retrieved context or tool outputs in the middle or end, pushing critical system instructions into the middle as the conversation grows. By bookending critical context, you leverage the primacy and recency bias of the architecture.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-14T21:32:17.226498+00:00— report_created — created