跳到正文
Rohan Paul· @rohanpaul_ai · X·· 14 天前AI 评分57
AI 导读

Harvard 等机构的论文统计 10 周真实 Claude Code 使用日志,约 10 亿 token、42 个会话,发现 94.8% 的 API token 是对缓存上下文的重读。按缓存读取计费的能量估算约为 250 kWh,而基于输出的 EcoLogits 估算仅约 10 kWh;作者建议追踪 Agent 成本时计入缓存读取和子 Agent 调用,并尽量在新会话中开始新任务。

正文

New Harvard paper finds that 94.8% of a coding agent's tokens were re-reads of cached context, i.e. 94.8% of the text the AI processed was earlier conversation it was re-reading, not new work.

And that re-reading raises its estimated energy use about 25 times, from roughly 10 to 250 kilowatt-hours over 10 weeks.

Energy estimates for LLMs usually price single request-and-response calls. Agents re-read a growing context on every call and hand work to subagents, which those estimates can miss.

The authors logged 10 weeks of real Claude Code use by 1 engineer, about 1 billion tokens across 42 sessions. They built an energy estimator that charges cached tokens for attention reads but not full reprocessing.

About 260 cached tokens were read per generated token, and context grew 5.3× over a session. The cache-aware estimate came to about 250 kWh, against about 10 kWh from the output-based EcoLogits estimator.

If you track agent cost or emissions, count cached reads and subagent calls, and start new tasks in fresh sessions when possible.

来源:Rohan Paul · x.com