Skip to content

Instantly share code, notes, and snippets.

@imsus
Last active June 19, 2026 06:05
Show Gist options
  • Select an option

  • Save imsus/227cea4444e785b8e9cac968c1e5feef to your computer and use it in GitHub Desktop.

Select an option

Save imsus/227cea4444e785b8e9cac968c1e5feef to your computer and use it in GitHub Desktop.
Pi Readable Footer

readable-footer

A clean, labeled footer for pi that replaces the default cryptic stats bar with human-readable labels, color-coded context warnings, and IDR cost conversion.

Features

  • Labeled stats --- input:, output:, cache:, context:, cost: instead of ↑ ↓ R CH $
  • Cache as separate section --- input: 89.8k · cache: 52k (58.0%) · output: 31.8k with clean middle-dot separators
  • Color-coded context bar --- 20-block progress bar (full blocks only) that turns green → yellow → red as context fills up
  • Thinking level colorized --- each level (off--xhigh) gets its own theme color
  • IDR cost conversion --- fetches live USD→IDR rate from open.er-api.com, cached per session
  • MCP server status --- shows MCP: 2/3 servers from the pi-mcp-adapter extension below the stats line
  • Model + provider + git branch on the left side

Screenshot

model: deepseek:deepseek-v4-flash · level: high · speed: ~45t/s · latency: ~1.23s · git: main
input: 89.8k · cache: 52k (58.0%) · output: 31.8k · context: ██████████░░░░░░░░░░ 50.00% · cost: Rp3.006
MCP: 2/3 servers

Installation

Drop into:

~/.pi/agent/extensions/readable-footer.ts

Run:

curl -o ~/.pi/agent/extensions/readable-footer.ts \
https://gist.githubusercontent.com/.../readable-footer.ts

The extension auto-enables on next startup. No configuration needed.

Usage

Command Action
(auto) Enabled on startup
/readable-footer Toggle on/off
/reload Reload extension (also re-fetches IDR rate)

Requirements

  • pi ≥ latest
  • pi-mcp-adapter extension (optional --- for MCP server status line)
  • Internet access (optional --- for live IDR rate; falls back to ~Rp16k/USD)

License

MIT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment