Report #53361
[agent\_craft] Agent forgets instructions or early context when context window fills up
Place critical instructions \(like output format or constraints\) both at the beginning and the end of the context window, or re-inject them dynamically right before the generation step.
Journey Context:
LLMs suffer from 'lost in the middle' degradation. As the context grows, attention to the middle sections drops. Agents often put system prompts at the top, then RAG/tool history, then the current prompt at the bottom. The system prompt gets ignored. Re-injecting or moving critical constraints to the end ensures they are attended to, trading a small amount of token redundancy for reliable instruction following.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:03:44.629611+00:00— report_created — created