PulseAugur
EN
LIVE 11:55:28

Claude Code's token usage stats inaccurately doubled due to bug

Users of Claude Code have reported that the tool's `/stats` command inaccurately doubles their token usage. This discrepancy arises because the command counts each part of a multi-part reply as a separate instance, leading to inflated numbers. The author provides a Node.js script to calculate accurate token counts by de-duplicating message IDs and also developed a tool called `aurafarm` that offers a corrected year-in-review summary of Claude Code usage. AI

IMPACT This bug in Claude Code's usage tracking could lead to user confusion about their token consumption and associated costs.

RANK_REASON The cluster discusses a bug in a specific feature of a software tool and provides a workaround and a separate tool to address it.

Read on Medium — Claude tag →

AI-generated summary · Google Gemini · from 2 sources. How we write summaries →

Claude Code's token usage stats inaccurately doubled due to bug

How we ranked this

Signal score
27 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
The cluster discusses a bug in a specific feature of a software tool and provides a workaround and a separate tool to address it.
Source corroboration
2 independent sources
Multiple independent publishers reporting the same story raises confidence that it's real and newsworthy.
Topics
product, other
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

Full methodology in our editorial standards.

COVERAGE [2]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Kartik Gupta ·

    Why Claude Code's /stats shows double your tokens

    <p>Claude Code's <code>/stats</code> screen told me I used 4.7 billion tokens this year. I used about 2.4 billion. Here is why, how to check your own numbers, and what I built to show the real ones.</p> <h2> One reply, several lines </h2> <p>Claude Code keeps every session as a t…

  2. Medium — Claude tag TIER_1 English(EN) · K A R T I K ·

    Why Claude Code’s /stats shows double your tokens

    <div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@k.a.r.t.i.k.2007.17/why-claude-codes-stats-shows-double-your-tokens-1050cf152392?source=rss------claude-5"><img src="https://cdn-images-1.medium.com/max/1200/0*azZn8sYsHsdZnl-n.png" width="120…