@saadjs/pi-context
Minimal context-window progress bar for pi
Package details
Install @saadjs/pi-context from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@saadjs/pi-context- Package
@saadjs/pi-context- Version
0.1.0- Published
- Jul 31, 2026
- Downloads
- 134/mo · 18/wk
- Author
- saadjs
- License
- MIT
- Types
- extension
- Size
- 4.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
@saadjs/pi-context
A minimal pi extension that keeps the active model's context usage visible in the footer:
ctx ████░░░░░░ 42%
The bar updates as turns complete, when the model changes, and after context compaction. Colors progress from success to warning at 70%, then error at 90%.
Install
pi install npm:@saadjs/pi-context
For local development:
pi -e ./extensions/context/index.ts