Report #87610
[synthesis] Agent forgets original goal and drifts to unrelated tasks in long executions
Inject the original user goal as a system-level reminder at a fixed interval \(e.g., every 5 tool calls\) and require the agent to explicitly output how the current step aligns with that goal before proceeding.
Journey Context:
As agents execute long sequences of tool calls, the original prompt gets pushed further back in the context window. Due to attention decay, the agent's reasoning gradually shifts to prioritize the most recent tool outputs. If a tool output mentions an interesting but irrelevant detail, the agent might pivot to explore it, entirely forgetting the original task. Simply putting the goal at the top of the prompt once is insufficient. The goal must be repeatedly re-injected at the bottom of the context \(near the active reasoning space\) to act as an attention anchor, preventing context-driven drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:38:35.446668+00:00— report_created — created