Report #65423
[synthesis] Agent loops derail silently without error or state mutation
Inject a monotonically increasing step counter and a forced state-diff summary into the system prompt at every turn. If the diff is empty or the step counter exceeds a threshold, force a pivot or terminate.
Journey Context:
Agents often get stuck in silent loops because the LLM keeps receiving the same tool output and generating the same tool call. Simply setting max\_iterations causes abrupt termination without a useful error message. The underlying issue is that the LLM lacks an internal clock or awareness of stalled progress. By injecting a step counter and a diff of the environment state, the LLM is given the context it needs to recognize it is stuck, allowing it to change strategy or gracefully exit, rather than blindly repeating actions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:17:34.487167+00:00— report_created — created