omp packages

@tian.zuo/pi-token-speed0.1.1

Live and final tokens-per-second meter for the pi coding agent.

GitHub Actions Published 28 days ago MIT ~244 downloads/mo

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.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

@tian.zuo/pi-token-speed

Release notes: changelog · GitHub releases

Live and final tokens-per-second reporting for the pi coding agent.

pi install npm:@tian.zuo/pi-token-speed

How it works

While the assistant streams, the footer shows a smoothed tokens-per-second rate; when the message finishes it shows a summary with the average rate, total output tokens, and time-to-first-token. The summary stays on screen after the stream stops — including the model's between-stream thinking and tool-call gaps — so the readout is always visible instead of blanking out whenever generation pauses.

The live rate is sampled from streamed text (a responsive chars-per-token estimate); the end-of-message average uses the provider's authoritative output token count when available. The mode is remembered in ~/.pi/token-speed/config.json.

Commands

  • /tps — cycle the display mode: live → final → off.
  • /tps live — live meter + summary.
  • /tps final — summary only.
  • /tps off — show nothing.

License

MIT © Tian Zuo