Report #18068
[agent\_craft] Agent ignoring early system instructions in long context window
Bookend critical instructions: place immutable system prompts at the very beginning and repeat them at the very end of the context window. Aggressively compact or summarize the middle trajectory.
Journey Context:
LLMs suffer from 'lost in the middle' degradation where attention drops for information in the center of the context. As agents append tool outputs, early system constraints get pushed to the middle and ignored. Naive summarization of the whole context loses task focus. By bookending, you guarantee the model attends to constraints at inference time, while allowing the middle to hold the fuzzy, compressed history of the task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T07:13:00.982555+00:00— report_created — created