claude-code - 💡(How to fix) Fix [Feature Request] Add cumulative token usage tracking across sessions [1 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#53167Fetched 2026-04-26 05:22:40
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description It would be nice to have a way to obtain cumulative token use in the CLI. /context only gives you current session use.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.119
  • Feedback ID: c307945e-3a39-455b-8948-cc91edf1c3d6

Errors

[]

extent analysis

TL;DR

Implementing a cumulative token usage feature in the CLI could provide the desired functionality.

Guidance

  • Review the existing /context endpoint to understand its current implementation and limitations.
  • Consider adding a new endpoint or modifying the existing one to track and return cumulative token usage.
  • Investigate if there are any existing libraries or tools that can be leveraged to calculate cumulative token usage.
  • Evaluate the potential impact of storing and retrieving cumulative token usage data on performance and security.

Notes

The provided issue lacks technical details about the current implementation, making it challenging to provide a more specific solution.

Recommendation

Apply workaround: Implement a custom solution to track and calculate cumulative token usage, as there is no clear indication of an existing feature or fixed version that addresses this issue.

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 [Feature Request] Add cumulative token usage tracking across sessions [1 participants]