@stenn/tps-monitor
v1.0.0
Published
Minimal tokens-per-second display in pi footer
Readme
@stenn/tps-monitor
Minimal tokens-per-second (TPS) display in the pi coding agent footer. Track model generation speed with a clean, color-coded indicator.
Features
- Minimal display:
⚡ 128 TPSin the footer - Color-coded:
- 🟢 Green (>100 TPS)
- 🟡 Yellow (50-100 TPS)
- 🔴 Red (<50 TPS)
- Toggle on/off: Use
/tpscommand to enable/disable
Installation
pi install npm:@stenn/tps-monitorOr install locally in your project:
pi install -l npm:@stenn/tps-monitorUsage
Once installed, the TPS monitor automatically appears in the footer during model responses.
Commands
| Command | Description |
|---------|-------------|
| /tps | Toggle TPS display on/off |
How It Works
The extension hooks into pi's message lifecycle:
- Start: Timer begins when the assistant starts generating
- End: Calculates TPS from
output tokens / duration - Display: Updates footer with the latest metric
Requirements
- pi coding agent
- Node.js 18+
Development
# Local development
npm link
# Or install from local path
pi install ./path/to/tps-monitorLicense
MIT
