LLM Cost Tracking for Agent Evals: Gate on Cost per Success
Blog post from TestMu AI
LLM agent evaluations should track cost per verified successful task alongside pass rate, calculating total agent spending across all attempts—including failures, retries, tool loops, and sub-agents—divided by successes supported by observed evidence rather than self-reports. The proposed approach tags every model call with an evaluation case and role, records token usage with a run-pinned price table, separates model-judge costs from agent costs, and uses repeated runs with high-percentile budgets to account for variability. A Pareto-style release gate then compares a candidate against a baseline on both pass rate and cost per verified success, rejecting changes that are more expensive without meaningful quality gains while requiring explicit decisions for accuracy-cost tradeoffs. Research cited in the text argues that accuracy-only benchmarks can reward costly retrying and complex agent designs without improving outcomes, while existing tools such as promptfoo, Langfuse, DeepEval, and Braintrust can record cost but generally require custom logic to enforce this combined metric. For evidence-based verification, Agent Assurance and its Rook CLI are presented as tools that assess observed effects such as file changes, records, and tool calls, helping ensure that the successes used in cost calculations are genuinely verified.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| LLM | 15 | 6,033 | 1,166 | 244 | +15% |
| AI Agents | 4 | 5,609 | 1,414 | 272 | -6% |
| Agent Evaluations | 4 | 211 | 105 | 35 | +19% |
| Cost per task | 3 | 130 | 68 | 32 | +103% |
| Observability | 2 | 2,762 | 731 | 188 | -15% |
| OpenTelemetry | 2 | 708 | 130 | 59 | -11% |
| AI Guardrails | 1 | 454 | 179 | 65 | -18% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.