Report #11131
[agent\_craft] Agent loses original user goal during long execution loops
Pin the primary user objective and success criteria at the top of the system prompt or a persistent scratchpad, and force the agent to explicitly re-evaluate the current state against this goal every N steps.
Journey Context:
As context grows, the initial instruction gets pushed further from the attention window's focal point. Agents start solving sub-problems that diverge from the main goal \(e.g., going down a dependency rabbit hole\). Re-injecting the goal forces alignment and prevents infinite loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:39:14.958660+00:00— report_created — created