Detach and reattach
Herdr runs panes in a background session server. Quit the client, close the terminal, and come back to the same agents later.
Open source · 1k+ GitHub stars
Run Pi, Claude Code, Codex, OpenCode, and other agents in real terminal panes. See what is blocked, working, and done. Detach, SSH back in, and keep every agent running.
curl -fsSL https://herdr.dev/install.sh | sh
Linux and macOS · single Rust binary · no Electron · works inside tmux
Why Herdr exists
Herdr is not a GUI wrapper around agents. It keeps the agent's own terminal alive, adds workspace structure, and exposes the same control surface to humans, scripts, and agents.
Core pillars
Herdr runs panes in a background session server. Quit the client, close the terminal, and come back to the same agents later.
Run Herdr where the code and credentials live. SSH into the server and attach, or use Herdr as a thin client to a remote host.
Every pane is a real terminal. Click panes, tabs, workspaces, and agents; drag borders; select text; use right-click menus.
The sidebar shows agent state. The CLI and socket API let agents create panes, run commands, read output, and wait for changes.
Terminal-native
GUI agent managers can summarize what an agent is doing. Herdr shows the actual process in the actual terminal and adds the missing layer: persistence, layout, mouse controls, state awareness, and automation hooks.
Local or remote
Start a local session, split panes, create tabs, and keep agents running while your terminal comes and goes.
$ herdr
Use Herdr like tmux on a remote box. The session stays on the server after you detach.
$ ssh you@server
$ herdr
Point your local Herdr client at an SSH config host and stream the remote TUI back to your terminal.
$ herdr --remote workbox
For agents and scripts
Herdr exposes workspace, tab, pane, output, and wait operations through a CLI and newline-delimited JSON socket API. Agents can orchestrate their own workspace instead of asking you to shuffle terminals by hand.
# create workspace structure
herdr workspace create --cwd ~/project --label api
herdr tab create --label logs
# split a pane and run work
herdr pane split 1-1 --direction right
herdr pane run 1-2 "just test"
# wait, inspect, and continue
herdr wait agent-status 1-1 --status done
herdr pane read 1-2 --source recent-unwrapped
Agent awareness
Each workspace rolls up to its most urgent agent state, so the whole session is scannable.
See which agents are blocked, working, done, idle, or unknown without opening every pane.
Positioning
| Capability | tmux | GUI agent managers | Herdr |
|---|---|---|---|
| Persistent sessions | ✓ | — | ✓ |
| Remote SSH attach | ✓ | limited | ✓ |
| Real terminal panes | ✓ | — | ✓ |
| Mouse-native TUI | — | ✓ | ✓ |
| Agent state awareness | — | ✓ | ✓ |
| Agents can orchestrate it | — | limited | ✓ |
Integrations
Start small
The value shows up the first time work keeps running after your terminal disappears.