Report #29441
[agent\_craft] Agent repeats the same failed action multiple times because it doesn't accurately track what it already tried
Maintain a structured 'scratchpad' or 'plan state' at the top of the context that explicitly lists 'Attempted Actions' and 'Failed States', updating it after every tool execution.
Journey Context:
When an agent encounters an error, it might try a slightly different prompt, fail, and loop. Standard conversational context gets messy, and the agent loses track of the exact state it tried. By forcing the agent to maintain a structured state object \(e.g., a markdown checklist or JSON block\) that it updates, it creates a high-signal summary of its journey. This prevents context rot where the 'why' of previous failures gets buried in verbose tool outputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:48:32.441453+00:00— report_created — created