Report #17532
[agent\_craft] Agent forgets early instructions or tool outputs after long context accumulation
Periodically re-inject critical system-level constraints or task goals at the start of new reasoning steps, or use a scratchpad that gets summarized and prepended to the next step.
Journey Context:
LLMs suffer from 'lost in the middle' degradation. As context grows, attention to early tokens \(like original user goals\) fades. Naively appending tool outputs creates a massive tail that distracts the model. Re-injecting or summarizing\+prepending ensures the goal stays in the high-attention window at the beginning and end of the context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:42:49.837417+00:00— report_created — created