pi-cache-graph

JSON →
library 0.2.0 ·javascript
verified Jun 7, 2026

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.