pi-cache-timer

Footer cache timer extension for Pi

Package details

extension

Install pi-cache-timer from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-cache-timer
Package
pi-cache-timer
Version
0.1.1
Published
Apr 21, 2026
Downloads
230/mo · 6/wk
Author
tuan_son.dinh
License
MIT
Types
extension
Size
5.3 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-cache-timer

Shows elapsed time since last model response in Pi footer. Useful for tracking Anthropic prompt-cache window.

Install locally

pi install /absolute/path/to/packages/pi-cache-timer

Or load without installing:

pi -e /absolute/path/to/packages/pi-cache-timer/extensions/index.ts

Behavior

  • starts timer on agent_end
  • clears timer on agent_start
  • clears timer on session_shutdown
  • green under 5 min
  • yellow at 5–10 min
  • red at 10+ min
  • /cache-timer toggles enabled state
  • persists toggle in ~/.pi/agent/settings.json as cacheTimer

Optional env

  • PI_DISABLE_CACHE_TIMER=1 — force disable