2026-11-26 15:47 UTC

Claude Code plugin surfaces potential costs from long contexts and subagents

state: watchingheat: lowuncertainty: mediumrelevance: mediumtoken-accounting claude-code agent-costsAwkward-Let-4628

What is this?

A developer has announced tokendoctor, a local, MIT-licensed Claude Code plugin that reads token-usage figures from session files and separates main-thread use from subagent use. The developer reports that, in their own sessions, long-context requests and subagents accounted for substantial spend, and that changing compaction and subagent-model settings reduced the share spent above 400K context. These are self-reported results, not an independently verified benchmark. Claude Code’s documentation separately confirms that subagents consume usage and that choosing a smaller subagent model can reduce it.

Why it matters

The new dashboard reinforces the practical value of local agent-cost observability, but provides no evidence that the original plugin’s measurements or reported savings generalize.

Current assessment

Tokendoctor is a developer-built, MIT-licensed local Claude Code plugin that reads session files, separates main-thread from subagent use, estimates costs, and suggests settings changes requiring approval. Its developer reported that 68% of spend in their sessions came from messages above 400K context and 44% went to subagents, then reported a lower above-400K share after changing settings; these self-reported figures are not independently validated, and a lower share alone does not prove lower total spend. Anthropic documentation independently confirms that subagents consume account usage and that smaller subagent models can reduce it. CCUsageX is a separate local open-source dashboard claiming per-prompt token and API-equivalent cost reporting, including subagents. A newer HN item titled “Claude Code token cost explorer” may represent another tool, but available evidence is too sparse to establish its features or independence. These tools support interest in usage visibility, not tokendoctor’s measurement accuracy or savings claims. Typical savings, estimate accuracy, and how well tools or settings generalize remain unresolved.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 766h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-25 17:09⭐ origin directly observedI built a Claude Code plugin that shows where your tokens go
Awkward-Let-4628 on r/ClaudeAI
—
10-27 11:30first on r/ClaudeAI · published · +42.4hKeep an eye on cost
NoCourt7858
—
10-29 16:01first on hacker news · published · +94.9hShow HN: Claude Scrub - redact secrets from Claude Code history on disk
overflowy
—
10-25 17:09amplified on r/ClaudeAI 👑reddit.post.1xf7uxf
Awkward-Let-4628
peak 1 · 10 comments · 33% of case engagement
10-27 11:30amplified on r/ClaudeAIreddit.post.1xgq0i2
NoCourt7858
peak 1 · 5 comments · 18% of case engagement
10-29 16:01amplified on hacker newshn.story.50291192
overflowy
peak 1 · 0 comments · 5% of case engagement
11-02 22:03amplified on r/ClaudeAIreddit.post.1xmb00a
Mousse_External
peak 4 · 5 comments · 27% of case engagement
11-10 13:47amplified on hacker newshn.story.50440291
ibobev
peak 3 · 0 comments · 16% of case engagement
10-25 17:26our radar first saw it · +0.3hdiscovery anchor: reddit.post.1xf7uxf—
pace: p56 vs 879 stories at the 720h mark (now 766h old) — ahead of cloudflare-major-outage-agent-impact (1.1x), behind agent-skills-marketplace-launch (1.0x)

Evidence (5) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 reddit ⭐I built a Claude Code plugin that shows where your tokens go
ClaudeAI
Awkward-Let-4628110
🟠 redditKeep an eye on cost
ClaudeAI
NoCourt785815
🟧 hnShow HN: Claude Scrub - redact secrets from Claude Code history on diskoverflowy10
🟠 redditI built a free local dashboard with Claude Code that shows what each prompt uses in tokens and API-equivalent dollars
ClaudeAI
Mousse_External15
🟧 hnClaude Code token cost exploreribobev30

Interpretation history

Decision trace