Add tokens-per-second (TPS) display during streaming
Resolved 💬 2 comments Opened May 12, 2026 by vladbrincoveanu Closed Jun 11, 2026
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.deltaevents - 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
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗