Skip to content
PidocsCLI & tooling

Explain Pi CLI status line and token stats

Session from pi-sessions on Hugging Face by julien-c · CC-BY-4.0 · condensed by Coders Talk

5msession
0interventions
GOAL

Understand what the footer/status line in the Pi coding agent shows, including the meaning of token stat abbreviations 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 the 'R24k' size shown in the footer?
  4. Agent did · +4m
    Read custom-footer.ts example, grepped source for token-related footer code, located footer.js in dist and inspected it to identify the stat prefixes.
  5. Outcome · +5m
    Explained the footer's token stat prefixes (↑ input, ↓ output, R cache-read, W cache-write, $ cost) and confirmed R24k means 24,000 cache-read tokens.
VERDICT

I'd start by just asking directly about the token stat abbreviations instead of first asking for a general status line description, since that's what I actually wanted. Digging into the compiled footer.js source was what actually nailed down the exact meaning of 'R24k' rather than the docs alone.

I tried this · 0

Discussion · 0

How Builds work