pi-overwatch

Minimal TUI observability for Pi sessions, with tmux session awareness and cwd fallback

Package details

extension

Install pi-overwatch from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-overwatch
Package
pi-overwatch
Version
0.1.0
Published
Apr 19, 2026
Downloads
115/mo · 4/wk
Author
denismrvoljak
License
MIT
Types
extension
Size
28.8 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-overwatch

pi install npm:pi-overwatch

Minimal 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-overwatch

From GitHub

pi install https://github.com/denismrvoljak/pi-overwatch

Project-local install

pi install -l npm:pi-overwatch

One-off test

pi -e npm:pi-overwatch

Run Overwatch

Open another terminal pane or window and run:

pi-overwatch

If you want to run it directly from the repo:

node /absolute/path/to/pi-overwatch/bin/pi-overwatch.js

How targeting works

Overwatch is tmux-aware, not tmux-dependent.

Target resolution is:

  1. tmux session name
  2. Pi session name
  3. 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 icon
  • TARGET — main identity for the Pi instance
  • WHERE — source context, usually tmux pane info like tmux 1.1
  • DOING — current phase or tool
  • SUMMARY — short activity summary
  • Q — steering/follow-up queue counts
  • LAST — seconds since last heartbeat
  • RUN — elapsed runtime for the current or most recent task

Status icons:

  • working
  • done
  • ! stale
  • error
  • offline

Configuration

Overwatch reads config from:

~/.pi/overwatch/config.json

You can start from the example file:

mkdir -p ~/.pi/overwatch
cp /absolute/path/to/pi-overwatch/config.example.json ~/.pi/overwatch/config.json

Example:

{
  "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 example api · my-monorepo

dashboard.showColumnHeader

  • true — show headers
  • false — hide headers

Controls

  • q quit
  • f toggle working-only view
  • a toggle offline rows
  • r force refresh

State directory

By default, Overwatch stores data in:

~/.pi/overwatch

Structure:

~/.pi/overwatch/
├── agents/
│   └── <agent-id>.json
├── config.json
└── events.jsonl

Override the root directory with:

export PI_OVERWATCH_DIR=/some/other/path

Other environment overrides:

export PI_OVERWATCH_REFRESH_MS=1000
export PI_OVERWATCH_STALE_MS=30000

Pi command

The extension also registers:

/overwatch

That 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.md

Notes

  • 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