Troed Sångberg 074ee79434 refactor: clean up dead code and simplify display format
- Remove unused formatAvg, formatPercent, activeDurationMs functions
- Remove unused constants (LIVE_STALE_MS, SINGLE_SAMPLE_MS)
- Remove unused session average tracking (totalTokens, totalDurationMs, messageCount, totalTtftMs)
- Remove unused lastToolCallAt from MessageTiming
- Remove prefillTotalTokens/prefillProcessedTokens (set but never read)
- Remove unused nt variable from prefill detection loop
- Simplify display: xxxx tps (PP) / xxxx tps (TG) / - tps (TG)
2026-06-14 12:22:25 +02:00
2026-04-04 17:24:59 -04:00
2026-04-05 02:34:21 -04:00

oc-tps

Displays live TPS (tokens per second), average TPS, and average TTFT (time to first token) in the OpenCode session prompt.

Demo

Installation

Install from the CLI:

opencode plugin oc-tps@latest --global

Requires opencode 1.3.14 or newer.

S
Description
No description provided
Readme
6.4 MiB
Languages
TypeScript 100%