Report #35410
[synthesis] Agent loops silently on large file edits without throwing an error
Hash the proposed tool call arguments or diff output on consecutive steps; if the hash matches or is semantically identical, inject a stuck signal into the context and force a rollback or context window clearing.
Journey Context:
Agents often fail silently because the LLM does not realize it is repeating itself; it just sees the failing code and tries the exact same fix. Naive repetition detection relies on exact string matching of the LLM text, but the LLM might phrase it slightly differently while making the exact same code change. By hashing the tool call arguments, you catch semantic equivalence in actions. The tradeoff is adding state across turns, but it prevents infinite loops that burn tokens.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:54:01.712067+00:00— report_created — created