@stenn/tps-monitor

Minimal tokens-per-second display in pi footer

Package details

extension

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

$ pi install npm:@stenn/tps-monitor
Package
@stenn/tps-monitor
Version
1.0.0
Published
Apr 18, 2026
Downloads
184/mo · 31/wk
Author
stenn
License
unknown
Types
extension
Size
6.2 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./tps-monitor.ts"
  ]
}

Security note

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

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.

pi-package

Features

  • Minimal display: ⚡ 128 TPS in the footer
  • Color-coded:
    • 🟢 Green (>100 TPS)
    • 🟡 Yellow (50-100 TPS)
    • 🔴 Red (<50 TPS)
  • Toggle on/off: Use /tps command to enable/disable

Installation

pi install npm:@stenn/tps-monitor

Or install locally in your project:

pi install -l npm:@stenn/tps-monitor

Usage

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:

  1. Start: Timer begins when the assistant starts generating
  2. End: Calculates TPS from output tokens / duration
  3. Display: Updates footer with the latest metric

Requirements

Development

# Local development
npm link

# Or install from local path
pi install ./path/to/tps-monitor

License

MIT