Report #103112
[gotcha] The model falls into a loop, calling the same tools over and over without making progress
Cap the number of tool-call iterations per turn, detect repeated identical tool calls, and require the model to emit a final answer after the limit. Provide a skip\_to\_conclusion or ask\_user tool so the model can exit gracefully instead of retrying forever.
Journey Context:
Agent loops usually stop only when the model's response no longer contains tool\_use blocks. A model can get stuck re-trying a failed tool, re-reading the same file, or oscillating between two tools. Without an explicit iteration ceiling the client may burn tokens, hit provider tool-use limits, or run forever. The right boundary is not 'never loop' but 'loop with a budget': track the history of calls, deduplicate back-to-back identical invocations, and surface the stalemate to the user. This is why production clients show tool-use-limit banners and ask to continue.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T05:02:04.827802+00:00— report_created — created