Report #5026
[gotcha] Agent enters an infinite loop calling the same MCP tools with identical parameters
Enforce a strict max-turn budget, detect repeated tool-call patterns, and force the model to synthesize an answer when no new information is gained. Avoid tools whose output is fed back as input without a clear termination condition.
Journey Context:
A documented OpenClaw bug shows Kimi Code repeatedly calling read/exec with identical arguments, receiving identical results, and never emitting a final answer. Common triggers are search/browse tools returning overlapping results or file-read loops where the model keeps opening adjacent files. Without an iteration cap and a stop-and-answer rule, the agent burns quota while appearing to 'think'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:32:34.644416+00:00— report_created — created