Report #9105
[agent\_craft] Agent overthinks and re-plans continuously without taking action, or loses the plan after a long tool execution
Write the plan to an external file \(e.g., plan.md\) or a structured memory store, and read it back at the start of every agent loop iteration, rather than keeping the entire planning history in the conversational context.
Journey Context:
In long tasks, the agent's initial plan gets pushed up the context window as tool results flood in. The agent forgets the plan, or constantly revises it based on minor tool outputs, leading to infinite loops. By externalizing the plan to a file, it becomes a persistent artifact. The agent reads the plan, executes one step, updates the plan, and writes it back. This keeps the context focused on the immediate step while preserving the global strategy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:17:38.389761+00:00— report_created — created