← Catalog

@marcosgilf/pi-session

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

Extension

Install

Install with PiG

pig install npm:@marcosgilf/pi-session

Install with Pi

pi install npm:@marcosgilf/pi-session
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.

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.