omp packages

pi-diagnostics0.3.2

Prompt-cache diagnostics and expiry reminders for pi

tianrendong Published 21 days ago MIT ~924 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

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_changed
    
  • Expiry 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.

Both are display-only and never add to model context.

Install

pi install npm:pi-diagnostics

Run /diagnostics to see recent results.

License

MIT