npm.io
1.0.0 • Published 2d ago

pi-input-bar

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

pi-input-bar

npm

A pi extension that embeds live status in your editor's border — no extra rows, no clutter. Everything fits inside the input box: folder, branch, model, speed, context, cost.

╭─ ⌂ agent :: ⎇ main ● ────────────────── openrouter/tencent/hy3:free :: ✦ high  ─╮
│ _                                                                                │
╰─────────────────────── ⛁ 10%/262k :: ↑29k ↓1.6k R24k :: ⚡pp 512 · tg 34.2 t/s ─╯

Install

From npm:

pi install npm:pi-input-bar

Or from git:

pi install git:github.com/sebaxzero/pi-input-bar.git

Add -l to either form to install project-locally (adds to .pi/settings.json only).

No dependencies, no build step, nothing to configure — the bar appears as soon as it loads.

What you see

Top border — where you are and what's thinking:

  • Current folder and git branch
  • A dot that pulses while the agent is responding ()
  • provider/model and thinking effort level (color-coded)

Bottom border — what's happening under the hood:

  • Context usage — fill level, colored green → yellow → red as it fills
  • Token stats — input, output, cache reads/writes
  • Session cost — running total
  • Speed — prefill (pp) and generation (tg) tokens/sec, llama.cpp style

While streaming — a random working word replaces the default label: Pondering…, Percolating…, Marinating… — re-rolled on every agent run.

Commands

/input-bar                 — show current config
/input-bar set KEY=VAL     — override config for the current session only
/input-bar save            — write the current config to input-bar.json
/input-bar reset           — restore defaults

Configuration

Persistent configuration lives in extensions/input-bar.json next to the installed extension (auto-created on first load with defaults). You can ask the agent to edit it, or tune values live with /input-bar set.

Key Default Description
TOP true Show folder/branch/model/effort in the top border
BOTTOM true Show stats in the bottom border (and slim down the footer)
TPS true Show tokens/sec
ANIM true Random working word while streaming
ICONS true Glyphs (⌂ ⎇ ⛁ ) in the bars
WORDS "" Comma-separated custom working-word pool

License

MIT

Keywords