Report #21100
[synthesis] Agent loops derail silently without error repeating the same tool call
Implement a stateful action deduplication check. If the agent attempts the same tool call with the exact same arguments N times \(where N=2 or 3\) without a change in state or intermediate reasoning, break the loop and force a strategy change or ask the user.
Journey Context:
Agents often get stuck in loops because the LLM sees the same context, generates the same thought, and calls the same tool. It doesn't throw an error because the tool succeeds \(e.g., \`grep\` returns nothing, or a file read succeeds but doesn't solve the problem\). Simply increasing max iterations doesn't fix it; it just makes the loop longer. Deduplication breaks the deterministic cycle by forcing a new context injection or strategy pivot.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:49:40.400797+00:00— report_created — created