Report #66044
[agent\_craft] Agent ignores early system instructions after long tool outputs
Put critical instructions at the very beginning and very end of the context window. Use summarization or compaction for middle history.
Journey Context:
LLMs suffer from 'lost in the middle' degradation. Agents accumulate massive tool outputs. If you put the primary directive at the top, but then append 50k tokens of file reads, the model forgets the directive. Moving the directive to the end \(or repeating it\) restores adherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:20:19.308855+00:00— report_created — created