@aemonge-dev/pi-stardeck0.19.0
A Vim- and tmux-inspired command deck for Pi
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-stardeck
A Vim- and tmux-inspired command deck for Pi: lifecycle context, external-Neovim prompt composition, Vim command handling, and responsive operational telemetry in one package.
[!IMPORTANT] The best experience is Pi in regular mode inside
nvim +terminal, with a blocking Neovim bridge configured as Pi'sexternalEditor. Pi fullscreen reserves a three-row editor slot and is not the target layout.
The cockpit
──────────────────────────────────────────────────────────────────────────────
⟩ Stabilize runtime and focus in the cockpit Opus › high ⟩ 38% › 2 ⟩ 42%
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
scout async reading turn 2 › 4 tools › 22.3K › 0:41 › opus › high
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
🔔 graphify active · report available · update recommended
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
~/projects/example ⟩ main › +0 ~1 ?1 1 › 2 ⟩ /pi-status ⟩ 3% › 268M › 3/3 ⟩ $5.16
────────────────────────────────────────────────────────────────────────────── ◀── Pi's own editor border; below it the prompt, whose bottom border carries the working line:
── ⠦ Working (1m 18s) ────────────────────────────────────────────────────── INSERT ─
The deck is one framed block above the editor: a solid rule in the thinking color
on top, Pi's own editor border below, the subject line first, then the fleet band
and the warning band — each closed by its own dotted rule and absent when empty —
and the identity row last. Nothing sits behind a toggle: the engine cluster and
the machine tail are always on, the Human-owned subject and the identity row never
yield to them, and a long subject wraps before it truncates. Telemetry tiles read
by meaning, each through its own theme key — context success, quota windows
warning (red from 80% used), CPU and memory muted, MCP success or error by
state, cost borderAccent, the model accent — so every hue stays yours to retune
in the theme. The deck registers no command of its own.
The package composes bounded modules in dependency-safe order:
- Footer telemetry — session usage cost and quota for the deck's clusters;
- Status provider — lifecycle, the room aim's OpenSpec state, and diagnostic state;
- Header Deck — the subject with the engine cluster, the fleet and warning bands, and the identity row with the machine tail.
With pi-subagents installed, its
running children appear in the fleet band under the subject line — one row per
child, by name, with the tool class in flight, turn and tool counts, tokens,
elapsed time, model and effort (whatever that package reports; the deck paints it
and never times it) — and the [ needs you] bracket when a child asks for you.
Rows come from that package's documented host contract (its in-process status
snapshot and fleet records); prompts, tool arguments, run ids, and child output
never reach the deck, and the deck fails soft without the package. To make the
deck the only fleet surface, set in Pi settings:
{ "subagents": { "asyncWidget": false, "fleetView": false, "inlineToolDisplay": "summary" } }
The room aim (openspec/.focus) is still read by the status provider; the deck
no longer renders a chip for it. Warnings speak in their own band inside the deck,
closed by a dotted rule.
Companion extensions surface as leading telemetry icons:
| Chip | Extension | Meaning |
|---|---|---|
[↻ ▤] recall + records |
engram |
persistent memory store |
⌬ benzene |
graphify |
knowledge graph |
⛨ shield |
appa / pi-openappa |
tool-call guard |
Blue means healthy, amber degraded, red error or not reporting.
Optional Git, OpenSpec, Devbox, tmux, Neovim, provider-quota, and Nerd Font capabilities fail soft when absent. Pi core remains the API authority.
Recommended setup
Requirements
- Node.js 24 or newer;
- a current Pi installation;
- Neovim for the recommended workflow;
- one blocking
externalEditorexecutable that accepts the temporary Markdown file as its only argument, opens it in the enclosing Neovim instance, and exits when that buffer closes.
Recommended pairing — pi-title: the deck's line-1 subject prefers the native session name, and pi-title names each session from its first request. Install it alongside the deck and every session opens already named; manual titles are never replaced automatically.
The bridge is deliberately not shipped: connecting to a private Neovim server is machine-specific and belongs in your trusted user configuration.
Configure the bridge through Pi's global ~/.pi/agent/settings.json or /settings:
{
"externalEditor": "/absolute/path/to/your/blocking-nvim-bridge"
}
The current adapter invokes that setting as one executable without a shell. Put arguments
inside your bridge script rather than appending shell text to externalEditor.
Start Neovim, open a terminal, and run Pi in regular mode:
:terminal
pi --tui-mode regular
Optional Ctrl-E mapping
Current Pi defaults app.editor.external to Ctrl-G. The validated cockpit uses Ctrl-E;
this remains your user-owned Pi configuration:
{
"app.editor.external": "ctrl+e"
}
Place that in ~/.pi/agent/keybindings.json, then run /reload. The package never edits
Pi or Neovim configuration automatically.
Prompt workflow
The consolidated surface starts in Normal and renders zero native prompt rows.
- Press
i,a,I,A,o,O,s,S,C, a supported change command, or Pi's configured external-editor shortcut. - The Header Deck shows Insert while Neovim owns the handoff.
- Compose in the temporary
prompt.mdbuffer. - Use
:xor:wqafter writing to return and submit exactly once.
Submission follows the last explicit write—not a content comparison:
- edited
:xor:wqsubmits; - unchanged
:xthat performs no write submits nothing; :q!without a write submits nothing;:w, further unsaved edits, then:q!submits the last saved bytes;- failed, inactive, and duplicate handoffs never submit.
Normal, Visual, and EX commands still operate on the hidden draft. Ordinary terminal scrollback navigation and text selection belong to the enclosing Neovim terminal buffer. Restoring outer Neovim's terminal Insert state after the prompt closes also remains Neovim configuration.
Health check
Run the read-only health report directly:
/stardeck-health
Or through the exact Pi EX-command bridge from Normal mode:
:stardeck-health
The bounded report classifies package registration, interactive TUI, external-editor
readiness, recommended Neovim topology, and optional local capabilities as PASS,
WARN, or INFO. It does not execute the configured editor or expose commands,
settings, endpoints, environment values, credentials, or absolute paths.
Installation
The package is MIT-licensed and published as @aemonge-dev/pi-stardeck.
Review extensions before installation because Pi packages execute with user
permissions. The command below works from any directory; it does not require
cloning this repository.
From npm
Install the cockpit extension through Pi:
pi install npm:@aemonge-dev/pi-stardeck
Do not load this package alongside the four legacy component package entries.
Inspect pi list, then remove or disable duplicates as one reviewed user
action. npm link is not Pi's package-registration mechanism.
Publish runbook (maintainer)
Publishing is a maintainer action with maintainer credentials, never part of automated checks. From the repository root:
npm install --package-lock-only
npm publish --access public
The scoped package name requires --access public; the lockfile refresh
keeps npm ci reproducible after an identity change.
Local path (development)
From the repository root:
npm ci
npm run check
pi install "$(pwd -P)"
Pinned private Git source
After the repository has an authorized remote, install an immutable tag or commit:
pi install git:<host>/<owner>/pi-stardeck@<tag-or-commit>
A pinned ref does not move during ordinary package updates.
Rollback
Keep the previous source/ref before changing installation. To remove the npm installation:
pi remove npm:@aemonge-dev/pi-stardeck
For local-path installations, pass the absolute path to pi remove instead.
Restore the previous package entries only after confirming this package has
been removed; never keep both cockpit registrations active.
Reproducible VHS demo
The checked-in tape simulates a fresh machine: the published package
installs into an isolated throwaway HOME with a user-local npm prefix, and
a clean offline Pi session runs the /stardeck-health report through Pi
Vim's Normal-mode EX bridge. No provider,
session, credential, or private editor bridge is involved. From the
repository root, run:
vhs demo/pi-stardeck.tape
It writes docs/assets/pi-stardeck.gif using VHS's explicit Gruvbox
Light terminal theme and a compact frame that keeps the cockpit prominent.
Review the entire recording for private paths, notifications, or terminal
history before committing it. The single reviewed GIF is the project's
explicit demo-asset exception; ordinary screenshots and private runtime
captures remain excluded.
Development
npm run check:package
npm run check:package:load
npm run check
The package gate constrains shipped paths, creates real tarballs only under temporary ignored directories, extracts them, and loads them through credential-free offline Pi. It never initializes another Git/Rustory repository or mutates Pi settings.
See:
docs/architecture.md— package and privacy boundaries;docs/development.md— focused checks and local development;licenses/README.md— upstream licenses and provenance;packages/pi-vim-top-border/README.md— complete Vim command reference.