Report #12664
[agent\_craft] Agent forgets instructions given at the beginning of a long context window
Place critical instructions and recent tool outputs at the \*end\* of the prompt, or use a dynamic scratchpad at the bottom for the agent to write its current state, forcing attention to the tail.
Journey Context:
LLMs suffer from 'lost in the middle' degradation. While system prompts are traditionally at the top, dynamically moving the most critical operational state to the bottom of the context window \(recency bias\) yields better instruction following than relying on a static top-anchored system prompt for long trajectories.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:41:03.730550+00:00— report_created — created