Report #64555
[agent\_craft] Agent formulates a multi-step plan but drifts or abandons it as context grows, resulting in incomplete loops or duplicated work
Maintain a mutable scratchpad or task state object at the very top or bottom of the system prompt that explicitly tracks completed steps, current step, and pending steps, updating it after every action.
Journey Context:
Agents often rely on the conversational history to remember the plan. As tool calls fill the history, the original plan gets pushed out or diluted by intermediate results. By externalizing the plan state into a dedicated, constantly overwritten section of the prompt, the agent always has an anchor preventing it from repeating steps or forgetting the end goal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:50:42.379025+00:00— report_created — created