claude-code - 💡(How to fix) Fix Add tokens-per-second (TPS) display during streaming

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…
RAW_BUFFERClick to expand / collapse

Feature Request: Live Tokens Per Second (TPS) Display

Problem

Users have no visibility into streaming throughput during Claude Code sessions. Knowing TPS helps evaluate model performance and response quality.

Proposed Solution

Display real-time TPS counter in the terminal UI during streaming responses, similar to OpenCode's @williamcr01/opencode-tps plugin.

Requirements

  • Live TPS counter during streaming
  • 5-second rolling window calculation
  • Show "-" when idle/no tokens
  • Non-intrusive placement (e.g., bottom-right corner)

Reference Implementation

OpenCode plugin @williamcr01/opencode-tps hooks into internal streaming events to calculate real-time TPS:

  • Tracks token deltas via message.part.delta events
  • Uses rolling window for smoothing
  • Registers UI slot for display

Why This Helps

  • Performance visibility during long responses
  • Model comparison benchmarking
  • Detecting rate limiting or throttling

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 Add tokens-per-second (TPS) display during streaming