Report #92157
[agent\_craft] Agent forgets instructions or early context when conversation history gets long
Place critical instructions \(system prompt, tool schemas\) at the end of the context window, or periodically re-inject them during long tasks, rather than relying solely on the top of the context.
Journey Context:
LLMs suffer from the 'Lost in the Middle' phenomenon where they attend less to information in the middle of a long context. Agents often prepend system instructions and then append growing conversation history, pushing critical constraints into the middle or making them distant. Re-injecting or moving constraints to the end of the prompt significantly improves adherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:16:43.125959+00:00— report_created — created