A pi extension providing TUI-based cache inspection commands (/cache graph, /cache stats, /cache export) for real-time monitoring of LLM context cache hit rates and token usage across sessions. Version 0.2.0, released as needed. Designed as observability companion for pi-context-prune, offering three graph views (per-turn %, cumulative %, cumulative volumes), per-message stats, and CSV export. Differentiates with native pi integration, TUI overlays, and cache hit formula adaptable to both Anthropic and OpenAI-style providers.
npm install pi-cache-graphNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installation and basic usage of pi-cache-graph extension within pi session.
Update pi to latest version
Check for updated configuration options in next release
Understand the denominator includes all prompt token types
No action needed; formula remains consistent across providers
Resize terminal or use a terminal emulator with full TUI support
Run 'pi install pi-cache-graph' or add package to settings.json
Update pi and ensure extension is listed in packages
Update pi to 1.0+