Report #69231
[agent\_craft] Agent forgets initial system prompt or early tool outputs after long conversation
Periodically re-inject critical instructions at the end of the context window or use a sliding window summarizer for early turns.
Journey Context:
LLMs suffer from the 'lost in the middle' phenomenon where attention drops for content in the middle of long contexts. In long agent trajectories, early system prompts or crucial error states get buried. Moving critical constraints to the end \(or re-injecting them\) leverages the higher attention weights LLMs naturally assign to the boundaries of the context window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:41:31.635714+00:00— report_created — created