$ cat ~/map/pi-statusline.md
pi-statusline
Compact TUI statusline: model and thinking on the border, token flow and context usage in the footer.
extensions✓ Sep 3
Facts
- repository
- github.com/alexeyco/pi-statusline ↗
- GitHub Stars
- ★ 0
- Forks
- 0
- license
- MIT
- npm / mo
- —
- last push
- Oct 4, 2026
install
pi install npm:@alexeyco/pi-statusline## TL;DR
A compact statusline extension for the pi TUI: a model • thinking label on the input border, a one-line footer with cwd, branch, session, and ↑in ↓out · ctx%/window flow, and color-coded context usage.
## Key points
- $The editor border carries a right-aligned `model • thinking` label; the footer shows `cwd (branch) • session` on the left and `↑in ↓out · ctx%/window` on the right.
- $Context usage turns orange above 70% and red above 90%; extension statuses (ctx.ui.setStatus) keep their own line below the footer.
- $Requires pi 0.76 or newer; peer dependencies are `*` and resolved by pi install, and the extension activates automatically.
- $Migrating from a local copy in ~/.pi/agent/extensions/status-layout/: remove that directory after installing the package, or both copies register and fight over the footer.
- $Development runs on node:test with Node 22.18 or newer; a local `pi install "$(pwd)"` picks up edits live.
## FAQ
Q The footer looks duplicated after installing.
An old local copy is likely still registered in ~/.pi/agent/extensions/status-layout/ — remove that directory so only the package version remains.
Q When does the context percentage change color?
Above 70% it turns orange, and above 90% it turns red.
## References
## Related entries
$ pi-conversation-outline
Read-only outline rail for fullscreen: one tick per prompt, hover to preview, click to jump.
$ pi-open-tui
Polished terminal interface for pi: model/thinking header, runtime-aware footer, framed editor, turn metrics (TPS / TTFT / stalls / cost), and 50+ runtime detectors — all configurable from /open-tui.
$ pi-reverse
Fullscreen TUI extension that pins pi's input at the top and stacks Q&A pairs newest-first, question in view.
## Guides
Last updated: Sep 3, 2026