PulseAugur
中
实时 06:41:58
English(EN) I measured my coding agent's tokens. The biggest number was gone the next day

Claude Code 的 token 使用量因缓存和配置而异

一项测量 Anthropic 的 Claude Code 的 token 使用量和成本的实验显示,根据缓存和配置的不同,结果存在显著差异。初始运行特定配置(场景 A)消耗了约 265,000 个 token,但在禁用特定服务器配置(MCP)后(场景 C),消耗量锐减至 16,000 个 token。提示缓存显著影响了成本,后续运行比第一个小时的写入成本低得多。有趣的是,减少 token 数量并未按比例降低成本,因为成本是由新输入驱动的,而不是总上下文。 AI

影响 了解 AI 代理的 token 使用量和缓存机制对于优化开发工作流中的成本和性能至关重要。

排序理由 该项目详细介绍了一个现有 AI 产品性能和成本的实验,而不是新发布或重大的行业事件。

在 dev.to — Claude Code tag 阅读 →

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

Claude Code 的 token 使用量因缓存和配置而异

本文如何被排名

Signal score
3 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
该项目详细介绍了一个现有 AI 产品性能和成本的实验,而不是新发布或重大的行业事件。
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, infra
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
Same-day
Cluster formed today. Ranking reflects the current source set at time of score.

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

报道来源 [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Wendel Assis Silva ·

    我测量了我的编码代理的 token 数量。第二天最大的数字消失了

    <p>When an AI bill goes up, the usual reaction is to touch the prompt: shorter instructions, a cheaper model, fewer examples. I wanted to know whether that made sense for my own usage, so I measured it. I could not reproduce the most striking result 24 hours later. That turned ou…