claude-code - 💡(How to fix) Fix [Bug] Excessive token consumption on simple queries (25k tokens for "what is 1+1") [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46776Fetched 2026-04-12 13:33:19
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
1
Participants
Timeline (top)
labeled ×3commented ×2

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description on 1.0.98 a simple "what is 1+1" consumes 6k tokens of usage (as checked with /context, goes up from 29.5k to 35k) on latest version it consumes 25k tokens! What did you break in between?

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.98
  • Feedback ID: 92191ad4-d5d1-4014-8159-588552117a99

Errors

[]

extent analysis

TL;DR

The significant increase in token usage from 6k to 25k between versions 1.0.98 and 2.1.98 for a simple calculation suggests a potential regression or change in token calculation or usage tracking.

Guidance

  • Verify the calculation or operation that consumes tokens to ensure it has not changed between versions, potentially affecting token usage.
  • Compare the documentation or release notes of versions 1.0.98 and 2.1.98 to identify any changes in token usage or calculation.
  • Check if there are any configuration options or settings that could be adjusted to reduce token consumption in version 2.1.98.
  • Consider testing other simple operations to see if the increased token usage is specific to the "what is 1+1" query or a broader issue.

Notes

The exact cause of the increased token usage is unclear without more information about the changes between versions 1.0.98 and 2.1.98. The issue might be related to changes in the underlying algorithm, bug fixes, or new features that affect how tokens are counted.

Recommendation

Apply workaround: Until the root cause is identified, consider using version 1.0.98 for operations where token usage needs to be minimized, as it has been observed to consume fewer tokens for the same operation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Excessive token consumption on simple queries (25k tokens for "what is 1+1") [2 comments, 2 participants]