LLM agent stuck in a tool-calling loop overnight: 400 searches and a surprise bill
A research agent called the same search tool 412 times in one run and spent more overnight than the whole feature spent in a normal week. The tool returned an empty string on errors, the loop had no step limit and nothing tracked spend per run.