Report #88188
[agent\_craft] Agent ignores instructions or facts placed in the middle of a long context window
Put critical instructions at the very beginning and end of the context. Use summarization for intermediate steps rather than keeping raw logs.
Journey Context:
LLMs suffer from 'Lost in the Middle' degradation. Agents that just append tool outputs to a growing array eventually lose track of the original goal. Naive RAG just dumps text in the middle. Better to structure context as: \[System/Goal\] -> \[Compacted History\] -> \[Current State/Immediate Next Step\].
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:36:34.274453+00:00— report_created — created