@baggiiiie/pi-context-status

A pi package that shows current context-window usage in the status line or a custom footer.

Package details

extension

Install @baggiiiie/pi-context-status from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@baggiiiie/pi-context-status
Package
@baggiiiie/pi-context-status
Version
0.0.1
Published
May 4, 2026
Downloads
not available
Author
baggiiiie
License
unknown
Types
extension
Size
19.6 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

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

README

@baggiiiie/pi-context-status

A pi package that shows current context-window usage in the status line or a custom footer.

Install

pi install /path/to/pi-stuff/packages/context-status

Or after publishing:

pi install npm:@baggiiiie/pi-context-status

Usage

/context-status status
/context-status footer
/context-status off
/context-status refresh
/context-status help

By default the extension uses compact status mode. Override the startup mode with:

export PI_CONTEXT_STATUS_MODE=footer   # or status / off

Notes

  • Reuses pi's current context-window estimate from ctx.getContextUsage() when available
  • Falls back to a local estimate right after compaction, before pi has fresh context usage
  • Footer mode preserves a line for other extension statuses