Install
Install with PiG
pig install npm:pi-diagnosticsInstall with Pi
pi install npm:pi-diagnosticsPackages 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",
"./src/expiry.ts",
"./src/warming.ts"
]
}README
Written by the package's publisher, shown as published in version 0.4.0 (README.md). PiG does not review it.
pi-diagnostics
Know why your prompt cache missed, and when it's gone.
Cache-miss reasons. When a turn re-bills cached tokens, see the provider's explanation (Anthropic, OpenAI):
Cache miss: 42k tokens re-billed (~$0.12) ↳ Provider diagnostics reason: tools_changedExpiry reminders. A note appears when your cache has likely expired, so you know it's a cheap moment to
/compact, switch models, or change tools.Smarter cache warming. With
cacheWarming: "idle", keeps the cache warm when you're likely to reply soon: text in the editor, a queued message, or the agent's last message asks you something. It only ever adds warms that clear Pi's savings bar; it never cancels warming Pi chose.
Diagnostics and reminders are display-only and never add to model context.
Install
pi install npm:pi-diagnostics
Run /diagnostics to see recent results.
License
MIT