@nonplanarslicer/pi-tps

Show live TPS in the pi-coding-agent status bar without overwriting it

Package details

extension

Install @nonplanarslicer/pi-tps from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@nonplanarslicer/pi-tps
Package
@nonplanarslicer/pi-tps
Version
1.0.0
Published
Apr 30, 2026
Downloads
not available
Author
nonplanarslicer
License
unknown
Types
extension
Size
3.7 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

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-tps

Or run it without installing by loading the file directly:

pi -e ./index.ts

Note: If you previously used tps-test.ts or any other extension that heavily modifies the footer using ctx.ui.setFooter, ensure you remove or disable it to prevent it from overwriting the native status bar that pi-tps injects into!