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.
AI-generated summary · Google Gemini · from 2 sources. How we write summaries →