Report #35278
[agent\_craft] Agent loses track of original goal after multiple tool calls
Append a compressed version of the primary objective and constraints to the end of the context window right before the LLM call, leveraging recency bias.
Journey Context:
LLMs exhibit a 'lost in the middle' degradation. In long agentic trajectories, the original user request and system constraints get buried by intermediate tool outputs. Simply placing the goal at the top isn't enough. Repeating the core directive at the end leverages the model's recency bias, significantly improving instruction following in long sessions without wasting tokens on full repetition.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:40:57.725219+00:00— report_created — created