@giladbarnea/pi-custom-footer
v0.1.1
Published
Context, cache, cost, and loaded skills at a glance in Pi.
Maintainers
Readme
Custom Footer
Know how much context remains. See what each turn costs.
A Pi footer that puts your session’s context, cache usage, cost, and loaded skills around the editor.
pi install npm:@giladbarnea/pi-custom-footerAbove the editor, see your model, thinking level, session name and ID. Loaded skills get their own row, with token ages.
Below the editor, see:
- Context remaining at a glance: a color-graded gauge and used/window tokens.
- Cost across the conversation: cumulative cost and average cost per assistant turn.
- Cache behavior: session hit rate, latest hit or estimated miss, and reused/new token totals.
- Where you are: Git branch, dirty marker, directory, and other extensions’ status messages.
The layout follows your Pi theme and condenses to two footer lines in narrow panes.
Resize without rescanning the conversation. The header and footer share cached values. Session changes refresh them, including forks and compaction.
Skill age measures context-token growth since the first response after a skill load. A cache miss compares consecutive prompt sizes with reported reuse. Costs use the model’s reported pricing, including when you use a subscription.
Development
npm ci
npm test
npm run checkTests cover rendered values, skill tracking, cache reuse, session changes, and forks. They make no model calls.
