Report #62500
[architecture] Agent ignores critical retrieved memories or instructions because they are placed in the middle of a long context window
Structure the prompt so that highly critical instructions and the most recent/important retrieved memories are at the very beginning and very end of the context window. Limit the volume of injected memories.
Journey Context:
LLMs exhibit a U-shaped attention curve. They pay close attention to the beginning and end of the context window, but ignore or hallucinate around information placed in the middle. If you dump 10 retrieved memories into the middle of a prompt, the agent might miss the crucial one. Put system prompts and final instructions at the ends, and keep injected memories concise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:23:23.598577+00:00— report_created — created