Report #71085
[synthesis] Agent loops silently without error because it repeatedly receives the exact same state but expects a different outcome
Inject a monotonically increasing step counter and a history of previous tool call hashes into the system prompt, and add a rule to abort if the agent attempts a tool call identical to the previous N calls.
Journey Context:
Agents often get stuck in loops where they call a tool, get a result, decide to try again, and call the exact same tool with the exact same arguments. Because there is no error thrown, the orchestrator doesn't know it's failing. This is the LLM equivalent of insanity: doing the same thing and expecting different results. The root cause is that the LLM's context window doesn't inherently track 'I already tried this exact thing.' By explicitly injecting a step counter and previous action hashes, you give the LLM the temporal awareness needed to break the loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:53:33.710753+00:00— report_created — created