These are the terminals Collie reads sessions from: Herdr, the Herdr core
(herdr-core), tmux, zellij, tuios, Tern and Rex. Collie drives one terminal per install, and Herdr is
the default. This page covers pointing
Collie at any of them, what each one can answer, and the beacons Collie uses to detect an agent in
a pane. A durable agent with no screen is not a terminal, and Durable agents covers it.
tmux, zellij and Rex call their own top-level group a session. Collie shows it as a space.
Name the backend in COLLIE_MUX, point it at an endpoint, restart, and install the beacon hooks.
Experimental. tmux and zellij (since 1.0) were tested on tmux 3.6b and zellij 0.44.2, on a single host. tuios (since 1.15.0) was tested on tuios 0.8.4. The Herdr core (since 1.25.0) was tested on hc 0.1.14, a 0.x preview. Tern was probed by its contributor on Tern 0.4.5, a closed beta that the maintainers cannot run. Rex was probed by its contributor on Rex 0.0.1795019727, the Linux server of an invite-only beta. Herdr is the default and the primary supported backend. Testers wanted: open an issue on AltanS/collie titled
tmux: …,zellij: …,tuios: …,tern: …orrex: …, with your multiplexer, version, OS, and what you saw.
Name the multiplexer on the command line:
COLLIE_MUX=herdr collie start
COLLIE_MUX=herdr-core collie start
COLLIE_MUX=tmux collie start
COLLIE_MUX=zellij collie start
COLLIE_MUX=tuios collie start
COLLIE_MUX=tern collie start
COLLIE_MUX=rex collie startSet the endpoint when the default target is not the one you want:
# in your .env: ~/.config/collie/.env, or Herdr's plugin config dir on a Herdr
# install. See Configure for the full precedence.
COLLIE_MUX=tmux
COLLIE_MUX_ENDPOINT_TMUX=/run/user/1000/collie-tmux.sock
COLLIE_MUX_ENDPOINT_ZELLIJ=collie-zellij
# only if the binary sits somewhere unusual
# COLLIE_TMUX_BIN=/usr/bin/tmux
# COLLIE_ZELLIJ_BIN=/home/you/.local/bin/zellij| variable | value | what it means |
|---|---|---|
COLLIE_MUX |
herdr, herdr-core, rex, tern, tmux, zellij or tuios |
which terminal this install drives |
COLLIE_MUX_ENDPOINT_HERDR_CORE |
/run/user/1000/herdr-core/work.sock |
the core's socket PATH |
COLLIE_MUX_ENDPOINT_HERDR_CORE |
empty | the socket hc would dial: HC_SOCKET, else $XDG_RUNTIME_DIR/herdr-core/<session>.sock, else /run/user/<uid>/herdr-core/<session>.sock when that directory exists, else ${XDG_STATE_HOME:-~/.local/state}/herdr-core/<session>/<session>.sock (macOS); the session is HC_SESSION or default |
COLLIE_MUX_ENDPOINT_TMUX |
/run/user/1000/collie-tmux.sock |
a socket PATH (tmux -S), because it has a / |
COLLIE_MUX_ENDPOINT_TMUX |
work |
a socket NAME (tmux -L work), no / |
COLLIE_MUX_ENDPOINT_TMUX |
empty | tmux's own default server |
COLLIE_MUX_ENDPOINT_ZELLIJ |
collie-zellij |
a session NAME, not a path |
COLLIE_MUX_ENDPOINT_ZELLIJ |
empty | the single running session |
COLLIE_MUX_ENDPOINT_TUIOS |
/run/user/1000/tuios/tuios.sock |
the tuios daemon's socket PATH |
COLLIE_MUX_ENDPOINT_TUIOS |
empty | $XDG_RUNTIME_DIR/tuios/tuios.sock, else /tmp/tuios-<uid>/tuios.sock |
COLLIE_MUX_ENDPOINT_TERN |
/run/user/1000/tern/daemon.sock |
the Tern daemon's socket PATH |
COLLIE_MUX_ENDPOINT_TERN |
empty | $XDG_RUNTIME_DIR/tern/daemon.sock, else /tmp/tern-<uid>/daemon.sock |
COLLIE_TERN_BIN |
/home/you/.local/opt/tern/tern |
only if the tern binary sits somewhere unusual |
COLLIE_MUX_ENDPOINT_REX |
unix:///run/user/1000/rex/server.sock |
a Rex server, as rex -S takes it: an address or a host label |
COLLIE_MUX_ENDPOINT_REX |
empty | the server rex finds by itself |
COLLIE_REX_BIN |
/opt/rex/bin/rex |
only if the rex binary sits somewhere unusual |
COLLIE_TMUX_BIN |
/usr/bin/tmux |
only if tmux sits somewhere unusual |
COLLIE_ZELLIJ_BIN |
/home/you/.local/bin/zellij |
only if zellij sits somewhere unusual |
Herdr has no endpoint variable here: its socket is HERDR_SOCKET_PATH, not a
COLLIE_MUX_ENDPOINT_ name.
That socket is the local one and no other. A machine saved in Herdr is not a crew member, and only
a Collie crew brings another machine's panes to the phone. What each list is, and why one is not
the other, is in Herdr machines and the crew.
collie crew add offers the machines in Herdr's list, and in the core's list, as candidates.
Then restart, install the beacon hooks, and start an agent where the phone can see it:
collie restart # after every .env edit
collie hooks install claude # once per host; tmux, zellij and tern need it, Herdr gets hook edges
# (on Rex it only gives a Claude pane its History)
# open a window or a tab for the agent
tmux -S /run/user/1000/collie-tmux.sock new-window -n claude
zellij --session collie-zellij action new-tab --name claude
claude # in that window or tabCOLLIE_MUX on the command line sets the choice for that run and for every later run. start
writes the name to .env, so running collie start later drives the same multiplexer.
With COLLIE_MUX unset, start probes for Herdr, tmux, and zellij, prompts for a backend, and
writes the answer to .env. It looks for the Herdr core too, but only on a machine without the
Herdr TUI (herdr-core notes). For the full configuration reference, see
MUX_CONTRACT.md → Pointing a collie at a multiplexer.
collie hooks install claude installs Collie's beacon hooks, which
tmux, zellij and Tern require. They expose panes as generic shells, so without hooks every pane appears as
bash. Rex names its agents itself, so there the hooks only give a Claude pane its History.
The command updates ~/.claude/settings.json and leaves project configs untouched
(details below). Claude Code 2.1.301 reloads its
hooks while it runs. Restart an older Claude.
Note. Herdr is not required in this mode. With
COLLIE_MUX=tmuxorCOLLIE_MUX=zellij, the bridge loads only the selected adapter and ignores Herdr's socket. Discovery of several Herdr sessions across Herdr config roots is disabled (bridge/index.ts). You do not need Herdr installed or running, and.envlives in~/.config/collie/instead of the plugin configuration directory.
COLLIE_TMUX_BIN is usually left unset. Collie checks a list of standard paths and does not read
PATH, which background services and Herdr actions do not share with login shells.
Note. Keep socket paths short. Unix domain sockets longer than roughly 100 characters fail to connect, and tmux returns
error connecting to … (File name too long). Use/run/user/<uid>/or/tmprather than a deep directory path.
On tmux versions before 3.7 with window-size set to manual, creating a window crashes the
server. Collie blocks window creation in this state and tells you to run
tmux set -g window-size latest; Requirements lists the tested
versions.
With automatic-rename on, tmux renames a window after whatever program is running in it; Collie
shows the last folder of that window's active pane instead, since a screenful of tabs named bash
says nothing. A window you named yourself keeps that name.
If your distribution lacks zellij packages, download a binary from
zellij's GitHub releases and place it in your
PATH.
Leaving the endpoint empty defaults to the single running session. If zero or multiple sessions exist, Collie halts with an error instead of selecting one. If a named session exits, Collie reports it by name instead of switching to an active one.
Zellij requires XDG_RUNTIME_DIR to locate sessions. If Collie reports all sessions as exited,
verify that the systemd service includes this environment variable
(contract).
Zellij sessions persist independently of their initial terminal. Create a session with
zellij -s collie-zellij and detach using Ctrl o d. On headless hosts,
zellij attach --create-background collie-zellij starts a detached session directly (verified on
zellij 0.44.2).
Note. Collie manages active sessions, but it does not create or restart them.
Zellij has no New worktree. A worktree opens as a new space, and Collie cannot open one on zellij.
Zellij 0.44 and later reports each pane's folder, so zellij panes get the Files button and show their branch. An older zellij reports no folder, and its panes have neither.
Point Collie at Tern:
COLLIE_MUX=tern collie start
collie hooks install claude # beacon hooks for agent detectionCollie reads Tern sessions as spaces, tabs as tabs, and blocks as panes. The endpoint is the Tern daemon's socket, defaulting to $XDG_RUNTIME_DIR/tern/daemon.sock (or /tmp/tern-<uid>/daemon.sock). Inside a Tern pane, $TERN_PANE identifies the block and $TERN_PANE_SOCKET points at the daemon socket.
Tern reports lifecycle events via tern events, enabling immediate topology change notifications.
"Show in terminal" moves your Tern window to the pane's Tern session and tab and focuses its block. A tab or a Tern session that Collie creates opens in the background and does not move your window.
Collie does not detect Tern on its own, as it does not detect tuios: name it with COLLIE_MUX=tern. Typed text longer than 128 KiB is refused, because it travels as one command-line argument.
Rex is Superlogical's terminal server: it keeps your sessions running when you close the app. Collie mirrors it as an experiment.
Experimental. Rex support is new, and Rex itself is in beta. The support may change, or be withdrawn, in a patch release. It is off until you name it with
COLLIE_MUX=rex, and a first run never picks it on its own. Collie was tested on Rex 0.0.1795019727, the Linux server.
Rex names an agent from the status the agent reports about itself:
| Agent | Rex names it | Chat and History |
|---|---|---|
| Claude Code | yes, tested on 2.1.329 | yes, with collie hooks install claude |
| Codex | yes, tested on 0.170.0, once you trust its folder | no |
| pi | yes, tested on 1.3.0 | no |
| Grok | yes, tested on 1.0.89 | no |
| omp | from 18.8.7 on | no |
| opencode | no, 1.19 reports nothing | no |
An agent that Rex does not name shows as a shell. A tested version is the one Collie was checked with, and an older one may work too.
What works: the terminal view, sends, the permission and question cards, the keys, new tabs and new spaces, closing a pane or a tab, and renaming a tab. Collie was developed and tested on a Linux Rex server, at API revisions 18 and 19. The contributor also ran the probe and the write test on a macOS Rex app at API revision 11, and the commit reports that both passed and that the keys arrived as on Linux. macOS reports are welcome.
Before you turn it on. On Linux, rex server install enables systemd's rex.socket, and then
any connection starts the server, Collie's too. Collie looks at the server every few seconds, so
such a server never idles out while Collie runs. To keep it stopped, stop rex.socket and
rex.service together.
COLLIE_MUX=rex collie start
# optional: gives a Claude pane its History
collie hooks install claudeCollie shows each Rex session as a space, each window as a tab, and each block as a pane. A
block that is not a terminal has no screen, and Collie leaves it out. A window that you have not
named shows as unnamed, because Rex gives it a label of its own (Window and the last 8
characters of its id).
The status is what the program in the block reports about itself, and any program can print one.
Rex drops it when the program that printed it exits. Collie does not read a status that the block's
own shell prints, for example with printf at the prompt, so a plain shell never shows as an agent
that needs you. A program that you start from the shell can still claim any status while it runs.
Rex does not know the conversation id, so a pane's History needs the hooks. They name the session
through $REX_BLOCK and $REX_SERVER, which Rex sets in every block.
The endpoint is the Rex server. Leave it empty to use the server that rex finds by itself, or set
anything rex -S takes. Collie asks rex never to start a server: start yours with
rex server start, or rex server install to start it at boot. collie doctor prints the rex
binary it found, the server's address and its API revision, and it warns on a revision that Collie
was not tested with.
Some things work differently on Rex:
- A pane counts as the one your terminal shows only while a Rex app is attached to its session. On a server with no app attached, no pane is focused.
- Rex has no screen client on Linux, so a Linux Rex server never shows a pane as focused.
- Show in terminal is not offered. A Rex focus moves a screen only where a Rex app shows the session, and Collie was never tested with one.
- Pane rename is not offered: Rex gives every block a label of its own choosing, so Collie cannot tell your name from its default. Tab rename works.
- The Keys tray sends only keys that Rex can send as they are. A chord with Cmd or Super, Alt with
a capital letter and
+under a modifier are refused, and so is a symbol that Rex has no key for, such as?. Text you type in the composer is not a key press, and this limit does not touch it. - A read of a pane takes only the end of its output, in two short
rexcalls. Load older can need more rows than that tail holds, and then it reads the whole scrollback, so it is slower on a very long one. Rex keeps about 100,000 lines.
A durable agent that you attach is not a terminal, and it has no screen. Durable agents
covers how to attach one with collie durable attach, the older form that drives a durable agent alone
with COLLIE_MUX=durable, the two ways to reach a durable agent, what it can do on the phone, and what to
check when it shows as unreachable.
tuios reports agents itself, so it needs no beacon hooks:
COLLIE_MUX=tuios collie start
tuios integration install claude-code # once, so tuios hears the agent's hooksCollie reads the agent, its state and its conversation from the tuios daemon. A pane that waits for you shows as blocked, and a pane's history opens when the agent reported its conversation. An agent that Collie has no harness for shows as a shell.
Collie shows each tuios session as a space, each workspace as a tab, and each window as a pane. A workspace shows as a tab while it holds a pane. A pane that runs on another machine is not shown. Point a Collie on that machine at its own tuios.
The endpoint is the daemon's socket. Leave it empty to use the socket that tuios itself uses.
Collie reads XDG_RUNTIME_DIR to find it, so make sure the service has that variable. Inside a
tuios pane, echo $TUIOS_SOCKET prints the path.
Collie needs tuios 0.8.3 or newer: the daemon must announce the workspace-renamed event,
which 0.8.2 does not. With an older daemon, Collie
shows the bridge as disconnected and the log says what to update.
Some things work differently on tuios:
- A new tab opens on the lowest empty workspace. A tuios session has nine workspaces by default, so Collie refuses a tenth tab.
- Show in terminal moves every terminal that shows the pane's tuios session, a tuios-web tab included. tuios cannot move a terminal to another tuios session. If no terminal shows the pane's tuios session, Collie refuses and names the tuios session the terminal shows.
- A New worktree opens as a new tuios session.
herdr-core is the new Herdr core. hc is its command line, and herdr-app is the window that draws
its terminals. The core keeps terminals alive and knows nothing about panes, tabs or spaces.
herdr-app keeps those in a document inside the core, and Collie reads that document to show the same
spaces and tabs. The Herdr TUI (herdr) is another product with another socket, and Collie keeps it
as a separate multiplexer.
COLLIE_MUX=herdr-core collie start
collie hooks install claude # History and Chat for Claude panesWith COLLIE_MUX unset, Collie picks the core on its own only when the core's socket is there and
the Herdr TUI is neither running nor installed. Installed means ~/.config/herdr/config.toml or a
herdr.collie folder under ~/.config/herdr/plugins/config/. The bridge says why in one log line,
also when it does not pick the core, and collie start writes the choice to .env. A machine with
the Herdr TUI keeps herdr, even while the TUI is not running yet. Name herdr-core to say
otherwise. A socket file left by a core that stopped is still picked on a machine without the TUI,
and then reads as unreachable in the log and in collie doctor. collie status shows the
multiplexer and, when nobody named it, why.
The core's machine list (hc machine ls) is a source of candidates for collie crew add, and a
crew member may run the core with no Herdr TUI. See
Herdr machines and the crew.
The core can run several named sessions. Collie drives one of them. It dials the socket that hc
would: HC_SOCKET, else $XDG_RUNTIME_DIR/herdr-core/<session>.sock, else
/run/user/<uid>/herdr-core/<session>.sock when that directory exists, else
${XDG_STATE_HOME:-~/.local/state}/herdr-core/<session>/<session>.sock (macOS). The session is
HC_SESSION or default. Pick another
session with HC_SESSION or COLLIE_MUX_ENDPOINT_HERDR_CORE, then collie restart. collie start
writes COLLIE_MUX, HC_SESSION and HC_SOCKET (when you set them) into the service unit, so a
restart dials the same session. HERDR_SOCKET_PATH is the TUI's and the core ignores it.
What works:
- Panes, with their screens, from the core. The screen is plain text, so the mirror shows no colour.
- Typing, and the keys in the Keys tray. A Super or Command chord, Ctrl+Enter, and a modified key the core has no name for are refused.
- Which agent runs in a pane and what it does. The core takes this from the program's own status
report, so Claude Code reads as
claude. A program that sends no report, such as Oh My Pi (omp), is named from the program that runs in the terminal, and its pane shows no status. - Closing a terminal, and opening a new tab in a space (a new shell that herdr-app shows as a tab).
- Live updates. The core pushes terminal and layout changes, so the phone does not wait for a poll.
- History and Chat for a Claude pane, once
collie hooks install claudeis done. The core does not know the agent's conversation, so the hook supplies it from the terminal'sHC_TERMINAL_ID. The hook never changes the agent name or the status the core reported. A pane that stays quiet for more than twelve hours keeps its Chat and History while the Claude process still runs. Collie drops the session when the process is gone. - History and Chat for a pi or Oh My Pi pane, with no hook. Collie finds the pane's session log from the pane's folder: pi keeps one log folder per working directory, and the newest log whose header names that folder is the pane's.
- Two Oh My Pi or pi panes in one folder, each with its own Chat. Without help, Collie cannot tell
their logs apart, so both show the empty card. The extension labels its terminal with the path of
its session file (
omp.session_fileorpi.session_file), and Collie opens that file for that pane. Copyomp-extension/collie-session-label.tsinto~/.omp/agent/extensions/(seeomp-extension/README.md) orpi-extension/collie-session-label.tsinto~/.pi/agent/extensions/(seepi-extension/README.md), and copy it again after each Collie upgrade. Check the label withhc get <terminal> --json, fieldlabels. A wrong label can only point at one of your own sessions in that same folder.
What looks different on the core:
- The mirror has no colour. The core hands out the screen as plain text. The phone shows the words and the layout of the screen, and none of the agent's colours.
- Claude's History needs a hook. The core does not know the agent's conversation. A Claude pane has
History and Chat once
collie hooks install claudeis done. pi and Oh My Pi need no hook, because Collie finds their log from the pane's folder. A fresh pi or Oh My Pi pane shows an empty Chat until the agent's first reply, because pi writes its log only then. An older log in the same folder is not shown for a pane whose program started after it, andpi --resumekeeps its Chat. - Text and submit stay separate. Collie checks the input box before submitting. Multiline insertion and Oh My Pi's follow-up key use direct input, without the core's named-key quiet wait.
- The last viewer sets the width. The terminal has the width of the last window that looked at it. herdr-app on a phone makes Claude narrow, and the phone then shows it narrow too. When no window looks at the terminal, it goes back to 200 columns.
- Some dialogs cannot be answered from the phone yet. A dialog of pi, opencode or Oh My Pi that marks the chosen row by colour alone shows no tappable options on the core, because the core sends no colour. The card offers Escape, and you answer on the screen. This waits for a colour option in the core, asked for in herdr-core issue 68. Claude and Codex dialogs are read from their words and work. So does pi's question, when the core answers the read.
- The mirror shows the screen; older lines come when you ask. The core holds a terminal's keys while it reads older lines, and under a dialog one such read takes about 25 seconds. So the phone's mirror reads the screen alone, and Load older at the top of the mirror reads the lines above it, once per tap. While the agent waits on you, Load older waits too, and says so. If the agent's transcript cannot be found, Load older remains available for any terminal rows the core retained; it does not reconstruct output the terminal no longer holds.
What the core cannot do:
- Rename a terminal, a tab or a space. The names belong to herdr-app. A new space is named after its folder.
- Focus a terminal, so "Show in terminal" is missing. herdr-app keeps focus on its own screen.
- Show colour. The core hands out the screen as text only.
- Show History for a Claude pane before its hook is installed, or for an agent other than Claude, pi and Oh My Pi.
- Show a terminal on another machine. Terminals of machines added to the core (
box/t7) are not shown. Add that machine to your crew and its own Collie shows them. - List sessions.
collie doctor has two rows for it. hc-socket dials the socket and shows the core's version and how
many terminals it keeps. hc-version shows hc --version. Troubleshooting
lists the fixes.
herdr-app can show a small Collie panel: the bridge's state, the phone URL, and a button to pair a phone. Collie never installs it. Copy the folder into herdr-app's mods folder by hand:
git clone --depth 1 https://github.com/AltanS/collie /tmp/collie-mod
cp -r /tmp/collie-mod/herdr-app-mod/collie ~/.config/herdr-app/mods/collie
herdr-app check ~/.config/herdr-app/mods/collieExperimental. The panel passes
herdr-app check, but it has not run in a live herdr-app window yet. It needs Collie 1.25.0 or newer on your PATH and herdr-app 0.1.7 or newer.
The panel shows whether the bridge runs, its version, mode, port and service, the phone URL and how
many devices are paired. Its buttons run collie start, stop, restart and push-test. Pair a
phone shows a single-use code and its QR code, and writes the code nowhere. On a machine with two
Collies, give the panel's block the prop { "instance": "hc" } in your layout to watch the named
instance. To remove the panel, delete ~/.config/herdr-app/mods/collie. The
mod's README lists every program it runs.
One Collie drives one multiplexer. To mirror the Herdr TUI and the Herdr core on one machine, run
two Collie instances and join them in one crew. Here the default instance drives the Herdr TUI and
becomes the lead. A second instance, hc, drives the core.
-
Make the config folder for the instance
hc.mkdir -p ~/.config/herdr/plugins/config/herdr.collie-hc -
Write its
.envwith its own name, port, state folder and multiplexer.# ~/.config/herdr/plugins/config/herdr.collie-hc/.env COLLIE_INSTANCE=hc COLLIE_PORT=8794 COLLIE_STATE_DIR=/home/you/.local/state/collie-hc COLLIE_MUX=herdr-core # the lead's URL serves this instance, so it needs no front door of its own COLLIE_SKIP_SERVE=1
-
Start the instance.
COLLIE_INSTANCE=hc collie start
-
On the default instance, make an invite.
collie crew invite
-
Join the crew from the instance
hc, with its own port as the address, and paste the token.COLLIE_INSTANCE=hc collie crew join https://lead.tail1234.ts.net \ --address 127.0.0.1:8794
-
Restart the lead, so it links to the new member.
collie restart
-
Install the Claude hooks once, for History and Chat in the core's Claude panes.
collie hooks install claude
In step 5, use the lead address that invite prints. The instance hc joins as <hostname>-hc,
for example bluefin-hc. Pass --label to pick another name. The phone pairs with the lead and shows the panes of both instances under one URL.
Every verb for the second instance needs COLLIE_INSTANCE=hc in front of it. A hook reaches every
running bridge on the machine, so one hook install serves both. collie mux list shows which
instance drives which multiplexer.
The phone draws the two instances as one machine, with a line for each instance. A pane's chip
reads <host> · <mux>, for example bluefin · herdr-core. A machine can run several
Collies explains the machine card and its health, and
Multiple Collie instances on one host has
the service unit and the refusal rules.
collie mux list # a table; add --json for a programOne row for every multiplexer this build can drive, found or not. PRESENT says whether it is on
this machine (yes, not answering is a socket that exists with nothing behind it). DRIVEN BY
names the Collie instance and port that drives it, read from the running bridges without dialling
them. HINT is the command that starts a Collie on a multiplexer that is here and that nobody
drives. The command only reads: it starts and writes nothing.
MUX PRESENT DRIVEN BY HINT
herdr yes next (8788)
herdr-core yes hc (8794)
rex no -
tern no -
tmux yes tmux (8789)
tuios no -
zellij yes - COLLIE_INSTANCE=<name> COLLIE_PORT=<port> COLLIE_MUX=zellij collie start
durable a program, not a terminal -
durable is a program and not a terminal, so nothing looks for it. A bridge from a build before
this command does not say which multiplexer it drives; it is listed under the table with ?.
--json prints { "rows": [...], "unplaced": [...] }. Each row has mux, kind, present,
answering, where, version, drivenBy (a list of { instance, port, pid }), drivenByText
and hint.
collie doctor # the `mux` check names the multiplexer, its endpoint,
# and whether it answered (durable: the six `durable-*` checks)
# `[bridge] mux: tmux · socket /run/user/1000/collie-tmux.sock`, printed at
# startup; a multiplexer it cannot reach is one warning line more
collie logs
# the herd, as the phone is given it; reads need the pairing token
curl -s -H "Authorization: Bearer $COLLIE_TOKEN" http://127.0.0.1:8787/api/snapshot | head -c 400Every read needs a paired device's token, so this curl call sends one. Without it, the bridge
answers 403 device not paired. To get a token for a script, see
Upgrading to 1.18.0. collie doctor needs no token on the host.
COLLIE_DEVICE_HEADER still gates only writes and the Files view
(Pair a device).
Check the phone UI: the dashboard should display your tmux windows or zellij tabs, and the
Claude pane should identify as an agent instead of bash. If panes still display as standard
shells, verify the beacon hook installation below.
$ collie hooks install claude
$ collie hooks status
would install: /home/you/collie/bin/collie beacon emit (this checkout)
/home/you/.claude/settings.json: installed (v1)Because tmux, zellij and Tern expose panes as generic shells, agents must announce themselves. This
requires installing Collie's beacon hooks into Claude Code's
configuration. On Herdr, the same hooks give hook edges only. The file is
$CLAUDE_CONFIG_DIR/settings.json when that variable is set to an absolute path, and
~/.claude/settings.json otherwise, which is where Claude Code reads it.
The bridge reads the variable from its own environment, so a service unit needs an
Environment=CLAUDE_CONFIG_DIR=... line (or COLLIE_TRANSCRIPT_ROOT) when your login shell sets it.
The output references the bin/collie path from this repository. Package installs use the installed
binary path (~/.local/bin/collie or ~/.local/share/collie/current/bin/collie) rather than
versioned directories, ensuring links remain valid across updates.
Behavior details for Claude configuration changes:
- Modifies the global
~/.claude/settings.jsonand any activeCLAUDE_CONFIG_DIR. Project-level.claude/settings.jsonfiles are untouched. - Injects seven hook entries tagged
# collie-beacon v1. Five runcollie beacon emit, one each onSessionStart,UserPromptSubmit,Stop,SessionEndandNotification, with 10-second timeouts. Two runcollie beacon asks, one beside the emitter onUserPromptSubmitand one onSessionStart, with 3-second timeouts. That entry hands the agent the asks that wait for it, as context next to your prompt. It prints nothing while Asks is off or no ask is open (see How an agent is reminded). Existing hooks are preserved.hooks uninstall clauderemoves only Collie entries. - Wraps your statusLine, if you have one. The install points
statusLine.commandatcollie beacon statusline …, which reads what Claude Code hands it and then runs your own command with the same input. Your status line prints exactly what it printed before and exits the same way; each run takes about 0.13 s longer, for Collie to start. Other keys ofstatusLine(padding,refreshInterval) stay.--no-statuslinekeeps a plain statusLine as it is and gives a wrapped one its own command back;hooks uninstall claudedoes the same and removes the hooks. A second install changes nothing. A statusLine with its ownshellorargs, and a settings file that is not plain JSON (comments included), are left alone. Collie never adds a statusLine: with one configured, Claude Code hides most of its footer hints,esc to interruptamong them. Not on Windows. - The context figure beside the model. The statusLine is the only place Claude Code states the
size of a session's context window, and the same model can have a different window on another
account or setup. With the wrap, the figure is Claude Code's own percent, and between two statusLine
runs the hooks read the token count from the end of the session transcript and divide it by that
stated size. Without the wrap (no statusLine,
--no-statusline, or Windows) the figure is the token count itself,ctx 222k, never a guessed percent; with Context and limits on Dots there is no context dot then.collie updatedoes not change your settings;collie doctorsays in itsstatusline-clauderow when a statusLine could be wrapped and is not. - The limits the agent reports show on their own. Usually that is the 5-hour and 7-day windows, and a weekly window for one model when the plan has it. They need no hook and no statusLine. While a
Claude pane is open, the bridge reads your Claude login on this machine
(
~/.claude/.credentials.json, or$CLAUDE_CONFIG_DIR/.credentials.json; the Keychain on a Mac with no file) and asksapi.anthropic.com/api/oauth/usage, the same call Claude Code's/usagemakes. It asks when the pane appears, after a turn ends and every five minutes, and never more than once in five minutes per agent. It stores nothing of the login, never refreshes it and sends it nowhere else. It skips a login file that others may read (anything looser than0600) and a login that has expired, and Claude Code refreshes that one at its next call. An API-key, Bedrock or Vertex session has no windows to show. Codex panes get theirs the same way, on the same schedule, from its own session files with no login read. OpenCode Go and Grok are off until you name them, withCOLLIE_ACCOUNT_WINDOWS=allor a list (see Usage windows).COLLIE_ACCOUNT_WINDOWS=0(or[bridge] account_windows = false) turns all of it off, andcollie doctorsays which in itsaccount-windowsrow. - The wrap is also the second road for the windows. The limits the agent reports come from
what Claude Code hands the wrapper too. Take that road instead of the login read with
COLLIE_ACCOUNT_WINDOWS=0. - To change a wrapped statusLine, unwrap it first. Run
collie hooks uninstall claude, editstatusLine.command, then runcollie hooks install claudeagain. The wrapped command names the collie binary by its path, so if that binary moves, the statusLine prints nothing until you run the install again.collie updatereminds you when a wrapped statusLine points at an older binary. To try the wrapper by hand, run it outside the multiplexer (env -u HERDR_PANE_ID -u TMUX_PANE -u ZELLIJ_PANE_ID …), or it writes a reading into every running bridge. - Claude Code reloads its hooks while it runs. This holds for 2.1.301. Restart an older Claude if no hook edges come.
- Linux only. The agent liveness check depends on
/proc. Other operating systems do not emit beacons. - Beacons are multiplexer-specific. They record pane and session identifiers for the active
backend. Switching
COLLIE_MUXinvalidates existing beacons. Old beacons remain on disk until cleared, visible undercollie doctor'sbeaconscount. - If using
COLLIE_STATE_DIR, export it in the agent's shell environment.collie beacon emitreads this variable directly; otherwise, beacons write to the default state directory where the bridge will not find them.
collie doctor includes a beacon-hooks-claude diagnostic check that points out missing hooks or
broken paths to moved checkouts. For runtime details, see
Agent beacons.
The table below summarizes key differences. Refer to MUX_CONTRACT.md for the
exact specification.
| Herdr | tmux | zellij | Rex (experimental) | |
|---|---|---|---|---|
| a space is | a workspace | a session | the session, exactly one, so the phone drops the space strip | a session |
| a tab is | a tab | a window | a tab | a window |
| a pane is | a pane | a pane | a terminal pane | a block that is a terminal |
| who says a pane holds an agent | Herdr does, itself | a beacon, or nothing | a beacon, or nothing | Rex does, from the status the agent reports |
| how soon an unannounced change is seen | pushed | pushed | counted on a schedule, 12 s ceiling | pushed |
| "Show in terminal" | yes | yes | no, zellij accepts the request and moves nothing | no, a screen follows only where a Rex app shows the session |
| open / rename / close a tab | yes | yes (opening is refused on the tmux crash case above) | yes | yes |
| open a space | yes | yes | no, a session it made would be invisible to it | yes |
| a New worktree | yes, with git | yes, with git | no, it cannot open a space | yes, with git |
| pane history | from Herdr's own pane record | from the beacon's session key | from the beacon's session key | from the beacon's session key (Claude Code only) |
Without active beacons, tmux, zellij and Tern present panes as raw shells, and pane history is marked unavailable rather than returning empty content.
- "synced Ns ago": This indicator appears in the dashboard header to show data age. It is displayed only when the backend relies on scheduled polling, such as zellij (up to 12s polling interval). Herdr and tmux push state changes immediately, so the freshness badge is omitted.
- "Show in terminal": This pane action focuses the selected pane in your active host terminal. It is disabled on zellij because zellij's focus command accepts the instruction without changing view state. It is not offered on Rex either, because a Rex focus moves a screen only where a Rex app shows the session.
Note. The mobile interface never changes host terminal focus automatically. Only the explicit "Show in terminal" action updates the display. Navigating the dashboard or opening panes does not affect the active host cursor (ADR 0031).
claude --resume # reconnects the conversation, not the windowCollie does not store multiplexer state. Restarting a tmux server destroys its windows, leaving the dashboard empty. Standard tmux plugins restore the window layouts and working directories: tpm for plugin management, tmux-resurrect for saving session trees, and tmux-continuum for automated snapshots.
Note. Running agent processes are not preserved. Restart Claude Code manually after recovery.
zellij -s collie-zellij # start the session
zellij attach --create-background collie-zellij # headless: start it detached
claude --resume # reconnects the agentZellij does not provide an equivalent to tmux-resurrect. Sessions persisted after terminal
detachment show as (EXITED - attach to resurrect), and attaching triggers re-execution of session
commands, so a reboot means starting the session fresh with one of the commands above and launching
agents inside it, reconnecting each with claude --resume or claude --continue.
Note. Because attaching produces side effects, Collie does not attach to or resurrect sessions. Exited sessions appear as unreachable, and the UI displays a disconnection banner instead of an empty session list.
A beacon is how an agent identifies itself to Collie, on tmux, zellij and Tern, where a pane otherwise appears as a generic shell.
$ collie hooks install claude
$ collie hooks status
would install: /home/you/collie/bin/collie beacon emit (this checkout)
/home/you/.claude/settings.json: installed (v1)A hook in Claude Code settings runs collie beacon emit, which writes a file containing the harness
name, the session, and the target pane. Herdr tracks this natively. Setup details are in
Pointing Collie at a multiplexer; this section
explains the mechanism.
The path above references bin/collie from the local checkout. A binary install points to
~/.local/bin/collie, or to ~/.local/share/collie/current/bin/collie when that name is not
linked, as described above. The status command
performs no writes.
Running hooks uninstall claude removes only entries added by Collie. It modifies your global
Claude configuration, not project-level files. This is Linux-only: the liveness check inspects
/proc, and Collie writes no beacons on other operating systems.
Claude becomes visible immediately on startup. Because the hook triggers on SessionStart, an open
pane waiting for input displays as an idle agent instead of a shell.
Visibility ends when the process exits. Collie verifies the emitting PID on each check, so once the agent terminates, the pane immediately reports as a standard shell instead of lingering in an unknown state.
Collie does not delete the beacon file to do this: the file remains on disk, collie doctor reports
it under beacons as expired, and the next hook invocation overwrites it.
This allows the dashboard to label panes by agent name rather than bash. It lets "needs you"
sort panes by blocked status, and provides the state required for alerts. Pane history also relies
on the beacon to supply the session key used by the journal.
The same hooks also write a hook edge for each event. A hook edge is a short note about one pane. Examples are "a prompt went in", "the turn stopped" and "a permission dialog is up". Collie uses hook edges on every multiplexer, Herdr too. Herdr names its agents on its own. On Herdr the hooks therefore write hook edges only, and no beacon.
A hook edge never decides on its own that a pane is free. After each edge, Collie reads the screen again about 0.7 seconds later. Only the screen can say that the input box is empty and no dialog is up. An edge can say that a turn runs or that a dialog is up. Collie then holds the pane as busy until the closing edge comes. Three free screen reads over ten seconds also end the hold. A tool edge from a subagent is not about the pane, so it never changes what Collie reads there.
A send from the phone can show as Confirmed. That happens when a prompt edge carries the same text soon after the send. The window is 30 seconds, or ten minutes for a send queued behind a turn. The edge carries a salted hash of the prompt, never the text itself. A send that ended "cannot tell if this was sent" waits in the same window for that edge: when it comes with the same text, the send shows as Confirmed. Until then the receipt says how long it waits. A send that goes through the plugin waits the same way. When the agent changed the text (a folded paste, an image path, several queued messages taken as one), no edge matches, and the send stays "cannot tell" after the window.
Claude Code and Codex take a message or a command during a turn. Collie types it at once, and the
harness runs it after the turn. A harness that cannot take a send during its turn gets a held send
instead. So does a message that finds the input box not free, for example under a popup, or on a
screen that changes between Collie's two reads, or a probe character that failed and that one
Backspace took back out of a box Collie read clean again. Such a message goes after five free polls over ten
seconds, or after a turn Collie sees. A command there is still refused, and so is a send on a
screen you confirmed with Send anyway. A send on a pane with no profile is never held. Collie keeps the text and shows a card that floats over the bottom of the terminal view: "Queued.
Sends when the turn ends." On an agent whose version Collie could not read, the card says so and
points to collie doctor: Collie types into a running turn only on a version the agent reported. The card shows the text and a Cancel button. Collie sends it after the turn ends, once the
pane reads free on two polls in a row, oldest first. Each later held send waits for the turn that
the send before it started. If no turn shows, it goes after five free polls over ten seconds. A held
command on pi, OMP or Codex sends Enter, and there Enter steers a turn. Such a command waits until
the turn has ended, and so does any held command on an agent whose version Collie could not read: two
free polls at least two seconds apart, or five over ten seconds if Collie saw no turn at all. OMP
runs /goal at once during a turn, so Collie sends /goal, /goal pause or /goal resume right
away with Enter. It never holds them, and they do not wait behind other held sends. A
later message on that pane waits behind the held ones. A held text lasts 30 minutes, a held command
10 minutes. After that the row says the message was not sent, and offers Resend. A WalkyTalky
message is also held over a draft, never typed into it, and its hold lasts 60 minutes
(WalkyTalky). Your own send over a draft is still refused, with Add to it and Replace. Add to it and Replace act only on the draft the refusal showed: when the box holds another draft at your tap, nothing is typed or deleted, and the offer shows again over that draft. When the box is empty by then, your text goes out alone. Before Collie refuses, adds to or clears a draft, it types one probe character and removes it, to prove that the box takes keys; when the box on the screen does not take keys, the send is refused and nothing is deleted. Focus that pane on the desktop or resize it, so the agent draws its screen again, then send again. A busy agent can also show typed keys seconds late, for example Claude Code with a subagent running under its agents footer. Collie waits about 3 seconds for the probe character when the agent is not in a turn, and the send goes on when it shows. When it shows later than that, the first send is refused because the probe character did not show, and Collie's characters (⌁) show in the box a little later. When the box holds only those characters and its probe is late again, the refusal says so: wait a moment and send again, and Collie takes them out first. A pane Collie reads at fewer rows than the box takes (a tab full of splits squeezes each pane) is refused with the rows read and the rows the box needs: zoom or resize it, or close the panes beside it. Some commands never
wait, and Collie refuses them during a turn. On Claude Code these are /clear, /exit, /quit,
/logout, /resume, /branch and every ! line. On Codex these are /quit, /exit, /new,
/resume, /logout and every ! line. On Hermes these are /exit, /quit, /clear, /new,
/resume and every ! line. A held send survives a restart of Collie. Cancel works
until the send starts to go out, and only on this machine's own panes. With two or more held sends the
card shows a count and the first text, and Show all lists each send with its own Cancel. Collie keeps the held text on
disk in plain form, in a file only your user can read (mode 0600). It deletes the text when the send
goes out, and at most one hour after the hold ends.
Collie places each edge on one pane. The edge names the agent's process and its pane
(HERDR_PANE_ID, TMUX_PANE or ZELLIJ_PANE_ID). Collie drops an edge that names no pane, two
panes, or a process that is gone. The bridge log then shows a surface.edge.dropped line. It shows at
most one line per reason and process each minute. An edge older than 30 seconds, or a file that is
not an edge, is counted but never logged. An edge from a pane of another multiplexer on the same
machine, for example a Herdr TUI pane seen by a bridge that drives the Herdr core, is counted as
foreign-mux and not logged.
When Collie cannot send your message as it stands, the card and the notice under the box both offer Send anyway. The word does not say whether Enter goes: what happened is in the answer after your tap. This works on every screen except four: a sign-in field (enter the code again there), a question or permission Collie read (answer it on its own card), a screen that changed since you looked, and a screen that shows a menu or a yes/no prompt. A screen that changed comes back with the rows as they are now; look at them and tap again. On a menu, use the keys to pick an option, because typed text could pick one.
Where Collie can still place and check your text, on a screen that takes the manual Send, your second tap sends it, Enter included: you tapped twice with the screen in view. If only a number on the screen changed since you looked, Collie types your text but presses no key, so you check it first. Where it cannot, on a box that is not free, a box that already holds a draft, a turn it cannot read or does not queue into, or a stale or torn read, Collie pastes your text into the box in one piece and presses no key at all. A menu on the screen stops both. The card then says your text is in the box, and offers the keys: check the screen, and press Enter there when it is right. When the box already held a draft, the card can say so: your text went in after it. A message of more than one line goes this way only on Herdr, which pastes it whole; elsewhere send it one line at a time. On a turn the agent queues into, it goes in as any send does. Collie never holds a message you typed this way, and one tap types it at most once. When the box already holds the same text, left there by an earlier send, Collie types nothing again: press Enter on the Keys pad.
On an agent Collie has no profile for, no message goes into a screen that shows a menu or a yes/no
prompt at its bottom, whether you sent it or Collie did; answer the menu with the keys. On Herdr and
the Herdr core, Collie also asks which program runs in the pane: a plain shell at its prompt takes every
message, also with a numbered list or an answered [Y/n] above the prompt. On tmux, zellij, tuios and
Tern Collie cannot ask, so it reads only the bottom of the screen: output above a shell prompt is no menu.
A held send that waits two minutes or longer is marked as waiting long, so the phone can show the screen with a way to send it now or cancel it.
Each bridge that takes hook edges lists itself in ~/.local/state/collie/hook-targets/ at boot.
With XDG_STATE_HOME set, the folder is $XDG_STATE_HOME/collie/hook-targets/. A bridge removes its
file when it stops cleanly. A running bridge writes its file again within two seconds when it goes
missing. The hook writes each edge into every listed bridge whose process still runs. It deletes the
file of a bridge that is gone. With no bridge listed, the hook writes into the
default state dir. A COLLIE_STATE_DIR in the agent's own environment always gets the edges too.
The session beacon, which names the pane's session for the History link, goes to the same bridges.
The pane info on the phone shows whether a pane sends hook edges:
- Hooks: live means the agent in that pane sends hook edges.
- Hooks: live, holds permissions means the agent's hooks also hold permissions for the phone. See Permissions held for the phone.
- Hooks: none means Collie has no hook edge from that pane. The hooks are not installed, or the agent has not sent an event since the install. Claude Code 2.1.301 picks up new hooks while it runs. Restart an older Claude.
A bridge keeps the live panes across its own restart. The row stays "live" after a bridge restart.
An installation from an earlier Collie sends no edge for a permission dialog. collie hooks status shows it as partial. Run collie hooks install claude again to update it in place.
$ collie hooks install claude --hold-permissionsThis adds one more hook, on Claude's PermissionRequest. When Claude asks for a permission, the
hook holds the request and waits for your tap. The phone shows the request as a card. A tap on
Yes or No goes back to Claude through the hook. Collie sends no key to the pane for it.
The install needs Claude Code 2.0.45 or later, the first version with this hook. It refuses an
older one.
- The hook finds each running bridge the way hook edges do. It reads
hook-targets/and holds with every live bridge. The first answer wins. The other phones then say "Another Collie answered". - The desk still works. Answer the dialog in the terminal, and the phone card says "The desk answered first". Collie does not use a tap after that.
- Only Yes and No go through the hook. An option such as "don't ask again" stays a screen answer. Collie refuses that tap on a held card.
- A held request has a time limit of 290 seconds. After it, the dialog stays on the screen and becomes an ordinary card with a new id. An old tap never turns into keys.
- No bridge, no hold. With no bridge listening, or on any error, the hook prints nothing. Claude then shows its own dialog as before. The hook never answers on its own.
- The card shows the input shown. That is the command, the file path or another key input. It adds the risky Bash flags, and the whole text a write puts in a file. Collie drops characters that hide or turn text. The input shown has a limit of 1000 characters, the written text included. Collie never holds a longer request: the card cannot show it all, so the dialog on the screen answers it. When the input has more lines than the box shows, the card says so.
- A held request owns only the dialog that shows that very request. The dialog's header must name the request's tool. It must say "from the ... agent" exactly when a subagent asks, and name the same type of subagent. Every line of the input must show on the dialog, in order. When two held requests fit one dialog, none owns it. Any other dialog keeps its own card on the phone. The request then waits on its hold card, and only a tap from that card answers it. The card does not take a tap in the first 400 ms after a new request shows. If you answer that other dialog with the keys and Claude then ends the hook, the hold card says that the keys answered it.
- A subagent's request shows no dialog while the hook holds it. This holds for Claude Code 2.1.301. The hold card is then the only way to see it, so it shows the tool and the input shown.
- A background request waits up to the hold limit, even with no phone watching. Then Collie lets the hook go, and Claude shows the dialog on the screen. Claude 2.1.301 does not deny it.
- Questions and plans stay screen cards.
AskUserQuestionandExitPlanModeare never held. - A linked Claude Code answers through its plugin. After
collie harness link claude, the plugin holds the request once it has told the bridge about it, and the hook then lets go of that one dialog. Until then the hook holds it, as above. One card shows either way. See Send by data.
The socket is <stateDir>/hold/sock. Its folder is mode 0700 and the socket is mode 0600, so
another user cannot connect. Before it connects, the hook checks that the socket, its folder and the
state dir are yours. It also checks that nobody else can write to the two folders. The bridge
takes a request only from a process it places on a pane. It drops every other request with one
surface.hold.dropped line. The hook and the settings carry no token. Each card carries a hash of
the tool, the input shown and the labels. A tap with another hash lets the hook go with no answer.
The pane info says "holds permissions" when the settings Claude reads hold the hook. Collie reads
the user settings, the two project settings files and the managed settings. disableAllHooks turns
the hold off, and so does allowManagedHooksOnly in the managed file.
Run collie hooks install claude without the flag to take the hold out again. collie doctor
says in how many settings files the hooks hold permissions.
Note. Beacons and hook edges provide no control channel. They only change what Collie displays and when it reads a pane. They cannot send text, inject keystrokes, rename panes, close sessions, or bypass access controls. The threat model and omitted fields are documented in ADR 0024.
The permission hold is the one control channel. A tap on the phone becomes Claude's answer to one permission. Four things guard it. The socket is yours alone (mode 0600 in a 0700 folder), and the hook checks this before it connects. The bridge answers only a process it places on a pane. The tap must carry the hash of the tool, the input shown and the labels the card showed. The answer is only ever a person's tap: Collie never allows or denies on its own.
A linked Claude Code (
collie harness link claude, Collie 1.29.0 or later) adds a second control channel, under the same guards: its socket is yours alone, the bridge answers only a session it places on a pane, and an answer is only ever a person's tap. It carries plain messages, WalkyTalky messages and permission answers, and reads the text in the box, nothing else (ADR 0140).
Codex has one outside hook, its notify command. Collie can use it for a hook edge when a Codex turn
ends:
$ collie hooks install codex
$ collie hooks status
/home/you/.codex/config.toml: installedThe install writes one line at the top of $CODEX_HOME/config.toml (~/.codex/config.toml when
CODEX_HOME is not set). The line goes after the comments at the top of the file:
notify = ["/home/you/.local/bin/collie", "beacon", "emit", "codex"]Codex runs one notify command only. If your config already names one, Collie leaves it in place and
the install stops with a message. If Collie cannot read the file as TOML, the install stops and
names the line. Collie keeps a copy of the file before its first change.
collie hooks uninstall codex puts back the exact bytes from before the install. If the install
created the file, uninstall removes it. A Codex that is already open may not see the new line until
it starts again.
Codex sends one event, agent-turn-complete, at the end of each turn. Collie writes it as a stop
edge, and the screen read after it decides whether the pane is free. The limits:
- Codex sends no event for an approval dialog or for a new prompt. The screen alone shows a dialog, and a send from the phone never shows as Confirmed on a Codex pane.
- Codex 0.163.0 runs the notify command from a background helper (
codex app-server). Collie finds the Codex window in/procwith the sameCODEX_HOMEand the folder of the event. This is Linux only. - Two Codex windows in one folder on one
CODEX_HOMEget no edge. Collie cannot tell them apart. Their panes still update from the screen, as without the hook. - Codex also runs a short hidden turn to name a new task. That turn sends one more stop edge, so the pane gets one more screen read.
Collie presses Tab for a Codex message. During a turn, Codex queues it. In Codex, Tab sends a
message on an idle box and queues it during a turn. So Tab is right in both states. Enter steers a
running turn, so Collie never presses Enter for a message. A text that starts with / or ! is a command.
It takes Enter on an idle box, because Tab would complete a / command there. During a turn it
takes Tab, and Codex queues it like a message. Codex runs a ! text as a shell command. The receipt
says queued only when Codex shows the queued row with the text.
Collie answers a Codex approval with one key: the option's digit, y, or Escape. Only the trust
prompt of Codex 0.156 walks. There Collie presses the arrow keys, reads the pointer back, then
presses Enter. A Codex question dialog also takes one key, the option's digit. In Codex 0.163.0 the
digit answers at once. On the last question it sends all the answers.
Collie checks the input box of an agent before it sends a message from the phone. A profile file describes that box for one agent. It says where the box starts and ends. It says how a draft looks, which key sends, and which text the agent draws for a long paste. A plain shell and an agent with no profile still take sends. Collie cannot read their input box, so it types the text and presses Enter without a check, one line at a time. A password prompt on the last rows stops it: Collie types nothing there, and the phone offers Type. So do last rows that look like a live agent's: an input box, a dialog's choices, or a footer row that an agent's profile names as the last row. Collie then cannot tell which agent runs there, so it types nothing either. An agent that exited leaves its last screen behind with a shell prompt under it; that pane is a shell again, and the send goes through.
| Agent | Enter during a turn | Send key | Probe | Checked against |
|---|---|---|---|---|
| OpenCode | Queues the message | Enter | Yes | 1.18.33 |
| pi | Steers the turn; Alt+Enter queues | Alt+Enter, Ctrl+Q on Windows and in WSL | Short texts and sends into a turn | 1.1.0; screens of 1.4.0 |
| OMP | Steers the turn; Ctrl+Q queues | Ctrl+Q | Yes | 18.4.10 |
| Grok | Not measured | Enter | Yes | 1.0.41 |
Antigravity (agy) |
Not measured | Enter | Yes | Screens of 1.4.8, one of 1.4.12 |
| Muse | Not measured | Enter | Yes | 1.4.7 |
| Hermes (classic CLI) | Interrupts the turn by default; Hermes's /busy can make it queue or steer |
Enter | Yes | 0.22.2, screens of 0.22.5 |
Cursor CLI (cursor-agent) |
Queues the message | Enter | Yes | 2026.10.16 |
Kiro (kiro-cli) |
Steers the turn; Collie holds a send until the turn ends | Enter | Short texts | 2.32.0 |
A command, such as /model, always goes with Enter. A probed send types one extra character first.
Collie checks that the character lands in the box, then removes it.
-
OpenCode draws its box as a column of
┃rows, closed by a╹▀▀▀line. Collie finds the box by those rows. A message sent into a running turn waits in the transcript with aQUEUEDbadge. A newline goes in as Ctrl+J. Collie refuses a message that is longer than the box can show, because it cannot read it back. -
pi draws its box between two rules with no prompt mark. Collie finds it by the rule pair and by the status line that pi draws under it. A pi dialog opens between the same two rules. So Collie reads the key hints and the list from the top rule down. In pi, Enter steers a running turn, but Alt+Enter sends on an idle box and queues in a turn. So Collie sends with Alt+Enter, and with Ctrl+Q on Windows. In WSL, pi takes Ctrl+Q only when
WSL_DISTRO_NAMEorWSL_INTEROPis set in its own environment. Under Herdr and the Herdr core, Collie reads the pi process's environment and sends the same key; elsewhere it sends Ctrl+Q in WSL. pi shows a queued message as aFollow-up:row above the box. A box taller than 30 rows does not read as a box. The screen reads as unknown, and a send needs your tap. Gentle Shell 4.5.1, which bundles pi 1.4.0, draws a float editor instead: a left rail of▎rows under a✿ waiting for inputline. Collie reads that box too. In its NORMAL or SELECT mode it does not read as a box, and a send needs your tap. -
OMP lets you choose the border style of its box, so Collie knows five of them. One is the open box with a status row on top. Others are a rule pair, a rule with no bottom rule, a pair with an empty middle, and a borderless box. Collie cuts the hint that OMP draws at the right end of the prompt row. In OMP, Enter steers a running turn, but Ctrl+Q sends on an idle box and queues in a turn. So Collie sends with Ctrl+Q. OMP lists a queued message in an
After yieldblock above the box. OMP can show a dim completion after your text. A send that meets one stops before the send key and leaves the text in the box. In the open box, OMP shows at most 17 rows of a long message, the last ones. Collie then checks those rows against the end of what it typed, and the receipt says so. Replace refuses a draft that fills those 17 rows, because Collie cannot see its start. Nothing is deleted. -
Grok draws a rounded box with a
❯prompt row and a row of key hints under it. A tall draft shows a scroll bar at the right edge of the box. Such a screen reads as unreadable, so a send needs your tap. A model list opens above the box and counts as part of the box. The pane never reads free while the list stands. -
Antigravity (
agy) draws its box as a rule, a>row and a rule, with a? for shortcutsfooter. The turn shows a spinner row with...above the box andesc to cancelunder it. A running sub-agent shows in a band between two rules under the box. Collie steps over that band, as it does over the band of background tasks, so the pane reads as idle and takes a send. A row in that band that Collie does not know still blocks the send. While a sub-agent runs, a send with a draft already in the box can still be refused. An empty box sends. Herdr names this agentagyorantigravity. Collie files both underagy. The/model,/effort,/usage,/context,/artifactandKeyboard:panels of 1.4.x show as cards. Chat finds the conversation through the presence lock the agy process holds, which Collie askslsoffor. So Chat for agy needslsof, and does not work on Windows (configure). -
Muse draws its box as a rule that may carry a label, a
❯row and a rule. An empty box shows a grey hint, and Collie reads that hint as no text. A command palette that opens under the box shows as your draft. The list of background tasks under the box reads as unknown, and a send needs your tap. A running turn shows a row with a timer andesc to interrupt. -
Hermes draws its classic CLI box as a rule, a
❯row and a rule. Below 64 columns it draws no rule under the box. A named profile shows its name before the❯. A session with a title carries it inside the top rule (── Session Title ─). Collie reads that rule, in Chat too, where the status line, the draft preview and the dialog cards keep working. Collie also reads the Traditional Chinese hint lines Hermes shows in an empty box. A newline goes in as Alt+Enter: Ctrl+J sends the message whendisplay.cli_multiline_shortcutsis off. The box shows at most eight rows. A longer message cannot be read back, so the send stops before Enter. The Ink TUI (hermes --tui) draws no rules: its top edge is the status row,─ ready │ …, and its❯row sits one column in, with nothing under it. A verb with a timer on the status row is a running turn. The hint of a fresh session reads as an empty box only on a read with no colours. Submit sends it, and the phone then cannot confirm it went. Hermes may show the rest of an earlier message in grey after your text. That send stops before Enter too, and Submit sends only what you typed. The model picker and the command palette open over the transcript, and the pane never reads free under one. -
Hermes during a turn starts its row with
☤, and Collie reads the turn from that mark. What Enter does then is Hermes's own setting, so Collie never presses it during a turn. A send during a turn is held, and it goes when the turn ends. If a turn starts while Collie types, the send stops before Enter and the text stays in the box. -
Hermes's questions: a question's typed answer opens a
✎row, and a send from the phone answers it. A held message never goes into that row. It waits until the question closes, then goes as a message. While a held message waits, a new send joins it, so cancel the held one to answer from the phone. -
Cursor CLI (
cursor-agent) draws its box as a▄rule, a→row and a▀rule. An empty box shows a grey hint, "Plan, search, build anything" or "Add a follow-up", and Collie reads that hint as no text.!turns the box into a shell prompt with its own hint. Collie reads that hint as text, so a message never goes into shell mode. A running turn shows a spinner row such asRunningabove the box andctrl+c to stopat the right end of the→row. Collie cuts that hint. Enter during a turn queues the message in afollow-upsbox above the input box. The box shows at most six rows and scrolls a longer draft. Collie cannot read a taller message back, so it leaves the typed text in the box and does not press Enter. Its dialogs (a command approval, a question, the folder trust prompt) replace the box, so the screen reads as unreadable. Live probed sends passed on 2026.10.14 and 2026.10.16. -
Kiro draws its box under a rule: a status bar, the folder, a blank row and a
›prompt row. Collie types only when that whole frame is on screen. A newline goes in as Ctrl+J. While a turn runs, the prompt row readsKiro is working. In Kiro, Enter then steers the text into that turn. Collie does not press Enter into a running turn. Ctrl+S switches Kiro between steering and queueing, so Collie names no queue key. So Collie holds a send while Kiro is busy, and sends it when the box reads free. Its profile was checked on Herdr only, not on tmux or zellij.
Grok, Antigravity and Muse are not installed on the build host.
Their profiles rest on saved screens of each agent.
No live message has gone to them through a profile, so Collie probes every send there.
Nobody measured what Enter does during a turn for them.
So Collie refuses a send while the screen shows the turn running, and it types nothing.
Where a harness draws no running sign, Collie cannot tell, and the agent decides what Enter does.
OpenCode and OMP passed live sends on a version above the checked one.
Collie probes every send on them until a send passes inside the checked range.
Hermes (the classic CLI) passed live sends on 0.22.2, inside its range, on Herdr only.
Hermes 0.22.3 to 0.22.5 is provisional until a live probed send passes there.
The Ink TUI (hermes --tui) is read from plain-text captures and has passed no live send yet.
The probe has not been tried in each Hermes dialog, so Collie probes every send there too.
A version above the checked one still works, and the receipt says provisional.
While an agent works, a send from the phone can wait for the turn or go into it. A plain tap on Send queues your text for after the turn. This holds on every agent. Collie never steers a turn by accident.
A steer is your own choice, made for one send. Hold the Send button and tap Steer. The agent reads the line after its current tool call, in the same turn. The row shows only while the agent works and only on an agent that has a steer key in its profile, for example pi, Codex and OMP today. A short hint under the box says that a tap queues and a hold steers. Codex reads a text that is followed at once by Enter as a paste, so Collie waits one second after the text before it presses the steer key.
The receipt tells you what happened:
- Steered. The agent took the line into the running turn. Collie saw the agent draw it.
- Queued instead. The agent kept the line for after the turn, even though you asked to steer. Nothing is lost.
- Typed, not submitted. The text is in the box and the steer key did not send it. Tap Send, or clear the box.
- Not available on this pane. The agent has no steer key in its profile, Collie does not trust its version with a running turn, or the text is a command. Nothing was sent. Send it without Steer.
- Only a person at the phone can steer. A steer from any other source is refused.
If the turn ends while Collie types, the line goes as a normal send. Collie does not hold a steer. A long steer may end without a clear sign. The receipt then says Collie does not know, and the text is not sent again.
An agent's message to another agent (WalkyTalky) never steers. It always waits for the turn.