A Pi extension that adds a persistent heads-up display below the editor (above Pi’s built-in footer).
Full-quality MP4: https://raw.githubusercontent.com/tmustier/pi-session-hud/main/assets/demo.mp4
HUD placement (below editor/input, above footer):
(Hosted on GitHub so npm users see the media in README, but npm install stays small.)
- Activity state (idle / running / tool / error / stale)
- Session name (or cwd) and first user message fallback
- Git branch + worktree marker (
⎇ name current/totalwhen multiple) + diff stats - Context usage (% + tokens)
- Current model (+ thinking level)
pi install npm:@tmustier/pi-session-hudpi install git:github.com/tmustier/pi-session-hudSymlink into Pi’s auto-discovered extensions directory:
ln -s ~/pi-session-hud/pi-session-hud.ts ~/.pi/agent/extensions/Or add to ~/.pi/agent/settings.json:
{
"extensions": ["~/pi-session-hud/pi-session-hud.ts"]
}In Pi:
- Toggle HUD:
/hud - Aliases:
/status,/header
- Uses
ctx.ui.setWidget(..., { placement: "belowEditor" })so it’s not the footer and not a header. - Git stats are refreshed every ~10s via
git diff --stat HEAD+git status --porcelain.
See CHANGELOG.md.

