pi-iterm2-status0.1.6
Native iTerm2 Session Status, tab subtitle and progress ring for the Pi coding agent. Zero configuration.
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-iterm2-status
Native Session Status in iTerm2 for the Pi coding agent. Pi sessions appear in iTerm2's Session Status tool exactly like Claude Code sessions: a coloured dot, a state word, and a detail line naming what it is doing.
View → Toolbelt → Session Status
● pi working Bash: rg -n "set-status"
● pi waiting Needs approval: Overwrite src/app.ts?
● pi done All checks pass.
Status works with no configuration. One guided command adds the rest. The design follows iTerm2's own Claude Code integration: the same session status, the same workgroup shape, the same trigger pair — with one deliberate default change: auto-enter is off until you ask for it.
Features
- Live state —
working,waiting,error,done,idle, using iTerm2's own five colours, so a Pi row and a Claude row are indistinguishable. - Detail lines shaped like Claude's hooks:
Bash: <cmd>,Read: <file>,Edit: <file>,Search: <pattern>,Web: <query>,Needs approval: <title>. - No configuration. It picks the best of three ways to talk to iTerm2 and proves
it works, degrading silently: iTerm2's own agent-hook engine, the documented
OSC 21337sequence, thenit2. No Python API required. - Tab progress ring while a turn runs, with exactly one writer.
- A Pi workgroup — Chat, Diff and Review one shortcut apart — opened from
Shell > Workgroups > Pi. Auto-entering it is opt-in, and off by default. - No surprise agents. The Review pane runs a
piof its own, so the layout is never entered for you unless you asked for that at install time. - Guided installer that plans every change, asks once, backs your preferences up, and applies them while iTerm2 is closed (the only ordering that sticks).
- Clean removal:
uninstallreverses exactly what it added, verified to restore the preferences domain key for key. verifyto prove it works, including a real status round trip inside iTerm2.- tmux aware, and no runtime dependencies of its own.
Install
pi install npm:pi-iterm2-status # register the extension with Pi
npx pi-iterm2-status setup # workgroup, sidebar tool; no auto-enter
Auto-enter triggers are opt-in: add --profiles all (or tick profiles in the picker)
if you want the workgroup to open and close with pi by itself.
Restart Pi (or /reload) after the first command, and accept the offer to close
iTerm2 during setup. Requires macOS, iTerm2 3.7+, Pi, and Node 20+.
Commands
| Command | Does |
|---|---|
npx pi-iterm2-status setup |
guided install; --yes, --relaunch, --apply, --advanced for scripts |
npx pi-iterm2-status verify |
checks the whole chain, with a live round trip when run inside iTerm2 |
npx pi-iterm2-status status |
what is installed right now |
npx pi-iterm2-status uninstall |
reverse exactly what was added |
/pi-iterm2-status |
inside Pi: doctor output, and test cycles the states |
Learn more
- docs/install.md — every install path, removal, troubleshooting.
- docs/setup.md — how the three layers work, the measured iTerm2 behaviour behind the design, and what cannot be done.
- CHANGELOG.md — what changed and when.
License
MIT