zdev

You're 8 coding agents deep across 8 tmux sessions. Three of them have been
silently waiting on input for the last 20 minutes. zdev is the daemon +
tmux sidebar that surfaces which sessions need you (and what they're stuck
on), plus a CLI that spins, kills, and auto-reaps one tmux session per
project so the list stays tractable.

To regenerate: make -C zdevd demo-gif — starts zdevd demo (a
fake-fleet snapshot server; no agents, tmux sessions, or gh auth needed)
and records the real renderer with vhs
via docs/demo.tape. The scenario: idle → working → waiting →
escalation → agent death.
What you get
- Sidebar pane in every tmux window that surfaces, for each project:
agent attention state (waiting / working / idle), branch + dirty/ahead/
behind counts, open PRs with check status, listening dev-server ports,
and "you've been waiting N minutes" tier escalations
zdev CLI — one tmux session per project, plus up / list /
kill / reap with launchd-driven hourly idle reaping
- Event-driven Go daemon that connects to
tmux -CC control mode, so
it's measurably zero idle CPU between events (vs. polling tmux at 1 Hz
which the previous bash sidebar did, and which lit my laptop fan up)
Prerequisites
Required:
- macOS (the daemon uses launchd; the rest is portable but unsupported)
- tmux 3.x with control mode (
tmux -CC) — brew install tmux
- Go 1.23+ to build the daemon
- macOS:
brew install go
- Ubuntu / Debian:
apt's golang-go ships 1.18–1.22 on every current LTS and won't build. Use sudo snap install go --classic, or the longsleep PPA, or download from go.dev/dl and add /usr/local/go/bin to your PATH.
- make, jq, plutil, launchctl (plutil + launchctl ship with macOS)
Strongly recommended:
- gh (GitHub CLI), authenticated via
gh auth login — without it the
PR-status probes are no-ops and the sidebar's PR column stays blank
- claude or opencode CLI on
$PATH if you want the agent pane that
zdev <project> spawns. Both are first-class — the first one found on
$PATH (claude before opencode by default) wins. Override registration
order or add new agents via ~/.config/zdev/sidebar.toml; see
config/sidebar.toml.example for a
worked example. Set ZDEV_AGENT_CMD="" to disable the pane, or
ZDEV_AGENT_CMD="aider --foo" to force a specific command.
Optional:
- fzf for the popup pickers (
zdev-pick, zdev-prompt-picker, etc.)
- sapling if you want the pre-push hook auto-installed (no-op otherwise)
Install
One-liner (clones to ~/workspace/zdev and installs from the checkout):
curl -fsSL https://raw.githubusercontent.com/tristankenney/zdev/main/install.sh | bash
Or clone first and run it yourself:
git clone [email protected]:tristankenney/zdev.git ~/workspace/zdev
~/workspace/zdev/install.sh
Both end up in the same place — the piped form bootstraps the clone
(override the location with ZDEV_INSTALL_DIR=...), then re-runs itself
from it. Re-running against an existing checkout reuses it as-is.
The installer:
- Checks prerequisites and warns on missing optional tools
- Symlinks
bin/* into ~/.local/bin/ (make sure that's on your $PATH)
- Seeds
~/.config/zdev/projects from config/projects.example if missing
- Builds the Go daemon, substitutes launchd plist paths, and bootstraps
com.zdev.zdevd (the daemon) + com.zdev.reaper (hourly idle-session
reaper) as LaunchAgents
After installing, edit ~/.config/zdev/projects to list your projects
(one path per line, relative to ~/workspace).
Tmux integration
The sidebar only renders if tmux is configured to call
zdev-sidebar-toggle on the right hooks. Add this to your ~/.tmux.conf:
source-file ~/workspace/zdev/config/zdev.tmux.conf
Then tmux source ~/.tmux.conf (or restart tmux). The config sets up:
- Pane title bar +
allow-rename off so agent indicators survive
- Window-bell monitoring
- Hooks that toggle a left sidebar pane on every window when the client is
wide enough
- Optional fzf-popup bindings (commented out — uncomment what you want)
CLI