@nonplanarslicer/pi-tps
v1.0.0
Published
Show live TPS in the pi-coding-agent status bar without overwriting it
Maintainers
Readme
pi-tps
A native status bar extension for pi-coding-agent that tracks Tokens Per Second (TPS).
Unlike other TPS extensions that completely hijack and overwrite the bottom status bar, pi-tps integrates directly into the existing pi footer natively using ctx.ui.setStatus(). This means you keep your file path, your context usage, your branch name, and your token counts, while also seeing a live "⚡X.X" TPS indicator right alongside them while the agent is streaming.
Features
- Live Streaming TPS: Shows a dynamic token generation speed as the agent types out the response.
- Native Integration: Doesn't conflict with other footer elements or status updates.
- Accurate Post-Turn TPS: Calculates the exact tokens per second using the provider usage metadata once the turn finishes.
Install
pi install npm:@nonplanarslicer/pi-tpsOr run it without installing by loading the file directly:
pi -e ./index.tsNote: If you previously used
tps-test.tsor any other extension that heavily modifies the footer usingctx.ui.setFooter, ensure you remove or disable it to prevent it from overwriting the native status bar thatpi-tpsinjects into!
