Report #9156
[agent\_craft] Agent enters infinite loop or ignores tool errors, repeatedly calling the same failing tool with identical arguments
Inject the error message as an \`observation\` in the ReAct loop with explicit text: 'Observation: The tool X failed with error Y. Do not retry the same arguments; modify your approach.'
Journey Context:
In the ReAct paradigm, the model alternates between Thought and Action. If the Action \(tool call\) fails, the environment must return the error as an Observation. Without explicit instruction not to retry identically, the model often loops because it sees the same context state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:22:43.268378+00:00— report_created — created