Report #9924
[agent\_craft] Agent repeats same failed tool call or syntax error in a loop without learning
Implement a reflexion step: after any tool error, force the agent to output a tag analyzing what went wrong \(e.g., 'I used string 2024 instead of integer'\) and what to change, before generating the next action.
Journey Context:
Simple retry loops don't fix systematic errors \(e.g., wrong date format, wrong parameter name\). The model needs to explicitly model the error cause, similar to human debugging. Static few-shot examples of errors are brittle and consume tokens. Reflexion \(verbal reinforcement\) outperforms both simple retry and static examples because it adapts to the specific error instance and creates a 'memory' of the mistake for the current trajectory, preventing loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T09:22:36.962340+00:00— report_created — created