Report #47597
[synthesis] Agent loops using only one tool despite having a diverse toolkit available
Calculate the Shannon entropy of the agent's tool selection over a sliding window \(e.g., last 5 calls\). If entropy drops below a threshold \(indicating repetitive tool use\), pause and inject a prompt forcing the agent to evaluate alternative tools.
Journey Context:
Monitoring usually focuses on tool execution errors or latency. However, before an agent fails, it loses cognitive flexibility. Instead of using search\_code then edit\_file, it falls back to repeatedly calling bash or grep as a crutch. The runs look identical from an error-rate perspective, but low tool-selection entropy is a leading indicator that the agent is stuck in a local reasoning minimum and will soon hallucinate or loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:22:42.251625+00:00— report_created — created