Skip to content
PidocsCLI & tooling

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

5msession
0interventions
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'.

  1. Prompt · +0
    Describe the status line of Pi (the line at the bottom of the screen)
  2. Agent did · +0m
    Read 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)
  3. Prompt · +2m
    What's 'R24k' size in the footer
  4. Agent did · +4m
    Read 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
  5. Outcome · +5m
    Determined 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.

I tried this · 0

Discussion · 0

How Builds work