claude-code - 💡(How to fix) Fix Token usage display: show per-call and session cumulative total [1 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#52663Fetched 2026-04-24 10:43:02
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Current behaviour

The status line shows a single indicator reflecting current context usage.

Desired behaviour

Display values such as: last: 2k | session: 100k | today: 500k

Proposed Solution

The current token usage indicator shows context window usage but it would be useful to see both:

  • Per-call tokens: tokens used in the last call (e.g. 2k)
  • Session total: cumulative tokens used across the entire session (e.g. 100k total)
  • Daily total: cumulative tokens used today across all sessions (e.g. 500k today)

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Displaying multiple token usage indicators, such as per-call, session total, and daily total, can be achieved by modifying the status line to show these specific values.

Guidance

  • Identify the current implementation of the status line and the data it displays to understand how to extend it.
  • Determine the sources of the per-call, session total, and daily total token usage data to integrate them into the status line display.
  • Consider the formatting and potential limitations of the status line to ensure the additional information is displayed clearly and concisely.
  • Evaluate if any existing CLI commands or flags can be leveraged or extended to support the display of these token usage indicators.

Example

No specific code example can be provided without knowing the implementation details, but the solution might involve modifying a function that updates the status line to include the additional token usage values, such as last_call_tokens, session_total_tokens, and daily_total_tokens.

Notes

The exact implementation will depend on the underlying architecture and technology stack of the application, which is not specified in the issue.

Recommendation

Apply a workaround by modifying the existing status line display to include the desired token usage indicators, as upgrading to a fixed version is not applicable in this context since the issue is a feature request rather than a bug fix.

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 Token usage display: show per-call and session cumulative total [1 comments, 2 participants]