1,510 of my agent's tool calls failed in November. 16 retries were identical.
I keep reading that coding agents get stuck hammering the same broken call. I wanted to know how often that happens in my own setup, so I went through my Claude Code session logs for 1 to 30 November. They sit on disk as one file per session, subagents included.
508 session files, 62,705 tool calls, and 1,510 of them came back as errors. About half were Bash, about a quarter were browser automation.
After a failure, the very next call was exactly the same call, same tool and same input, 16 times. The other 1,479 times something changed: a different flag, a different path, a different tool.
Failures mostly came alone. 1,179 were single failures, 111 came in pairs, 27 in threes, and the longest run was 7 in a row, a browser loop of navigate, read the page, navigate again.
So a retry cap that matches on the exact call would have fired almost never for me. What I'd actually want to catch is that 7 run, where every call was a little different and the agent was still going around in a circle.
Limits: one person, one month, mostly Flutter apps, SEO pipelines and browser work. "Error" means the tool result was flagged as an error, which includes 143 permission denials and hook blocks, not only real breakage.
If you cap retries on your agents, what do you match on to decide that two attempts are the same attempt?
p/vitals-3
p/netfox
p/meridian-16
p/google-cloud-platform
p/producthunt
p/reso
p/runevr
p/many-displays
p/expert-chase-deleted-1107920
p/magic-lasso-adblock
p/dino-kids
p/gatrends
p/problemhunt
p/monocloud-for-startups-free-for-1-year
p/kodlo
p/slay-3
p/dex-by-exmergo
Replies
Really useful numbers, thanks for counting instead of guessing. Your 7 run looks like a loop we hit, where the calls differed and the result didn't. Our agent was clicking on an iOS simulator preview, and on that Xcode version the clicks never reached the app, so every attempt came back to the same unchanged screen.
So I'd match on the outcome, not the call. Two attempts are the same attempt when what came back is the same, the same error text with ids and timestamps stripped, or the same page or screenshot. Different inputs with an identical outcome is the circle; different outcomes, even all failures, usually means the agent is still learning something.