pi-wierd-statusline

Minimal Tokyo Night statusline footer extension for pi coding agent

Package details

extension

Install pi-wierd-statusline from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-wierd-statusline
Package
pi-wierd-statusline
Version
0.4.3
Published
May 4, 2026
Downloads
573/mo Β· 573/wk
Author
wierdbytes
License
MIT
Types
extension
Size
98.2 KB
Dependencies
0 dependencies Β· 0 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-wierd-statusline

Minimal Tokyo Night Storm statusline for pi. Renders a compact one-line status row above the editor, with the editor's own top/bottom borders stripped so the two visually merge into a single cluster.

pi-wierd-statusline demo

Sections (each appears only when relevant):

  • Model β€” πŸ€– plus the active model's display name (e.g. Opus 4.7). Claude and anthropic/ prefixes are stripped for brevity.
  • Thinking β€” 🧠 plus the current thinking level (min/low/med/high/xhigh), shown only for reasoning-capable models. Honors the model's thinkingLevelMap so providers can override the label.
  • Path β€” up to the last three segments of cwd with a …/ prefix. Parent segments in gray, current directory in purple.
  • Git β€” branch name plus a clean/dirty marker (βœ“ green / βœ— red). Hidden when not in a git repo.
  • Context β€” percentage of usable context window before autocompaction (33k buffer reserved), printed as pct%: used[β–“β–‘β–‘β–‘]remaining with a colored progress bar. Color shifts green β†’ yellow β†’ red as you approach the threshold.
  • Cost β€” session total in USD when greater than zero.
  • Tokens β€” cumulative session input/output and cache read/write counters: ↑input ↓output R{cacheRead} W{cacheWrite}.
  • Stash β€” πŸ“¦ N showing how many prompts are saved in the stash history (see below). Hidden when empty.

Inspired by pi-powerline-footer by @nicobailon β€” the original brought the statusline-as-footer idea to pi. This extension is a from-scratch take that focuses on just that footer (skipping the bash mode, working vibes, and welcome overlay pieces).

Editor stash

Press Alt+S to save the editor's contents and clear the input, type a quick prompt, and the stashed text auto-restores when the agent finishes β€” but only if the editor is empty at that point (otherwise the stash is preserved and a notification reminds you to clear and Alt+S to restore). Pressing Alt+S again with text in the editor updates the live stash slot. The statusline's πŸ“¦ N indicator reflects the current stash-history depth.

Every stash is pushed onto a persisted MRU history (12 entries max, stored at ~/.pi/agent/wierd-statusline/stash-history.json). Press Ctrl+Alt+S to open a picker overlay; navigate with arrows, Enter inserts the selected entry (replace/append/cancel prompt if the editor is non-empty), d deletes the selected entry, and Esc cancels.

Fixed editor cluster

In interactive TUI sessions, chat/feed content scrolls above the fixed statusline, editor, and any extension-supplied widget rows. Scroll chat with the mouse wheel, PageUp/PageDown, Command+PageUp/PageDown, or Ctrl+Shift+Up/Down; the editor stays put. Drag text to copy it, drag a selection to the viewport edge to scroll, double-click a line to select it, and right-click to open the terminal context menu. Use /wierd-status fixed-editor off for pi's regular scrolling layout, or /wierd-status mouse-scroll off for native terminal selection.

Install

pi install npm:pi-wierd-statusline

Restart pi to activate.

Commands

  • /wierd-status on β€” enable the statusline
  • /wierd-status off β€” disable, restoring pi's default editor and footer
  • /wierd-status toggle β€” toggle
  • /wierd-status footer on|off|toggle β€” show/hide pi's built-in footer beneath the editor (hidden by default)
  • /wierd-status fixed-editor on|off|toggle β€” keep the editor cluster fixed at the bottom while chat scrolls above (on by default)
  • /wierd-status mouse-scroll on|off|toggle β€” enable wheel/drag scrolling and selection inside the fixed editor (on by default)

Shortcuts

  • Alt+S β€” stash editor text / restore stash when editor is empty
  • Ctrl+Alt+S β€” open the stash history picker