Report #83529
[agent\_craft] Agent loses track of initial instructions or early tool outputs in long sessions
Continuously re-inject critical instructions \(system prompt\) and recent summaries at the top/bottom of the context window, or use sliding window summarization.
Journey Context:
LLMs suffer from the 'Lost in the Middle' phenomenon where they ignore information in the center of long contexts. Agents that append tool outputs indefinitely will find the model forgetting the original task. Simply appending to the context is a common mistake. The right call is to treat the context window as a sliding buffer: summarize older turns and re-pin the core system instructions so they are always at the absolute beginning or end of the prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:47:29.121918+00:00— report_created — created