pi-overwatch
v0.1.0
Published
Minimal TUI observability for Pi sessions, with tmux session awareness and cwd fallback
Maintainers
Readme
pi-overwatch
pi install npm:pi-overwatchMinimal observability for your Pi sessions.
I built pi-overwatch because I wanted a simple way to see what my Pi sessions were doing while multitasking.
I use tmux with a "one session per project" setup, so Overwatch uses the tmux session name as the main target label when Pi is running inside tmux. If you're not using tmux, it falls back to the directory where you launched Pi.
There are already agent control-center tools and tmux dashboards out there, but I wanted something smaller and calmer: a lightweight TUI that gives me live status for Pi instances without changing how I work.
You can run it anywhere in your terminal setup — inside a tmux pane, in a separate terminal window, or in something like Ghostty.
What it shows
- current Pi session status at a glance
- tmux-session-aware target labels
- cwd fallback when tmux is not available
- current phase or tool activity
- queue counts, heartbeat age, and runtime
- stale-session detection
- simple local config in
~/.pi/overwatch/config.json
Install
From npm
pi install npm:pi-overwatchFrom GitHub
pi install https://github.com/denismrvoljak/pi-overwatchProject-local install
pi install -l npm:pi-overwatchOne-off test
pi -e npm:pi-overwatchRun Overwatch
Open another terminal pane or window and run:
pi-overwatchIf you want to run it directly from the repo:
node /absolute/path/to/pi-overwatch/bin/pi-overwatch.jsHow targeting works
Overwatch is tmux-aware, not tmux-dependent.
Target resolution is:
- tmux session name
- Pi session name
- cwd basename
That means if you use a tmux workflow like "one tmux session per project", the dashboard naturally follows that naming. If you are not using tmux, it still works fine and identifies sessions from the directory where Pi was launched.
Dashboard columns
S— status iconTARGET— main identity for the Pi instanceWHERE— source context, usually tmux pane info liketmux 1.1DOING— current phase or toolSUMMARY— short activity summaryQ— steering/follow-up queue countsLAST— seconds since last heartbeatRUN— elapsed runtime for the current or most recent task
Status icons:
●working✓done!stale✕error○offline
Configuration
Overwatch reads config from:
~/.pi/overwatch/config.jsonYou can start from the example file:
mkdir -p ~/.pi/overwatch
cp /absolute/path/to/pi-overwatch/config.example.json ~/.pi/overwatch/config.jsonExample:
{
"dashboard": {
"identity": "auto",
"showColumnHeader": true
}
}dashboard.identity
Supported values:
"auto"— tmux session name, then Pi session name, then cwd basename"tmux"— prefer tmux session name"cwd"— show cwd basename only"both"— show tmux session name plus cwd basename when they differ, for exampleapi · my-monorepo
dashboard.showColumnHeader
true— show headersfalse— hide headers
Controls
qquitftoggle working-only viewatoggle offline rowsrforce refresh
State directory
By default, Overwatch stores data in:
~/.pi/overwatchStructure:
~/.pi/overwatch/
├── agents/
│ └── <agent-id>.json
├── config.json
└── events.jsonlOverride the root directory with:
export PI_OVERWATCH_DIR=/some/other/pathOther environment overrides:
export PI_OVERWATCH_REFRESH_MS=1000
export PI_OVERWATCH_STALE_MS=30000Pi command
The extension also registers:
/overwatchThat command shows the current state file path for the active Pi instance.
Package structure
pi-overwatch/
├── bin/
│ └── pi-overwatch.js
├── extensions/
│ └── overwatch.ts
├── config.example.json
├── LICENSE
├── package.json
└── README.mdNotes
- best results come from launching Pi inside the tmux pane you want associated with the row
- Overwatch does not rename tmux sessions or take over your workspace
- it is intentionally minimal and focused on observability
- Pi loads the extension directly from TypeScript
- there is no build step
