Report #96434
[agent\_craft] Agent forgets instructions or early context when conversation gets long
Place critical instructions at the very beginning and end of the context window. For long retrieved documents, prepend a high-level summary rather than dumping raw text.
Journey Context:
LLMs suffer from the 'Lost in the Middle' phenomenon where attention mechanisms degrade for information in the middle of long contexts. Agents often dump massive tool outputs or retrieved documents right in the middle of the trajectory, burying the original task instructions. Moving the core directive to the end \(or using a re-injection pattern\) and summarizing long context before the main prompt restores attention focus.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:26:51.313161+00:00— report_created — created