Terminal backend
Every agent Overdeck runs lives in a terminal-backend pane. The default backend is Herdr, a terminal workspace manager with a headless server per session. tmux is still supported, but only when you ask for it. Herdr is strict: if it is selected and its binary or this home’s session server is missing, agent launches fail with an error that namespan install.
Overdeck never falls back to tmux silently.
Selection
Overdeck picks the backend from these sources, in order:-
The
OVERDECK_TERMINAL_BACKENDenvironment variable (herdrortmux). Any other value is ignored with a warning, and selection falls through to the next source. -
terminal.backendin~/.overdeck/config.yaml: -
Otherwise
herdr.
herdr binary does not change
it. Availability is checked separately, every time an agent launches: the
herdr binary on PATH or in ~/.local/bin, and the session socket for this
Overdeck home (~/.config/herdr/sessions/<session>/herdr.sock, where
<session> is overdeck for the default ~/.overdeck home).
The dashboard’s terminal view uses the same lookup, so a dashboard started with npx, whose
PATH lacks ~/.local/bin, still streams Herdr terminals.
The dashboard logs the result once at boot:
UNAVAILABLE:, the missing piece, and the fix (pan install, or set
terminal.backend: tmux).
What pan install and pan sync do
Both commands run the same Herdr setup:
-
Binary. If
herdris missing, it is installed with the vendor installer (curl -fsSL https://herdr.dev/install.sh | sh) into~/.local/bin. An installer-managed binary is kept on thestablechannel; a binary installed by Homebrew, mise or Nix is verified but never changed. -
Config.
~/.config/herdr/config.tomlgets:Herdr’s default istrue, which relaunches every agent pane with its native resume after a Herdr server restart. That would bypass Overdeck’s own resume gates, so agents you paused, stopped, or that a pipeline gate is holding would come back on their own. The file is edited line by line: your comments and other settings stay exactly as they were. The result is checked withherdr config check, and a running server reloads it withherdr server reload-config. -
Session server. One headless
herdr --session <session> serverper Overdeck home. On a systemd host the default home’s server runs as the user unitoverdeck-herdr.service. Another Overdeck home gets<session>-herdr.serviceonly withOVERDECK_HERDR_PERSISTENT_UNIT=1; otherwise its server starts detached. The unit setsOOMPolicy=continue: when the kernel kills one process in a pane for lack of memory, only that process dies, and the server and every other agent keep running. A detached server logs to~/.overdeck/logs/herdr-<session>.log.pan upalso makes sure this server is running. -
Integrations. Herdr integrations report an agent’s lifecycle to Herdr
directly instead of Herdr reading the screen. For each harness whose binary is
installed, Overdeck installs its pilot from the set
pi,omp,kimi(Kimi Code 0.14.0 or later) andopencode.claude,codexandhermesonly report session identity, which Overdeck does not use yet, so Overdeck neither installs nor removes them.
CI, under Vitest, when the backend is
explicitly tmux, and with pan install --skip-herdr. Re-running either command
is safe: with everything in place it installs nothing and writes nothing.
Under Herdr, tmux is optional: pan up warns and keeps starting when it is
missing, pan install’s prerequisite gate warns instead of failing, and pan doctor reports it as a warning, not an error. Only plain terminals in the
dashboard terminal drawer need tmux under Herdr; agents don’t.
Updates
Overdeck compares the installed version withhttps://herdr.dev/latest.json
(an unreachable manifest skips the check; it is never an error).
pan installrunsherdr updatewhen a newer stable release exists.pan syncrunsherdr updateonly when no session server is running for this home. When one is running, it prints the manual steps instead.- The binary is shared, so only the default home updates it. A
pan syncstarted by the dashboard skips the update and the integration installs. pan upnever updates.
systemctl --user restart overdeck-herdr.service at a quiet moment.
pan doctor warns when the running server is older than the installed binary.
pan doctor rows
Under an explicit tmux backend, only the
Terminal backend row is shown.
Opting into tmux
Set the backend in~/.overdeck/config.yaml:
OVERDECK_TERMINAL_BACKEND=tmux. With terminal.backend: tmux,
Overdeck skips all Herdr setup and runs agents on the tmux -L overdeck
socket.
Tabs, sizing, and idle shells
Each agent and each operator conversation opens in its own tab (PAN-4582), never split into a shared one, which would halve the remaining rows on every launch. A new tab’s PTY is sized to the tab’s own layout rect right after it opens, since a brand-new PTY otherwise copies the size of whichever pane in the session happens to be focused. After a Herdr restart, the agent panes it restores lose their tokens and come back as plain idle shells. Overdeck’s hygiene scheduler closes them in its own workspaces (never the operator’s own panes) within about 20 minutes (a pane has to be seen idle on two separate 10-minute sweeps before it is closed), and never while the Deacon is paused, including during a shutdown drain.Reaching an agent from a shell
A freshpan start, pan strike and pan recover end with a Commands:
block. Its Backend: line says where the agent’s pane lives, and its Attach:
line is the command that opens it:
pan start prints its pane, a pan tell
line and the same Attach: command instead of a Commands: block.
The command depends on the backend the agent was launched on:
<session> is overdeck for the default ~/.overdeck home. Every Herdr
command needs --session, because Herdr’s own default session is default.
The Herdr form uses the terminal id, which works for every harness, including
codex, ACP and kimi, which have no Herdr agent record. Agents launched before
the terminal id was recorded get
herdr --session <session> agent attach <agent-id> instead.
The hint follows the backend recorded in the agent’s state at launch, so an
agent started on tmux before a switch to Herdr still gets the tmux form. An
agent with no recorded backend gets the host’s current selection.
The dashboard’s own terminal viewer takes control of a Herdr terminal at
attach: only a control attach resizes the PTY, and only control frames
follow a later resize, so the viewer and the PTY stay in sync. Herdr allows
one controller per terminal: if the dashboard is already showing a terminal,
herdr --session <session> terminal attach <terminal-id> from a shell needs
--takeover, or it is refused with already has an attached client. A
second dashboard viewer of the same terminal is served read-only instead.
Claude Code hooks
If you install Herdr’sclaude integration yourself, it adds a
SessionStart hook to ~/.claude/settings.json. Overdeck registers its own
SessionStart hook in the same list. Claude Code runs all matching hooks for
an event in parallel, and the two are independent: Herdr’s reports the
session to Herdr; Overdeck’s hook reports the agent idle with its model and
injects context. pan sync
never removes Herdr’s entry, and Herdr’s installer does not remove Overdeck’s.
pan doctor warns if Herdr’s claude integration is installed while
Overdeck’s SessionStart hook is missing.