Overview
Pi’s UI enhancement packages target four separate surfaces: the bottom footer bar, side-question overlays, transcript tool-call presentation, and response-style prompt hooks. Because they solve different problems, you can combine one from each surface instead of picking only one package.
Do not stack two extensions on the same surface. Pi provides a single setFooter slot and shared slash-command namespaces, so installing two statuslines or two /btw implementations will overwrite or collide with each other.
Compare by use case
Scroll the table horizontally; configuration and sources follow below.
| Resource & purpose | Mechanism | Dependencies & keys | Data sent | Failure behavior | Evidence |
|---|---|---|---|---|---|
| @narumitw/pi-statusline Powerline footer with Git, context, token/cost usage, and adaptive narrowing. | Replaces Pi’s footer via ctx.ui.setFooter with responsive segments (Minimal, Balanced default, Detailed, Custom), 7 palettes, ANSI-256 fallback, and /statusline live preview. Reads session usage from ctx.sessionManager and local Git state via pi.exec("git", ..., 3s timeout); saves settings to <agent-dir>/pi-statusline.json. | Pi TUI (ctx.mode === "tui"; restores default footer on shutdown) and optional git in PATH for branch and dirty indicators. Bundles @narumitw/pi-tui-kit; a Nerd Font is recommended for Powerline glyphs. | None by this extension. Reads local session entries, extension status metadata, and local Git status only; no outbound network calls. | Malformed or unreadable pi-statusline.json records diagnostics shown under /statusline Status and falls back to built-in defaults. Git timeouts or non-Git directories omit Git counts without interrupting the session. | Footer lifecycle and hooks ↗ |
| pi-btw Parallel /btw sub-session modal that runs alongside an active main turn. | Registers /btw (alias /side) and /btw:* commands (tangent, ask, new, clear, inject, summarize, model, thinking). Spawns a Pi sub-session via createAgentSession in a focused TUI modal and stores exchanges as hidden thread entries unless --save or /btw:inject is used. | Pi >= 0.85.1 < 2 (dev dependencies target Pi 1.5.0 / Node.js >= 22.19.0) and an authenticated model provider. Modal composer requires TUI; RPC/SDK hosts require inline questions. | Sends the side question, inherited main-session context (unless using /btw:tangent), and tool outputs to the configured model provider or /btw:model override. | Hidden BTW threads stay isolated from future main-agent turns unless explicitly injected or saved. Focus shortcuts (Alt+/, Super+/, Ctrl+Alt+W) can be overridden via PI_BTW_FOCUS_KEYS if intercepted by the terminal or window manager. | BTW extension source ↗ |
| pi-tidy Visual-only TUI cleanup that folds tool calls into clickable lines and keeps diffs visible. | Patches Pi TUI tool frames, message boxes, bash execution rows, and repeated error lines (×N). Groups tool calls between assistant replies into single-line clickable summaries without removing running calls, edits, or writes; configured via settings.json ("tidy" or legacy "toolbox") and /tidy. | Node.js >= 22 and Pi TUI (devDependencies target Pi ^1.7.0). Nerd Font recommended when icons: true (default); click-to-expand requires mouse support, while Ctrl+O remains available via keyboard. | None. Operates strictly on local TUI rendering and local settings.json; makes no LLM calls or outbound network requests. | Wraps TUI hook patches in try/catch (logging via console.debug) and checks internal availability flags before patching. Setting enabled: false disables active patches without uninstalling. | Extension entry and TUI patches ↗ |
| pi-caveman Terse response mode injecting prompt compression rules across eight intensity levels. | Registers /caveman (lite, full, ultra, wenyan-lite, wenyan, wenyan-ultra, micro, off/stop/quit, config). Hooks before_agent_start to append style rules to event.systemPrompt, persists defaults in <agent-dir>/caveman.json, and renders an animated braille campfire via ctx.ui.setStatus("caveman", ...). | Pi (@earendil-works/pi-coding-agent). Works in TUI and hosts exposing setStatus (handles hosts without a TUI theme). | Appends the active caveman instruction text to the system prompt sent to your configured model provider on each turn; makes no third-party network calls. | Missing or invalid caveman.json falls back to DEFAULT_CONFIG (defaultLevel: "full", showStatus: true). Running /caveman off (or stop/quit) stops appending prompt rules and clears the footer status timer. | Hook, levels, and config source ↗ |
Installation & operating boundaries
@narumitw/pi-statusline
Powerline footer with Git, context, token/cost usage, and adaptive narrowing.
pi install npm:@narumitw/pi-statusline- Mechanism
- Replaces Pi’s footer via ctx.ui.setFooter with responsive segments (Minimal, Balanced default, Detailed, Custom), 7 palettes, ANSI-256 fallback, and /statusline live preview. Reads session usage from ctx.sessionManager and local Git state via pi.exec("git", ..., 3s timeout); saves settings to <agent-dir>/pi-statusline.json.
- Prerequisites
- Pi TUI (ctx.mode === "tui"; restores default footer on shutdown) and optional git in PATH for branch and dirty indicators. Bundles @narumitw/pi-tui-kit; a Nerd Font is recommended for Powerline glyphs.
- Data scope
- None by this extension. Reads local session entries, extension status metadata, and local Git status only; no outbound network calls.
- Failure behavior
- Malformed or unreadable pi-statusline.json records diagnostics shown under /statusline Status and falls back to built-in defaults. Git timeouts or non-Git directories omit Git counts without interrupting the session.
- Known limitations
- Occupies Pi’s single setFooter slot, so it conflicts with other full-footer replacements such as pi-powerline-footer or pi-starline. Drops lower-priority segments on narrow terminals; cost totals depend on provider-reported usage in session entries.
Source / documentation reviewed · v0.51.6 · d3b1dc26f0832ba7a647b05e74ae281b27f68150
pi-btw
Parallel /btw sub-session modal that runs alongside an active main turn.
pi install npm:pi-btw- Mechanism
- Registers /btw (alias /side) and /btw:* commands (tangent, ask, new, clear, inject, summarize, model, thinking). Spawns a Pi sub-session via createAgentSession in a focused TUI modal and stores exchanges as hidden thread entries unless --save or /btw:inject is used.
- Prerequisites
- Pi >= 0.85.1 < 2 (dev dependencies target Pi 1.5.0 / Node.js >= 22.19.0) and an authenticated model provider. Modal composer requires TUI; RPC/SDK hosts require inline questions.
- Data scope
- Sends the side question, inherited main-session context (unless using /btw:tangent), and tool outputs to the configured model provider or /btw:model override.
- Failure behavior
- Hidden BTW threads stay isolated from future main-agent turns unless explicitly injected or saved. Focus shortcuts (Alt+/, Super+/, Ctrl+Alt+W) can be overridden via PI_BTW_FOCUS_KEYS if intercepted by the terminal or window manager.
- Known limitations
- Default /btw exposes read, bash, edit, and write tools in the same workspace; use /btw:ask for read-only (read, grep, find, ls). Sub-sessions incur separate model token usage and collide with other /btw packages such as @juicesharp/rpiv-btw or @spinejit/pi-btw-cached.
Source / documentation reviewed · v0.8.1 · 374465f0a2bd3df502c4f981405e61567d92046b
pi-tidy
Visual-only TUI cleanup that folds tool calls into clickable lines and keeps diffs visible.
pi install npm:pi-tidy- Mechanism
- Patches Pi TUI tool frames, message boxes, bash execution rows, and repeated error lines (×N). Groups tool calls between assistant replies into single-line clickable summaries without removing running calls, edits, or writes; configured via settings.json ("tidy" or legacy "toolbox") and /tidy.
- Prerequisites
- Node.js >= 22 and Pi TUI (devDependencies target Pi ^1.7.0). Nerd Font recommended when icons: true (default); click-to-expand requires mouse support, while Ctrl+O remains available via keyboard.
- Data scope
- None. Operates strictly on local TUI rendering and local settings.json; makes no LLM calls or outbound network requests.
- Failure behavior
- Wraps TUI hook patches in try/catch (logging via console.debug) and checks internal availability flags before patching. Setting enabled: false disables active patches without uninstalling.
- Known limitations
- Relies on runtime patching of Pi’s internal TUI components, so upstream TUI refactors can temporarily degrade patched surfaces until pi-tidy updates. Folding is purely visual and does not reduce model context or token usage.
Source / documentation reviewed · v0.12.0 · ac3004db2c00d7821b547403fd1dc8bbccdbe5cd
pi-caveman
Terse response mode injecting prompt compression rules across eight intensity levels.
pi install npm:pi-caveman- Mechanism
- Registers /caveman (lite, full, ultra, wenyan-lite, wenyan, wenyan-ultra, micro, off/stop/quit, config). Hooks before_agent_start to append style rules to event.systemPrompt, persists defaults in <agent-dir>/caveman.json, and renders an animated braille campfire via ctx.ui.setStatus("caveman", ...).
- Prerequisites
- Pi (@earendil-works/pi-coding-agent). Works in TUI and hosts exposing setStatus (handles hosts without a TUI theme).
- Data scope
- Appends the active caveman instruction text to the system prompt sent to your configured model provider on each turn; makes no third-party network calls.
- Failure behavior
- Missing or invalid caveman.json falls back to DEFAULT_CONFIG (defaultLevel: "full", showStatus: true). Running /caveman off (or stop/quit) stops appending prompt rules and clears the footer status timer.
- Known limitations
- Defaults to auto-enabling "full" on every new session until changed in /caveman config. The README’s "~75% output token reduction" is an upstream claim not measured by Pi Index; prompt rules add minor input tokens, and changing levels mid-session alters the system prompt.
Source / documentation reviewed · v1.0.12 · b8f6cb4998ac8a7599fad6e4a92c0d36609b418e
Choose by TUI surface and avoid collisions
Pick @narumitw/pi-statusline when you want a Powerline footer with Git, context, and usage segments without replacing the rest of the TUI. Avoid pairing it with full-footer extensions such as pi-powerline-footer or pi-starline.
Pick pi-tidy to fold noisy tool groups visually without touching prompts or tokens, pi-btw for parallel side threads while the main agent runs, and pi-caveman only if you intentionally want terse replies on every session.
/btw is a real sub-session, not a read-only chat
In pi-btw, plain /btw (or its alias /side) opens a real Pi sub-session via createAgentSession with read, bash, edit, and write tool access in your workspace. It keeps exchanges out of the main thread unless you pass --save or run /btw:inject or /btw:summarize.
When you only want to inspect files without running shell commands or edits, use /btw:ask (restricted to read, grep, find, and ls) or /btw:tangent for a contextless thread. If you want read-only questions that reuse the main prompt-cache prefix without tool execution, compare @spinejit/pi-btw-cached.
Transcript density vs prompt compression
pi-tidy changes how the terminal draws tool boxes, user messages, and repeated errors locally. Because it patches Pi’s TUI components at runtime, it adds zero LLM calls or context overhead, and keeps edit diffs and running jobs visible.
pi-caveman works at the model layer instead: it hooks before_agent_start to append terse-output rules to the system prompt and defaults to defaultLevel: "full" on new sessions until changed in /caveman config. Upstream estimates ~75% output-token savings; Pi Index has not benchmarked token savings, and switching levels mid-session changes the system prompt prefix.
Verify one extension at a time
After installing a package, restart Pi or run /reload, then verify its command and config state before layering another UI extension on top. For pi-btw, start with /btw:ask to verify the overlay and focus shortcuts without granting write tools.
These checks confirm local command registration and config persistence; none of them measure model token savings or third-party billing.
/statusline
/btw:ask What files define the build scripts in this repo?
/tidy
/caveman configRelated & alternative options
- pi-powerline-footer →
Powerline-style status bar extension.
- @juicesharp/rpiv-btw →
Juicesharp's btw side conversation variant.
- @spinejit/pi-btw-cached →
/btw side questions for Pi: ask about the running main session on the same prompt-cache prefix without running tools or writing to session history. By GhabiX. Apache-2.0.
- pi-starline →
Starship-style statusline, Opencode-style editor chrome, and fullscreen mouse control: drag-select to copy, click to expand a single tool box, click to place the caret. Colours support $ref reuse.
- pi-slate →
Customizable terminal workbench for Pi with a session sidebar, inline syntax-highlighted diffs, and image previews in compatible terminals. By GaganSD. MIT.
- @narumitw/pi-caffeinate →
Cross-platform sleep prevention, keeps system awake during long prompts.
Primary sources & verification scope
Source review and runtime testing are distinguished above. Features, performance and savings not marked “Tested” are not measurements by Pi Index.