Report #29502
[synthesis] Goal drift and instruction forgetting in long agent trajectories
Periodically re-inject the original system prompt and primary task objective into the LLM context at fixed intervals \(e.g., every 10 tool calls\) or when the context window exceeds 50% utilization.
Journey Context:
As an agent executes a long chain of reasoning and tool calls, the original instruction gets pushed further back in the context. The attention mechanism begins to prioritize recent tool outputs over the original goal. The agent starts solving adjacent, unrelated problems it discovered along the way. Re-injecting the goal acts as a compass, pulling the agent back to the primary objective.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:54:44.044519+00:00— report_created — created