@marcosgilf/pi-session

Session token, cost, cache, and context usage for Pi.

Packages

Package details

extension

Install @marcosgilf/pi-session from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@marcosgilf/pi-session
Package
@marcosgilf/pi-session
Version
0.1.0
Published
Oct 26, 2026
Downloads
248/mo · 248/wk
Author
marcosgilf
License
MIT
Types
extension
Size
10.3 KB
Dependencies
1 dependency · 2 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

pi-session

Show context percentage/window in Pi's default footer and detailed token, cache, cost, and context usage in a modal.

Install

pi install npm:@marcosgilf/pi-session
  • When installed alone, the default footer shows session context use.
  • /session-usage opens detailed session information.
  • Command+Shift+S (super+shift+s) opens the same modal.
  • In modal: c copies full summary; Ctrl/Cmd+C copies selected text; click outside closes.
  • Install @marcosgilf/pi-footer to place session context before skill statuses and Copilot usage beside the model. It loads this extension as a dependency; do not install both packages separately.

Pi extensions run with Pi's operating-system permissions. Review package source before installing.