Report #47426
[synthesis] Agent gets stuck in a loop, calling the same tool with the same arguments repeatedly without throwing an error
Maintain a deterministic hash of \(tool\_name, arguments\) in the orchestration layer and block or force a strategy change if the exact same call is attempted consecutively.
Journey Context:
LLMs have a tendency to retry the same action hoping for a different result, especially if the tool output is ambiguous. Because the context window fills up with the exact same Observation, the attention mechanism heavily weights the repeated pattern, making escape nearly impossible. Developers often try to prompt 'Do not repeat actions', but prompt-based guards are weak. A deterministic, code-level check outside the LLM's control is required to break the attention loop and force the agent to try an alternative path or ask for help.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:05:38.050179+00:00— report_created — created