@gtheys/pi-context
Pi extension that adds a /context command to visualise context-window token usage as a coloured grid
Package details
Install @gtheys/pi-context from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@gtheys/pi-context- Package
@gtheys/pi-context- Version
0.1.1- Published
- Jul 20, 2026
- Downloads
- 237/mo · 164/wk
- Author
- gtheys
- License
- MIT
- Types
- extension
- Size
- 20 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./context.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-context
Pi extension that adds a /context command to visualise current context-window usage as a coloured grid overlay.
Usage
/context
Renders a grid of coloured squares representing token usage broken down by category (tools, compaction, free space, etc.), followed by a per-category breakdown table and a cost estimate for the session.