pi-tps-display0.1.0
Pi extension showing live tokens-per-second while the model streams.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-tps-display
Pi extension showing live tokens-per-second while the model streams.
Status bar: ⚡ 42.1 tok/s, optionally with TTFT + totals.
Install
Not published to npm. Install from the local path:
pi install /home/vm/Projects/pi-tps-display
On another machine, copy the repo first, then install the local path (or a git URL).
Local dev (no install):
pi -e /home/vm/Projects/pi-tps-display/index.ts
Auto-load global:
pi -e /Users/fajar/Documents/github/pi-tps-display/index.ts
Auto-load global:
cp index.ts ~/.pi/agent/extensions/pi-tps-display.ts
Command
/tps cycles display mode: tps → ttft → stats → full.
How it measures
message_start(user) starts TTFT clock.text_start/thinking_start/toolcall_startstops TTFT, starts stream.text_delta/thinking_deltacounted via word estimate, reconciled with providerusage.outputwhen it advances.toolcall_deltacounted only foredit/write; other tools pause the clock.agent_endsnaps total to authoritativeusage.output, shows average.- Sliding window 1000ms, min span 250ms.