npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mrclrchtr/supi-cache

v1.14.3

Published

SuPi Cache — prompt cache health monitoring and cross-session forensics

Readme

@mrclrchtr/supi-cache

Adds prompt-cache monitoring and cache-regression forensics to the pi coding agent.

Install

pi install npm:@mrclrchtr/supi-cache

This is a beta package. Install individually.

For local development:

pi install ./packages/supi-cache

What you get

After install, the package does two things:

  1. Monitor the current session

    • records per-turn cache usage from assistant messages
    • updates a footer status for cache health
    • warns when the cache hit rate drops enough to count as a regression
    • tries to explain the drop as compaction, model change, prompt change, or unknown
  2. Investigate past sessions

    • scans session files for cache regressions across time
    • groups findings into a few built-in query patterns
    • keeps agent-facing results redacted to structural fingerprints instead of raw command text or file paths

Cache history report

Commands and tool

/supi-cache-history

Shows cache history for the current session.

The report includes per-turn values for:

  • input tokens
  • cache read tokens
  • cache write tokens
  • hit rate
  • notes about detected regressions

/supi-cache-forensics

Runs a cross-session investigation.

Supported patterns:

  • breakdown — count regressions by cause
  • hotspots — show the largest drops
  • correlate — show which preceding tool calls correlate with drops
  • idle — show drops after long gaps between turns

Useful flags:

  • --since 7d
  • --pattern breakdown
  • --min-drop 20

Cache forensics report

supi_cache_forensics

Adds one model-callable tool with the same four patterns: hotspots, breakdown, correlate, and idle.

The tool returns JSON text. Before results are returned to the model, human-only details such as _pathsInvolved and _commandSummaries are stripped out.

Settings

This package registers a Cache section in /supi-settings.

Available settings:

  • enabled — turn monitoring on or off
  • notifications — show warning notifications for regressions
  • regressionThreshold — percentage-point drop that counts as a regression warning
  • idleThresholdMinutes — inactivity gap used to classify idle-time regressions

Defaults:

{
  "supi-cache": {
    "enabled": true,
    "notifications": true,
    "regressionThreshold": 25,
    "idleThresholdMinutes": 5
  }
}

The config loader also reads the legacy cache-monitor section for upgrades, but supi-cache is the current config section.

Source

  • src/monitor/monitor.ts — live monitoring, commands, and tool registration
  • src/forensics/forensics.ts — cross-session scan pipeline
  • src/report/history.ts — current-session history report
  • src/report/forensics.ts — cross-session forensics report