Audit reports 45+ token-accounting bugs across AI usage tools
state: acceleratingheat: mediumuncertainty: mediumrelevance: highinference-economics
What is this?
AgentMeasure is an open-source audit and testing project by GitHub user tongroy focused on AI usage and cost-metering tools. Its report says it tested about 110 tools and reproduced 45+ token-accounting bugs; search results also report that fixes were merged or accepted upstream, though they give differing counts. Reported failure modes include lost or duplicated usage records, retries counted as new operations, and cached tokens priced as fresh. This is evidence of concrete measurement problems in the audited tools, not proof that all AI cost dashboards are unreliable or that users were overcharged.
Why it matters
AI cost and usage meters inform model choice, budget limits, and whether agent workflows are worth their price, so silent accounting errors can distort real decisions. AgentMeasure reports 45+ reproduced bugs across roughly 110 tools, with a number of fixes accepted or merged upstream; its public fixtures could help vendors and users test their own tooling. The evidence is a project-led audit, not a representative estimate of how often dashboards fail, and metering errors do not by themselves show that providers overcharged customers.
Current assessment
AgentMeasure, an open-source project by tongroy, says it audited about 110 AI usage/cost tools and reproduced 45+ token-accounting bugs against synthetic fixtures. The linked report's search snippet gives one concrete example: ai-usage-inspector reportedly omitted 86% of a session's tokens; it also says a swarm bug was fixed upstream after a report and patch. Search results for project materials give inconsistent counts of fixes—15, 23, or 25 merged or accepted—so the exact total and status need verification. Reported bug classes include missing or duplicated records, retries counted as new operations, and cached tokens priced as fresh. Separate supplied reports describe inflated Claude Code usage statistics and a change to what an Ollama timing metric measures, while a SillyTavern release says it fixed inflated OpenAI tokenizer counts; these suggest metering and metric interpretation are broader practical concerns, but do not independently validate AgentMeasure's overall tally. The audit concerns usage accounting in tools and dashboards, not necessarily provider-side billing or actual overcharges. Its scope, fixture representativeness, affected tool versions, and real-world financial impact remain uncertain. Useful implication: treat third-party cost telemetry as something to validate against provider usage records and test cases before using it for budgeting or vendor comparisons.
Measured heat
now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 1857h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
Evidence (12) — ⭐ canonical anchor
Interpretation history
2026-10-22T11:22:48Z
audience grounding: high — AI cost and usage meters inform model choice, budget limits, and whether agent workflows are worth their price, so silent accounting errors can distort real decisions. AgentMeasure reports 45+ reproduced bugs across roughly 110 tools, with a number of fixes accepted or merged upstream; its public fixtures could help vendors and users test their own tooling. The evidence is a project-led audit, not a representative estimate of how often dashboards fail, and metering errors do not by themselves show that providers overcharged customers.
Decision trace
- 10-22 22:22groundAI cost and usage meters inform model choice, budget limits, and whether agent workflows are worth their price, so silent accounting errors can distort real decisions. AgentMeasure reports 45+ reprodu
- 10-20 15:34repriceNew periphery implementation (Costura self-hosted spend attribution) attached — same pattern as Tallyhook and CostClaw: a tool built to work around the token-accounting reliability gap. The corroborat
- 10-20 14:35attention_routeThe editor compared this story and chose to keep watching.
- 10-20 14:33attention_candidateattach
- 10-20 14:33attachSelf-hosted AI spend attribution tool (Costura) directly addresses the token-accounting reliability gap tracked in the AgentMeasure audit case.
- 10-20 14:33propose_attachSelf-hosted AI spend attribution tool (Costura) directly addresses the token-accounting reliability gap tracked in the AgentMeasure audit case.
- 10-14 22:56review_dormant28 days without material information; scheduled checks stopped
- 10-09 13:43feedback_briefingScott vote via UI
- 10-09 11:52attention_communicatedTongroy's AgentMeasure audit claims 45+ token-accounting bugs across ~110 tools; the independently corroborated core is Claude Code's /usage Stats overcounting ~2x due to per-content-block t
- 10-09 11:52attention_routeOperational impact on Scott's live routing layer; the ~2x overcount is independently corroborated and immediately verifiable. Valuable to know before the 6 PM briefing to adjust routing threshold
- 10-09 10:25attention_routeOperational impact on Scott's live routing layer; the ~2x overcount is independently corroborated and immediately verifiable. Valuable to know before the 6 PM briefing to adjust routing threshold
- 10-09 10:06attention_routeConverges on Scott's token-economics and agent-receipts doctrine with an operational impact on his live routing layer. The ~2x overcount is independently corroborated and immediately verifiable;
- 10-09 08:24repriceNew periphery implementation (Tallyhook per-client billing tool) attached but adds no new facts to the corroborated core — Claude Code ~2× overcount, SillyTavern fix, Ollama semantics change remain th
- 10-09 04:55attention_routeConverges on Scott's token-economics and agent-receipts doctrine with an operational impact on his live routing layer. The ~2x overcount is independently corroborated and immediately verifiable;
- 10-09 04:49attention_candidateattach
- 10-09 04:49attachPer-client billing tool for Claude Code/Codex logs directly addresses the token-accounting reliability problem the case tracks.
- 10-09 04:45propose_attachPer-client billing tool for Claude Code/Codex logs directly addresses the token-accounting reliability problem the case tracks.
- 10-08 14:52repriceThe WSJ story (hn.story.49964537) triggered a velocity spike (51× baseline) and the magnitude valve fired, confirming cross-platform spread at top-decile engagement — but this is renewed attention on
- 10-08 14:52drop_targetsquiet through full ladder or over cap 8
- 10-06 04:21sensor_dirtyvelocity_spike
- 10-06 03:22repriceThe case graduates to accelerating: the periphery has crossed from dev communities into mainstream business press (WSJ on unbudgetable AI spend, moving at top-decile velocity for its cohort) and comme
- 10-06 03:22groundConverges and is now operationally live: the independently corroborated Claude Code ~2x /usage overcount sits in exactly the token counters gating his LiteLLM/Langfuse cost-tiered routing and autonomy
- 10-06 02:30attachWSJ's high-engagement piece on enterprises unable to budget AI token spend is mainstream macro corroboration that cost measurement and predictability are now distorting spending decisions.
- 10-06 02:29propose_attachWSJ's high-engagement piece on enterprises unable to budget AI token spend is mainstream macro corroboration that cost measurement and predictability are now distorting spending decisions.
- 10-05 22:32drop_targetsquiet through full ladder or over cap 8
- 10-02 10:21repriceThe case's center of gravity has shifted from tongroy's unverified 45-bug audit to a corroborated pattern: Claude Code's ~2x Stats overcount (user recount with a concrete duplication me
- 10-02 10:21groundAgentMeasure is substantiated well beyond the headline: a released conformance suite testing exactly the semantics Scott's observability work prescribes (a retry is one logical operation, reasoni
- 10-02 09:31attachIndependent tooling that scans agent stacks for cost-amplification bugs reinforces the open case's claim that agent cost accounting is unreliable enough to distort spending.
- 10-02 09:28propose_attachIndependent tooling that scans agent stacks for cost-amplification bugs reinforces the open case's claim that agent cost accounting is unreliable enough to distort spending.
- 09-29 09:02drop_targetsquiet through full ladder or over cap 8
- 09-19 19:22repriceThe new same-author Show HN announcement positions AgentMeasure as a billing-audit product, but supplies neither an inspectable implementation nor independent validation of its 45-bug claim. The attac
- 09-19 19:21attachThis first-party GitHub artifact is direct corroboration that AgentMeasure is released as a health-check and billing-audit tool for unreliable AI cost accounting.
- 09-19 19:21propose_attachThis first-party GitHub artifact is direct corroboration that AgentMeasure is released as a health-check and billing-audit tool for unreliable AI cost accounting.
- 09-17 05:30repriceThe SillyTavern release summary alleges a fix to inflated tokenizer-command output, not demonstrated cost-dashboard or billing errors. Without primary release details or a connection to AgentMeasure,
- 09-17 05:22attachThe release fixes inflated tokenizer counts, providing a concrete corroborating example that AI cost dashboards can misreport token usage.
- 09-17 05:21propose_attachThe release fixes inflated tokenizer counts, providing a concrete corroborating example that AI cost dashboards can misreport token usage.
- 09-16 22:25repriceA separate Claude Code user now reports a concrete duplication mechanism and a raw-log recount, making dashboard overcounting a testable risk rather than just an audit headline. This supports the broa
- 09-16 22:21attachDetailed independent recounting reports the same kind of token-accounting duplication that AgentMeasure flags, strengthening the measurement-reliability case.
- 09-16 22:21propose_attachDetailed independent recounting reports the same kind of token-accounting duplication that AgentMeasure flags, strengthening the measurement-reliability case.
- 09-15 07:33repriceThe Ollama headline alleges a change in timing-metric semantics, not a token-counting or billing error, and provides no supporting implementation details. It adds a separate observability caution but