pi-context-info

Shows last-turn uploaded context, turn count and average per turn in the Pi status bar

Packages

Package details

extension

Install pi-context-info from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-context-info
Package
pi-context-info
Version
0.1.0
Published
Nov 2, 2026
Downloads
321/mo · 321/wk
Author
littlepan
License
MIT
Types
extension
Size
2.4 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions/context-info.ts"
  ]
}

Security note

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

README

pi-context-info

Pi extension that shows uploaded context in the status bar:

(61K, 3 x 58K)
  • 61K — prompt tokens uploaded by the last turn (uncached input + cache reads + cache writes)
  • 3 — turns so far
  • 58K — average uploaded tokens per turn

Install

pi install npm:pi-context-info

Or try it for one run:

pi -e npm:pi-context-info

Test

npm test

License

MIT