PulseAugur
中
实时 11:55:30
English(EN) Why Claude Code’s /stats shows double your tokens

Claude Code 的 token 使用统计因 bug 而出现不准确的双倍计数

Claude Code 的用户报告称,该工具的 `/stats` 命令会不准确地将 token 使用量翻倍。这种差异的出现是因为该命令将多部分回复的每个部分都计算为单独的实例,导致数字膨胀。作者提供了一个 Node.js 脚本,通过去重消息 ID 来计算准确的 token 计数,并开发了一个名为 `aurafarm` 的工具,该工具提供了 Claude Code 使用情况的修正版年度回顾总结。 AI

影响 Claude Code 使用跟踪中的此 bug 可能导致用户对其 token 消耗和相关成本感到困惑。

排序理由 该集群讨论了一个软件工具特定功能的 bug,并提供了一个解决方法和一个单独的工具来解决它。

在 Medium — Claude tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 2 个来源。 我们如何撰写摘要 →

Claude Code 的 token 使用统计因 bug 而出现不准确的双倍计数

本文如何被排名

Signal score
27 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
该集群讨论了一个软件工具特定功能的 bug,并提供了一个解决方法和一个单独的工具来解决它。
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.

完整方法见我们的编辑标准。

报道来源 [2]

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

    为什么 Claude Code 的 /stats 显示的 token 数是你的两倍

    <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 ·

    为什么 Claude Code 的 /stats 显示的 token 数是你的两倍

    <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…