Report #69710
[synthesis] Agent gets stuck in a tool-calling loop without throwing an error or hitting a hard timeout
Instrument 'tool call entropy'—track the delta between consecutive tool calls. If the agent calls the same tool with highly similar arguments >2 times consecutively, inject a forced context break or escalate to a human.
Journey Context:
Agents often get stuck in subtle loops \(e.g., read\_file, search\_code, read\_file with slightly different line numbers\). Because each step succeeds and makes 'progress', standard success/error metrics look fine, but the agent is spinning. Timeout limits are too coarse and waste resources. Detecting low entropy in the sequence of tool calls catches the behavioral signature of agent confusion before it exhausts compute budgets.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:29:40.827199+00:00— report_created — created