[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"term-t\u002Ftool-use-loop":3,"related-t\u002Ftool-use-loop":59},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":44,"meta":45,"navigation":46,"path":47,"related":48,"seo":53,"sitemap":54,"stem":57,"subcategory":6,"__hash__":58},"terms\u002Fterms\u002Ft\u002Ftool-use-loop.md","Tool Use Loop",null,{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A tool use loop is when an AI agent gets stuck calling the same tool over and over. It reads a file, reads it again, reads it again. Something's off and it can't figure out what. Budget caps save you.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A tool use loop is a failure mode where an AI agent enters a repetitive cycle of calling the same tool (often with identical or near-identical arguments) without making progress. Caused by errors the model can't resolve, missing feedback, or ambiguous task state. Mitigations: iteration caps, loop detection, and providing explicit stopping conditions.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"Agent got stuck in a tool use loop — capped at 50 iterations.\" \u002F \"Detect identical successive tool calls and break the loop.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"ai","A tool use loop is when an AI agent gets stuck calling the same tool over and over. It reads a file, reads it again, reads it again.","intermediate","md","t",{},true,"\u002Fterms\u002Ft\u002Ftool-use-loop",[49,50,51,52],"Tool Use","Agent Loop","Agent Deadlock","Iteration Cap",{"title":5,"description":41},{"changefreq":55,"priority":56},"weekly",0.7,"terms\u002Ft\u002Ftool-use-loop","CpxvClsXETCDjAHCaP-ol7DL77VVrGQo4ZOCEo_OqGQ",[60,64],{"title":51,"path":61,"acronym":6,"category":40,"difficulty":62,"description":63},"\u002Fterms\u002Fa\u002Fagent-deadlock","advanced","Agent deadlock is when two or more AI agents wait on each other forever. Agent A waits for Agent B's response. Agent B waits for Agent A's. Neither moves.",{"title":49,"path":65,"acronym":6,"category":40,"difficulty":42,"description":66},"\u002Fterms\u002Ft\u002Ftool-use","Tool use is when an AI can call external functions, APIs, or programs to do things it can't do alone.",1776518319532]