Report #67788
[synthesis] Agent repeatedly calls the same tool with identical arguments without throwing an error,陷入 a silent loop
Hash the tool name and arguments at each step and maintain a short-term cache; if a duplicate call is detected, inject a system message forcing a strategy change.
Journey Context:
Agents often get stuck in loops because the environment state doesn't change after a tool call \(e.g., trying to edit a read-only file, or a search returning the same results\). Since no error is thrown, the agent's self-reflection sees no reason to stop. By tracking the exact tool call signature, you break the assumption that 'no error means progress,' forcing the agent to realize it is stuck and try an alternative path.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:15:53.617757+00:00— report_created — created