Explain Pi CLI status line and token stats fields
Session from pi-sessions on Hugging Face by julien-c · CC-BY-4.0 · condensed by Coders Talk
Click a segment to jump to that moment
5msession
0interventions
by library · 2d
GOAL
Understand what the status line (footer) at the bottom of the Pi coding agent screen shows, and decode the meaning of specific stats like 'R24k'.
- +0Prompt · +0Describe the status line of Pi (the line at the bottom of the screen)
- +0mAgent did · +0mRead tui.md and keybindings.md docs, scanned examples directory, then summarized the footer's purpose and the footerData API (git branch, extension statuses, token stats)
- +2mPrompt · +2mWhat's 'R24k' size in the footer
- +4mAgent did · +4mRead custom-footer.ts example, grepped source for token-related patterns (no hits), located footer-data-provider.js and footer.js in dist, and read the actual footer rendering code
- +5mOutcome · +5mDetermined R24k means 24,000 cache-read tokens, part of a footer stats line with ↑ input, ↓ output, R cache-read, W cache-write, and $ cost prefixes
VERDICT
I'd start by pointing the agent straight at the dist footer.js file instead of letting it grep broadly first, since that's where the actual answer lived. The docs and examples gave useful context but the real answer only came from reading the compiled source directly.