Report #10921
[gotcha] Agent stuck in infinite loop calling two tools that trigger each other
Implement a strict maximum depth or step limit for tool calls per user turn; prevent tools from returning instructions that directly trigger another tool without user confirmation.
Journey Context:
An attacker crafts a prompt or tool output that instructs the agent to call Tool A, whose output instructs the agent to call Tool B, which instructs the agent to call Tool A. This creates a Denial of Service \(DoS\) or massive token consumption loop. Agents without strict step limits will happily loop until they exhaust context windows or API credits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:07:48.145099+00:00— report_created — created