pi-custom-footer

Custom footer extension for pi — shows absolute token counts, cache hit rate, and thinking level

Packages

Package details

extension

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

$ pi install npm:pi-custom-footer
Package
pi-custom-footer
Version
1.0.0
Published
Jun 3, 2026
Downloads
not available
Author
zisen
License
MIT
Types
extension
Size
7.8 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

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

README

pi-custom-footer

Custom footer extension for pi that replaces the default footer with more informative displays.

Install

pi install npm:pi-custom-footer

Features

  • Absolute token counts — Shows context usage as 120k/524k instead of a percentage
  • Cache hit rate — Displays cache efficiency as CH94% (cacheRead / total prompt tokens)
  • Token stats — Shows upload ↑12k, download ↓8k, and cumulative cost $0.123
  • Thinking level — Displays current thinking level next to the model name (e.g. claude-4-sonnet • medium)
  • Session name — Appends session name to the cwd line

Footer Layout

Line 1: ~/project (main) • Session Name
Line 2: ↑12k ↓8k CH94% $0.123 120k/524k (auto)          claude-4-sonnet • medium
Line 3: extension statuses...

License

MIT