All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project uses Semantic Versioning.
A target that matches nothing is now refused. Before, a typo in a window name reached the pane you were in, so text could land in the wrong place.
2 with one line,
roost <command>: no such target '<TGT>', and nothing is typed, read
or closed. Before, a window name that did not exist reached the pane
you were in: roost send typo hello typed hello there and exited
0, and roost send $tgt "$msg" with $tgt empty and unquoted in
zsh, which drops the word, sent a bare Enter there. read printed
that pane's reply, and forget removed its record. This covers
send, read, screen, answer, wait-done, close, revive,
forget and split -t. A window name with a dot, such as
next.js, still reaches that window.$1 now reaches that session's current pane.
Before, roost read it as a window called $1 in main.You can now see each pane's stable ID where you work. The pane border
and the prefix a switcher show it before the tmux number, and a pane
you open by hand gets its ID as soon as it opens.
prefix a switcher show each pane's stable ID
before its tmux number, in the order roost status uses:
p-k7q-2x9-z %12 claude. Type part of an ID in the switcher to find
its pane. A pane with no ID yet shows %12 claude, as before.prefix -, prefix _, prefix c, a bare
tmux split-window or a new session) gets its stable ID a moment after
it opens. Before, it got one only at the next roost status or
roost whoami.Every pane now has a stable ID, such as p-k7q-2x9-z. The ID stays the
same when roost restores your fleet, so a saved address still reaches the
same agent. roost checks the ID before it types, answers or closes, and it
refuses with exit 2 when the ID no longer names that pane. roost whoami
and roost status show the ID.
p-k7q-2x9-z
from roost status or roost whoami and use it anywhere you address a
live pane. An invalid address starting with p- stops delivery. Kept
replies carry the sender's stable address.roost whoami prints your stable pane ID. Each roost status pane line
starts with its stable ID, followed by its current tmux pane number.p- are read as pane IDs. Targets with a colon
still use tmux syntax, including main:p-worker and p-proj:web.1.
Select a saved session by name with restore --only =p-proj.roost now runs on Ubuntu 26.04. Two roost send calls to the same pane
could both take its lock there, so one message was lost; now they take
turns. The test suite also passes on Ubuntu 26.04 again, and CI tests every
change on Ubuntu 24.04, Ubuntu 26.04 and macOS.
mkdir
(uutils coreutils) could let two roost send or roost answer calls take
the same pane's lock at once. One of them then stopped with nothing sent.
Now the second one waits. (#256)roost send --agent-token %N, then use roost send --agent-only TOKEN %N TEXT.
Guarded sends take one line of text and require the agent to be the pane's
own process. The guard checks the harness session and foreground process
at paste and submit, even after waiting for a lock or an occupied editor.
Exit 7 means the guard refused before delivering input. Exit 8 means
input may have reached the target and needs checking before a retry.roost send no longer types over what a person is typing (#251). Before its
first key, it reads the target's input box in Claude Code, codex and pi. If
the box holds text, it waits for the box to clear, checking about once a
second, for about @roost-send-idle-timeout (300 s by default). Then it
exits 6 and types nothing. A dim suggestion in Claude's box (on
a new pane or after a turn) does not count as typing (#258). --force skips
the wait. An input box roost cannot read (a shell, opencode, copilot, a theme
it does not know) gets the send at once, as before. The check runs once,
before the first key: typing that starts after it is not protected. Also
new: a link in a roost pane is clickable, because tmux now passes OSC 8
hyperlinks through to your terminal (#252). Among the fixes (#233): the
restore offer's way-back line stays on screen until you press a key or 60 s
pass, and the roost restore --dry-run tree lines up its columns again and
no longer blames your tmux conf for renumber-windows when you never set it.
Three things to know. A send can now block for about 300 s, and exit 6
without --when-idle. A script that sends to a pane where a person may be
typing should handle exit 6, or pass --force. An ambiguous %N after a
restore now exits 2 (#247). When a %N names one live pane and is the
old id of another, pane commands refuse it and name both current addresses,
where before they printed a note and picked the current id. Use
session:window.pane instead, or was:%N for the old id. Clickable links
need the new config. A client that attaches to a new roost server gets
links at once. On a server started before the upgrade, press prefix r; a
client that was attached then must detach and attach again.
hyperlinks feature, and
no default turns it on, so a link in a pane showed as plain text.
tmux/roost.conf now turns it on for every terminal. A terminal without
OSC 8 ignores the sequence and still shows the text. It takes effect for a
client when it attaches. A client that attaches to a new roost server gets
links at once. On a server started before the upgrade, press prefix r; a
client that was attached then must detach and attach again.roost send can type into a Claude Code pane that shows a dim suggestion
(on a new pane or after a turn) (#258).
The suggestion no longer triggers the wait for the input box to clear.
A typed draft still holds the send.
roost send waits for readable occupied input before typing (#251).
Claude Code, codex and pi drafts hold the first key until the editor clears,
for about @roost-send-idle-timeout (300 s by default). Timeout exits 6
without typing. --force skips this check; unreadable editors pass through.
A pane id shared with a restored pane is refused before acting (#247).
If a literal %N names a live pane and is also @roost-was on another
live pane, pane commands now exit 2 and name both current addresses
instead of printing a courtesy note and choosing the current id. Use
session:window.pane to choose, or was:%N for the old id. The check
works with saving off or the restore map missing; explicit was:%N keeps
its meaning.
The restore offer's way-back line stays on screen until you press a key
or 60 s pass (#233). After n or Enter, roost printed not restored; roost restore --from STAMP-GEN brings it back and attached at once, so
the new session covered the line before anyone could read it. Now roost
prints press any key to go on under it and waits for a key, at most
60 s, before it attaches. It waits the same way after l (to show what
roost persist on installed) and after an r whose report names
something not restored. A clean r, and no answer in 60 s, attach at
once as before.
roost restore --dry-run no longer says renumber-windows is on "in
your tmux conf" when you never set it (#233). roost's own config turns
it on for every roost server, so every dry run and every restore offer
preview printed the note, and blamed your config. The note now appears
only when your own roost.conf turns it on, and names that file.
The roost restore --dry-run tree lines up its columns again (#233).
The name and directory columns had fixed widths, so a directory longer
than 30 characters pushed the harness and action columns to the right,
and a short one (/tmp among long paths) stood out of line. The columns
now take the width of the longest name and directory in the tree. The
restore offer's p preview shows the same tree.
Your fleet now comes back after a reboot or a crash (#191). roost saves the
shape of every session, window and pane on every change, with each agent's
conversation key, so a crash loses at most the last change. roost restore
puts the fleet back and resumes the agents one at a time, each in its own
directory. roost save writes a save when you want one, and roost revive %N
brings back one agent's conversation. Run roost persist on once, and a login
job brings the fleet back by itself when you log in, on macOS and on Linux.
With it off, the first roost after a crash asks whether to restore. A save
now starts with a few lines you can read, and a pane with no recorded
conversation shows the claude --resume or codex resume lines to pick from.
Also new: roost install links the roost skill for every harness it wires,
the tab bar can sit at the bottom, a pane held only by its background work
reads ๐, and a codex dialog pings only if it is still open after a few
seconds. Among the fixes: only a pane's own agent can set its badge, and a
Claude that exits while its background work runs no longer leaves the pane โณ
for ever.
Four things to know. Run roost install after upgrading, and restart a
roost server started before it: it adds Claude's SessionEnd hook entry and
links the roost skill, and roost doctor says when either is missing.
Saving on every change needs prefix r or a new server to load its hooks;
so does the login restore's first-attach hook. A bare roost stop, roost kill or roost down now asks first, and off a terminal it refuses: a
script that stops the whole server needs --yes. And opencode mini is
refused in a roost pane, because it shows no badge; ROOST_ALLOW_MINI=1
runs it anyway. On Linux, loginctl enable-linger keeps the fleet across a
logout; without it, the agents come back at your next login.
After a crash, roost asks whether to bring your fleet back (#191).
With roost persist off, the first roost, roost session NAME or
roost new after a crash or a reboot shows what was saved โ sessions,
windows, panes, and how many agents would resume โ and waits for a key:
r restores it (the agents come back after you attach, two seconds
apart), p shows the plan first, n starts fresh and does not ask about
that save again, l turns on the login restore from then on, and Enter
starts fresh without deciding anything. Nothing is started while it asks,
and after 60 s with no key it starts fresh and declines nothing. A script
with no terminal is never asked; roost --no-offer, ROOST_NO_OFFER=1
and a known agent's environment skip it. A save you decline stays
reachable with the roost restore --from STAMP-GEN line it prints, even
after the history has moved on, and roost doctor and roost restore --list name it.
A Claude or codex pane with no recorded conversation now shows you how
to get it back (#191). When roost does not know which conversation a
pane had (an older Claude pane, most codex panes, or a pane whose agent
left a key that no longer fits it), roost revive and roost restore now
list every conversation the harness holds for that pane's directory,
newest first, as claude --resume ID or codex resume ID lines.
restore --dry-run shows the same lines in its plan. roost prints them
and runs none: several panes can share a directory, so you pick the one
that was this pane's. In restore, when the agent had exited, its own
conversation is listed first. restore also now names a pane that ran
Claude, codex, copilot or opencode with no recorded conversation, which it
skipped without a word before; only Claude and codex get the list.
The tab bar can sit at the bottom of the screen. roost settings (or
prefix S) has a new tab bar row: pick top or bottom. The bar
moves at once and stays there after a reload. It is saved as
set -g status-position "bottom" in ~/.config/roost/roost.conf, and
roost init keeps it. Tabs stacked in a column on the left or right are
not possible as a setting, because tmux draws the bar only as a row; #224
tracks that.
roost persist on brings your fleet back by itself after a reboot
(#192, #191). Run it once: a login job (a LaunchAgent on macOS, a systemd
user unit on Linux, one per roost server) places every saved session, window
and pane when you log in, each agent's pane waiting in a placeholder, and the
agents come back two seconds apart when you first attach โ with roost,
roost session, roost ssh or a plain tmux attach; detaching starts
nothing. A roost typed while the login job is still placing waits for it,
and one typed when the job never ran does its work first. roost persist off removes the job and stops no agent; roost persist status and roost doctor say what is installed, whether it runs this checkout and whether
its roots match yours, and roost upgrade moves the job to the upgraded
checkout. The job's service.env holds roots and harness homes, never a
key, token, secret or password, and only persist on writes it. roost now
also refuses to start a second server while the first is still running
with its socket file gone, and prints the kill -USR1 that brings it
back. On Linux, keep the fleet across a logout with loginctl enable-linger. Loading the first-attach hook needs prefix r or a new
server.
roost now saves your fleet's shape by itself, on every change (#51,
#191). Make, close, kill, rename or move a session, window or pane,
choose a layout or resize a pane by command โ or roost spawn, split,
view, close, revive โ and the shape under
~/.local/state/roost/shapes/ is up to date a moment later, so a crash
loses at most the last change and roost restore has the fleet as it
was. A drag resize, swap-pane, swap-window, a join-pane or
move-pane that leaves its window with panes, and a shell's cd fire
nothing roost listens to: they are saved with the next change of any
other kind. A burst of changes becomes one or two saves, and
history/ keeps the last 100 (ROOST_SHAPE_KEEP). A pane you closed on
purpose stays closed: roost close, tmux kill-pane, kill-window,
kill-session, and roost kill NAME and roost stop for a whole
session or fleet are recorded, and a restore leaves those panes out; to
bring back a fleet you stopped, roost restore --from the saved file by
path (roost restore --list shows them, and restore prints the path).
After a shutdown, when agents exited one by one before tmux did, a
restore picks the save from before that teardown. roost doctor says
whether saving is on, names the last save, and warns when nothing has
been saved since the server started or the last save failed. Loading
the new hooks needs prefix r or a new server.
roost install links the roost skill for every harness it wires
(#208). An agent in a pane now knows roost is there and how to drive it
(spawn, send, wait-done, read) without you linking the skill by hand.
Each harness gets a roost link to this checkout's skills/roost in its own
skills folder: Claude Code $CLAUDE_CONFIG_DIR/skills, codex
$CODEX_HOME/skills, opencode $XDG_CONFIG_HOME/opencode/skills, copilot
$COPILOT_HOME/skills, pi $PI_CODING_AGENT_DIR/skills. The links are in
the plan you approve and in the undo lines. A roost skill of your own is
never replaced, nor is a broken link roost cannot show is its own, and an
undo line removes a link only while it is still the one install made.
Every undo line roost install prints now writes each path in single
quotes, so a $, a backtick or a quote in a folder name is used as it is
and never expanded into some other path when you run the line.
The undo in a roost validate report is built from the paths themselves,
so an apostrophe next to a ~ in a folder name cannot point it at another
file.
roost doctor prints one line per harness for its link, and
roost validate reports what roost install would do with each one.
roost save and roost restore put your sessions back after a reboot
or a crash (#51). roost save writes the fleet's shape โ every session,
window and pane, with names, directories, layouts and each agent's
conversation key โ to a plain text file under
~/.local/state/roost/shapes/, keeping earlier saves in history/.
roost restore puts it back: each saved session that does not exist is
made again with its windows at their saved indices and layouts, and each
pane is a shell in its saved directory. A session that already exists is
skipped and named. --dry-run prints the plan and starts nothing,
--list shows every save, --from picks an earlier save or a copy, and
--only restores one session, window or pane. See the Persistent Sessions
docs page.
roost revive %N brings one agent's conversation back after a crash or
an /exit (#57). It runs the harness's own resume โ claude --resume,
codex resume, copilot --resume=, pi --session โ in the same pane,
which keeps its %N, and in the conversation's own directory. Before it
touches the pane it checks that the harness still holds the conversation,
and that no other pane has it open; if not, it exits 13 with the reason and
the pane is untouched. 14 means the harness is not on PATH, 15 that the
directory is gone. A pane you closed comes back in a new window, from what
roost kept about it. Exit 0 means launched, not resumed: a dialog the
harness opens is left for you. A โณ working or ๐ blocked agent, or a shell
running something, is refused unless --force. For opencode the command
is printed, not run. See the Persistent Sessions docs page.
roost restore now resumes your agents, one at a time, each in its own
directory (#191). After the panes are placed, every agent that had a
conversation is launched with its harness's own resume, shells first, then
agents --pace seconds apart (default 2). Until its turn an agent's pane
shows waiting to resume claude - press any key for a shell; press a key
and the pane is your shell and that agent is left out (roost revive %N
brings it back). roost send and roost answer refuse such a pane with
exit 3 unless --force, and roost close cancels its resume. A resume that
cannot run (harness missing, directory gone, store miss, a duplicate) leaves
the pane saying why, and roost restore --resume --retry tries again once
you have fixed it; it never touches a pane you took. --no-resume places
only, --recent DAYS leaves out old conversations, --resume resumes
panes already placed. Restore ends with one report line โ what was
launched, what was not and why, which agents were mid-turn โ and --json
gives it as a document; exit 13 means an agent was not resumed. After a
restore, write was:%930 to reach the pane that was %930 before it:
every verb that takes a pane resolves it through this server's restore map,
a bare %N is never redirected, roost status shows (was %930) and
status --json has was, and a resumed Claude Code is told its old id.
"Launched" is the word: a dialog a harness opens on resume is left for you.
See the Persistent Sessions docs page.
A saved fleet now starts with a few lines you can read (#234). Open
~/.local/state/roost/shapes/roost/shape and the top says which server it
is, when and why it was saved, and what the fleet was: one line per
session, with its windows, panes and agents by name. One of them gives
the command that prints the whole tree: roost restore --dry-run --from
the file. Each line starts with #, and roost skips every # line, so
you can add your own notes to a copy. A save without them still restores.
A bare roost stop, roost kill or roost down asks before it ends
the whole server (#207). With no session name it used to stop every
session and every agent at once, with no count and no question. On a
terminal it now prints what will end (This ends 14 agents in 6 sessions.) and stops only when you type y; anything else, or no answer,
prints roost: not stopped. and exits 1. Off a terminal it refuses and
exits 1, naming the --yes form; --yes (or -y) stops it with no
question. roost kill NAME is unchanged and never asks.
A pane held only by its own background work has a badge of its own
(#193). When a Claude Code turn has answered but a background command,
agent or Monitor it started still runs, the pane used to read โณ like an
agent in the middle of a turn. It now reads ๐ background (2) on the pane
border, and ๐ on the tab, in the status-bar counts, in the prefix a
switcher and in roost status ([background (2)]). It is still working
underneath: wait-done, send --when-idle and every exit code are
unchanged, and status --json gives the count as background, null
when there is none or roost could not count. Each glyph set has its own
(โช orbs, [&] ascii, a history icon for nerd), and
@roost-glyph-background overrides it. A config saved before this with
another set shows the emoji ๐ until you re-pick your set in
roost settings; roost doctor says so.
A codex dialog pings after a few seconds, and only if it is still open
(#195). Under codex's auto-review, its own reviewer approves most sandbox
escalations about two seconds after the dialog fires, and roost used to ping
for each one: you followed the ping and found nothing to answer, three or
four times for one parallel batch. Now a codex pane that becomes ๐ blocked
pings after @roost-notify-delay seconds (5 by default, 0 for the old
instant ping), only if it has stayed ๐ for that whole time on a window that
is still off screen, and one batch gives one ping. Claude Code, opencode,
copilot and pi still ping at once, and error always does.
On Linux, agents come back after a logout, not only after a reboot
(#235). With roost persist on and no loginctl enable-linger (the
default on most machines), logging out ends the whole fleet. At the next
login every session, window and split came back, but every agent came
back as a plain shell: the teardown's own save had marked each
conversation as gone, and roost revive refused them too. roost now
writes no save while your systemd user manager is stopping, so the login
restore brings the agents back at your first attach, as after a reboot.
An agent that dies on its own is still marked as before. macOS is not
changed. Two smaller fixes to the login job's login.log on Linux: no
more printf: write error: Broken pipe lines, and its last line counts
only the agents that run left waiting (a run that placed nothing used to
say "1 agents wait" for an earlier run's).
A save no longer waits 25 s on a systemd user manager that does not
answer (#239). Each save on Linux asks the user manager whether it is
stopping. A manager that held its socket but did not answer made that
question wait about 25 s, and a roost save typed meanwhile waited up to
30 s and then gave up. The question now gives up after 2 s and the save
goes ahead as before. A logout also no longer leaves a save error behind
for roost doctor to report at the next login.
No grep: write error: Broken pipe line in the login job's login.log
(#239). On a machine whose login records hold many shutdowns, the
login restore could print that line while it read the last shutdown. The
restore itself was not affected.
The restore offer and roost restore --dry-run no longer promise a
resume that cannot happen (#232). A Claude, codex, copilot or pi pane
whose conversation its harness no longer holds was counted in "N of M
agents would resume" and listed as resume, and then came back as a
shell with store miss. The preview now asks the harness's store the way
the resume does: such a pane reads shell, not resumed: store miss in the
tree and in p, and is not counted.
opencode mini is refused in a roost pane, because it never shows a
badge. opencode 2's minimal interface does not load the plugin roost's
badges come from, so a mini pane stayed silent: no badge, nothing for
roost read, and roost wait-done could not see its turns end. In a roost
pane, opencode mini now stops at once with a message that says why, and
plain opencode runs as before. To run mini anyway, with no badge:
ROOST_ALLOW_MINI=1 opencode mini. roost doctor names any pane already
running opencode mini. A new pane, or roost spawn, gets this; a pane
opened before the update does not. The roost skill now tells agents to
start plain opencode. And roost's own question "is this harness
installed?" no longer counts roost's own wrappers: run from a roost pane,
roost install, doctor, validate, revive and roost wiring could
read a machine with no opencode as having one.
A pane whose first event was a permission dialog no longer gets a bad
hold record (#199). On a fresh pane, a blocked stamp wrote a
background record with no count. It then made the pane read ๐
background while it was working, and a Stop with no reply could add an
empty turn file. The record is no longer written, and every reader (the
badges, roost status, status --json, read and wait-done) now
reads the same strict rule: a hold has a count above zero, or ?, and
any other record is no hold.
A Claude pane held โณ working by background work no longer stays working
for ever when Claude exits (#188). Claude fires SessionEnd and no
Stop when it exits before its background work ends โ /exit, Ctrl-C
twice, a closed terminal, a killed process, respawn-pane -k โ so nothing
released the hold. roost now wires SessionEnd: the pane's badge is
cleared, wait-done exits 2 (died) instead of timing out, and the
turn's main reply is kept, with read saying the background work never
reported back. /clear and /resume leave Claude at its prompt, so after
them the turn is recorded as interrupted and wait-done exits 5. A pane
that is not held, or a SessionEnd from another Claude session โ the old
one after a respawn-pane -k among them โ changes nothing. A new prompt
that lands while the ended turn is being filed takes the next turn number,
never the ended one's, so wait-done --turn N still names the right
prompt; a roost send in that moment prints no turn number, as for any
pane with no badge. Run roost install after upgrading to add the new hook entry, and restart a roost
server started before it; roost doctor says when either is missing.
Without it everything behaves as in 0.10.0.
Only a pane's own agent can set its badge now, and a badge stops
claiming work once its agent has died (#105). Any process that carried a
pane's TMUX_PANE โ an app the agent launched that detached itself, a shell
that copied the variable โ could stamp that pane, and nothing checked. roost
now walks the reporting process's parents: a report from inside the pane's
process tree is accepted, and one from outside it is refused, so a stray
done can never end a turn. A refused working or blocked clears a stale
โ
or ๐ค rather than leave it standing. roost state --json says
"refused": "not in this pane's process tree", status --json gains
refused and verified per pane, and roost doctor names a pane that
refused a report, with the process id. Where the check cannot run โ no
working ps, or a container that cannot see the pane's process โ the
report is accepted as before and marked verified: false, and doctor
names that pane too. Every tool call of a busy agent costs nothing extra;
only a change of badge pays for the check. And an agent killed at a shell
prompt is now cleared by send, send --when-idle and read, not only
noticed by wait-done: the badge is unset, wait-done exits 2, a ๐
left by the dead agent no longer makes send refuse with exit 3,
--when-idle no longer holds for its whole bound (nor for a turn ended
with Esc), and read stops calling the previous turn's reply current. The
dead turn keeps its number, so wait-done --turn N exits 2 however
many times it is asked and read --turn N says the agent exited inside its
shell. A new agent started at the same prompt is never taken for the dead
one, and never takes its turn number either: its first reply is the next
turn, whether it starts before anything looked at the pane or while send,
read or wait-done is clearing it. status still changes nothing.
The codex ping-delay test has wider timing margins and no longer races
the real clock in its setup (tests flake, #202).
tests/test-codex-notify-delay.sh answered a dialog a few tenths of a
second before its deadline, so under a full tests/run.sh it sometimes
saw a ping the code was right to send. Its two-dialog cases now give each
dialog its own delay, seconds apart, pin the clock the hooks stamp with,
and check which child claimed the ping. Its "no ping yet" checks count
only pings stamped before the deadline, and an answer that lands after
its deadline is a missed setup, retried once, not a failure. Delay 1 has
its own check again. Nothing changes for users; the test takes about 60
seconds where it took 44.
A turn is over when the agent has stopped acting on the prompt and nothing
it started for that prompt is still running, and roost now says so. A Claude
Code pane whose turn started a run_in_background command, a background agent
or a Monitor stays โณ working until that work ends, instead of reading โ
done
for the whole run of it (measured at 30 s per task). A turn the human stopped,
with Esc, a declined dialog, codex's Interrupt or copilot's abort, makes
wait-done exit 5, not 0, and a pane an Esc left โณ is cleared the next
time send, read or wait-done looks at it. wait-done --json exists. And
pushing a prompt into a busy agent got safer: send --when-idle holds it until
the agent is free, a long send to pi or opencode 2 takes under a second instead
of 19 with a false warning, and an empty send now says on stderr why it named
no turn.
Three things to know. Run roost install after upgrading, and restart a
roost server started before it: Claude's prompt hook gains --prompt-hook,
which interrupt recovery needs, and roost doctor says when it is missing.
A short wait-done on a Claude pane with background work now exits 1
(timed out), where it used to exit 0 into files that were still changing. And
if Claude exits while its background work runs, the pane stays โณ until it
is closed (#188); docs/known-gaps.md lists this and the rest of what is still
open.
roost wait-done --json (#110). One document per outcome โ done,
error, timeout, died, gone, interrupted โ with the pane, its state,
the error reason, the background count, the seconds waited, the turn when
--turn was given, and on done the same reply object read --json
prints. Nothing on stdout for a usage refusal, like every other --json.read --json says whether a reply is final. final is false for the
main reply of a Claude turn whose background work still runs, with
background counting the tasks; status --json gains background per pane.
Both are null, never 0, when roost could not see.roost send --when-idle: hold a prompt until the agent is free (#56).
A plain send pastes at once, and into an agent that is โณ working the text
lands in the middle of the turn that is running: the agent folds it into
that turn and send has no new turn to name. A cross-harness run lost a
report exactly that way. With --when-idle, send waits until the target
stops reading working, then sends as usual and prints the %N TURN line.
The wait is bounded by @roost-send-idle-timeout, 300 s by default and at
most 3600; past it the exit is 6 with nothing typed. A ๐ blocked target is
still refused with exit 3, and a pane with no badge is sent to at once. Two
held senders at one busy pane wait for the pane, not for each other's lock,
and each gets its own turn. --json gains waited, in seconds, with the
flag only. Without the flag send is unchanged.roost answer takes the per-pane send lock. A send --force and an
answer aimed at one dialog could both land, because answer typed its key
with nothing held (#181). It now takes the same lock send holds, just
before its key, re-checks it at the key, and holds it through its confirm
wait. When it cannot hold the lock โ another command typing into the pane
for the whole @roost-send-lock-timeout wait, a lock that cannot be named
or made, or one taken from under the call โ it exits 11 with nothing sent,
and the call can simply be repeated.roost send says why it printed no turn number. An empty stdout at exit
0 has several honest causes, and workers in a real run read every one of
them as a lost message (#177). Each path that submits the text and names no
turn now adds one stderr line that starts roost send: no turn number: and
names the cause โ the first one being a pane with no badge yet, and the
commonest a pane that is mid-turn, where the prompt is queued inside the
harness. Stdout, --json and every exit code are unchanged.send to pi or opencode 2 is quick and quiet again (#176). Both
draw a placeholder for a long or multi-line paste โ pi [paste #1 +12 lines] or [paste #1 4210 chars], opencode 2 [Pasted ~12 lines] โ and
send knew only Claude's [Pasted text #1]. So every such send re-pasted
for the whole @roost-send-ready-timeout, about 19 s, and then printed
"accepted the keys but does not show them", which agents read as a failed
delivery. A placeholder of any of the three shapes that was not on the
screen before the paste now proves the paste landed, at once and with no
warning. Claude's sends get the same: they used to wait out the same loop
in silence. A placeholder left on the screen by an earlier send no longer
counts, and no longer hides the warning for this one. A message whose own
text quotes one of the shapes is still checked by its head, so a cut message
cannot pass as delivered.Stop lists the work it still has running, and starts a
turn of its own when that work ends; roost now holds the pane at working
from the first Stop to the one whose list is empty, and records the
turn's reply once, from that last one. Work the agent hands to another pane
with roost spawn or roost split never holds it. A held pane reads
working, so send --when-idle waits for it to be released, and a plain
send to it says no turn number: because it is mid-turn. A Stop with no
background_tasks at all โ an older Claude โ keeps today's done, on
purpose; a list roost cannot read holds. A background task of a kind roost
has not measured holds too, and roost doctor names the pane and the kind.
Claude Code only: the other harnesses do not report background work.wait-done exits 5 for an interrupted turn (#95). It used to exit 0,
the same as finished, for a turn the human had stopped: on every harness.
Now a Claude Esc mid-stream or mid-tool is read from Claude's transcript
(a declined dialog already was, and now counts as interrupted too)
(the badge it left is cleared, the turn is recorded as interrupted with
an empty reply so turn numbers stay aligned with prompts), codex's
Interrupt and copilot's aborted turn record the same outcome, and
wait-done says was interrupted, not done. Exits 0, 1 and 2 keep their
meanings; a copilot turn the human aborted reads ๐ค idle, not โ
done.
Reading an Esc needs the new --prompt-hook on Claude's UserPromptSubmit
entry: run roost install (and restart a roost server started before the
upgrade); roost doctor says when it is missing. Without it everything
badges as before.roost send; it
never sends to a busy pane; it identifies messages by an id in the text,
because a message that lands mid-turn joins the running turn; and it reads
an empty send at exit 0 as submitted, not lost.A human can now answer a blocked pane from anywhere. roost answer --expect FP %3 --approve, --option N or --deny sends one measured key into the dialog
a pane is blocked on and waits to see it land, and status --json says which
dialog that is, so a board or a phone can tell "needs you" from "already
answered". And two roost sends at once no longer lose, merge or cross each
other's messages: every send has a buffer of its own and holds a per-pane lock
from before its first key to after the turn watch, so two workers reporting to
one coordinator in the same second both arrive, and two senders racing an idle
agent are never handed the same turn number.
Two things to know. A second send to a pane that is being sent to waits
โ up to @roost-send-lock-timeout seconds, 60 by default โ and then exits 1
with nothing typed, which is the "retry the same target" code. And roost answer does not take that lock yet, so a send --force and an answer
aimed at one dialog can still both land; both are a person's verbs, and
docs/known-gaps.md lists it.
roost answer: answer a blocked pane's dialog from any shell (#142).
roost answer --expect FP %3 --approve, --option N or --deny sends one
measured key into the dialog a pane is blocked on, once, and waits up to 3 s
to see it land. It answers a Claude Code permission prompt for Bash,
Write or Edit (1 to approve, Escape to deny) and a Claude question
with one choice and two to four options (the option's digit). Every other
dialog, and every codex, opencode, copilot and pi dialog, is refused with
exit 8 and nothing sent. --expect names the dialog you saw and is required
to approve or pick an option, so the key cannot land on a newer dialog
asking the same thing. It refuses a caller in an agent's pane (exit 9)
unless --force; that is a guard against an accident, not a lock. Exit 10
means the key was sent and not seen to land: do not answer again. roost
still never answers a dialog on its own. --json prints one document.status --json says which dialog a blocked pane shows. Each pane gains
dialog: a fingerprint that is new for each dialog, the harness, the kind
(permission, question or other), how many options a question has, and
answered, which says when roost answer answered it. A pane keeps its ๐
badge for as long as an approved tool runs, so answered is how a board
tells "needs you" from "already answered". A codex dialog now records what
it is about, as a Claude dialog does, except under codex 0.157.1's shared
background process (#145).roost sends at once no longer lose, merge or cross each other's
messages. Every send loaded its text into one shared tmux buffer and
nothing kept two senders out of one input box, so two workers reporting to
one coordinator in the same second could both exit 0 with one report never
delivered, or one of them was told a healthy pane "may have died" (#175).
Each send now has its own buffer and takes a per-pane lock, held from before
the first key to after the turn watch, so two senders racing an idle agent
can no longer both be handed the same turn number either. The lock is a
directory beside the server's socket; a holder that was killed is taken
over. A send that waits more than @roost-send-lock-timeout seconds
(default 60) for another send to the same pane exits 1 with nothing
submitted, so it is safe to retry.roost now updates itself. roost upgrade pulls the next release into the
checkout roost runs from, re-wires a running server, and runs the installer it
just fetched, so the roost install and roost wiring on that 0.7.0 asked for
on opencode 2 are one command now. roost update means the same thing. When a
plugin link points at a second copy of roost, doctor prints the exact command
and install relinks it from a plain checkout; from a git worktree both leave
the link alone and say so. roost ssh runs the remote roost in a login shell
and quotes every argument, so a remote that keeps roost under ~/.local/bin
works, and a multi-word prompt arrives as typed. CI runs the test suite in
four shards per runner.
One thing to know. roost upgrade refuses a dev tree, by design. A
checkout on a branch, with local commits, or with changes to tracked files
gets the curl ... | sh line instead, and nothing is pulled into it.
roost upgrade: pull new roost code and wire every agent to it, in one
command. It runs git pull --ff-only in the checkout roost runs from,
re-applies wiring on a running roost server, then runs the installer the pull
just fetched, so a release that adds an adapter wires it in the same run. Its
flags are the installer's, passed straight through: --yes, --dry-run,
--only. The re-apply is what unsets roost's own OPENCODE_CONFIG_DIR on a
server started before the upgrade when opencode is 2.x, so the opencode 2 case
needs no roost wiring on afterwards; a server that is not running is wired
when it next starts, and nothing is printed; a server started from another
checkout, or one with wiring off, is skipped and a line says which.
--dry-run skips the wiring step and prints a line saying so, makes the
installer dry, and still pulls. Before anything touches the network it
refuses, naming the rule, when the checkout is not a git checkout, is a
worktree, is not on main, has no upstream, has local commits, or has
uncommitted changes to tracked files (untracked files are fine). A failed pull
wires nothing. A refusal prints the curl ... | sh line as the fallback,
which still works on a machine with no roost at all. roost update now means
roost upgrade; roost install stays the command that never fetches. The one
thing to know: a dev tree is refused, by design. A checkout on a branch,
or with commits that are not on its upstream, is somebody's working copy, and
upgrade will not pull into it.A link to another copy of roost is roost's to fix. A plugin link whose
text names a roost adapter in a different checkout, and whose target still
exists, used to read as foreign and be refused. It is now its own state,
other-checkout. From a plain checkout roost install lists it as a relink
(relink PATH (was OLD), with -> TARGET on the next line), asks for it with
the rest, does it under --yes, records the old target as the undo, and says
in the summary what the link used to point at, because that is a second copy
of roost. On opencode 2 the same goes for another copy's 1.x link. From a git
worktree install refuses and says to run it from that copy or from the
primary checkout, so a build pane running roost install --yes cannot take
the live links from the checkout that owns them. If the old link cannot be
removed, install fails rather than link into the other copy. foreign is
unchanged: a stranger's file is still never touched, and codex's hook is still
never rewritten. A Claude hook from another live copy of roost is treated the
same way, replaced from a plain checkout and refused from a worktree; roost's
two hook scripts are matched exactly, and the consent line says so before you
answer. roost validate predicts the same: its offer says the link will be
relinked from a plain checkout and left alone from a worktree.
CI runs the test suite in four shards per runner (#169). A pull request
waited 12 minutes for test (macos-latest) and 7 for Ubuntu, because the
test files ran one after another. Each runner now runs four jobs,
test (<os>, 1/4) to test (<os>, 4/4), and the wait is the slowest of
them. tests/run.sh does the split: SHARD=k/n bash tests/run.sh runs
shard k of n, prints the same per-file lines and the same
N passed, M failed summary for those files, and --list says which files
a shard holds. Files are spread by measured seconds, longest first onto the
lightest shard, so the 102-second file never shares a job with the
65-second one. A plain bash tests/run.sh with no SHARD runs everything,
exactly as before. A repository rule that named test (macos-latest) as a
required check has to name the new jobs instead.
roost doctor prints the command when a plugin link is not this install.
The opencode 2, opencode 1, copilot and pi lines said "relink it to WANT" and
gave no command. Each now ends in rm "PATH" && ln -s "WANT" "PATH", and a
link to another copy of roost is named as one, with roost install as the
first thing to run. From a git worktree that line names the worktree and
hands over no command, for the same reason roost install refuses there,
and roost validate's offer says the same. doctor prints an rm only for
a symlink: for a file or directory it says to move it aside yourself.
roost ssh runs roost in the remote's login shell, and quotes every
argument. It was ssh -t HOST roost ..., which the remote ran in a plain
non-login shell: no profile was read, so a PATH or LANG set there never
arrived, roost was "command not found" on any machine that keeps it under
~/.local/bin or a Homebrew prefix, tmux the same one step later, and a
remote without a locale drew every badge as _. And ssh joins its arguments
into one line, so a multi-word prompt had to be quoted twice. The remote
line is now "$SHELL" -lc 'roost ...', built one quoted argument at a time:
roost ssh devbox send %3 "review the diff" arrives as those three words,
and user@host destinations pass through as before. The docs gained a
remote-agents checklist and three troubleshooting entries for the remaining
ways a remote can be set up wrong.
roost now works with opencode 2, and it gives a program enough to build on.
opencode 2 changed what a plugin is, so roost has a second adapter beside the
1.x one, and a pane running it badges, keeps its replies, and uses your own
configuration again rather than roost's empty one. For anything that watches
the fleet: every pane now carries who is in it โ session id, directory,
harness, transcript โ roost events streams every state change as one JSON
line, roost send --from records who sent each prompt, a Claude pane says how
many subagents it has out, and roost close ends one agent its own way and
closes only its pane. The prefix a switcher is live, with colour, a filter
and a preview of the agent's screen.
Three things to know. If you run opencode 2: run roost install once, and
roost wiring on once, and unset OPENCODE_CONFIG_DIR in any pane that was
already open; an old roost link makes opencode 2 say 1 plugin failed, and
roost doctor names all three until they are done. Every Claude install
needs roost install again to wire the two subagent hooks, or the new
subagents field stays null. And roost events logs a closing pane only
after prefix r reloads the tmux config on a server that was already running.
roost send --from LABEL: who sent each prompt, kept beside the turn
(#56, the attribution half). Every send that names a turn now records who
sent the prompt next to that turn's kept reply, as replies/NNNNNN.sent_by:
the label you pass, else pane:%N for a send from a pane on this server,
else human. roost read --json shows it as sent_by, and roost send --json says what it kept. A label is one word of at most 64 bytes that
does not begin with a dash; anything else is refused with exit 2 before
anything is pasted, and a bare %N is kept as pane:%N so one sender
has one name. The text
pasted into the agent is unchanged, and a send without the flag is
byte-identical to before, so keep the [from %N] prefix until the envelope
ships. A turn that ends with no reply (an API error, an interrupt) takes
its label with it: the next turn to start drops it, so a prompt typed by
hand after a failed send reads sent_by: null, never the sender's name.
The first prompt into a fresh Claude pane keeps no label: it has no badge
yet, so send does not number that turn. Nothing to do to get it.
roost status --json says how many subagents a Claude pane is running.
Each pane carries subagents: the number of subagents its agent has out
right now, 0 once they have all finished, and null for a pane that has
never run one โ which is every pane of every other harness, since only
Claude Code reports it. Two Claude hooks keep the count on the pane,
SubagentStart and SubagentStop; roost install wires them, and roost hooks prints them. Neither changes a badge: a pane with helpers out reads
whatever its own turn reads, as before. Three subagents started in one
message are counted as three โ the count is changed inside tmux, not read
and written back by each hook. Run roost install again on a machine wired
before this, or the field stays null there.
roost close: end one agent and close its pane (#143). roost could open
an agent and could not close one: roost kill takes a session or the whole
server, so ending a single agent meant tmux kill-pane by hand, which kills
the process mid-write and skips whatever the harness does on a clean exit.
roost close [--force] [--json] TGT [TIMEOUT_SEC] types the harness's own
exit command (/exit for Claude Code, opencode and copilot, /quit for
codex and pi), waits up to 10 seconds for the agent to leave, then closes
that pane and no other. It refuses a working or blocked agent unless you
pass --force, which closes the pane without typing anything. It refuses a
window with more than one pane as a target, and the last pane of a session
(that is roost kill SESSION). If the harness opens a dialog while it
exits, close stops and leaves the dialog for you; it never answers one. A
pane where only a shell is left under an old badge is closed without typing
anything. Kept replies stay, so roost read %N still works after a close.
Exit 0 closed, 1 refused or timed out, 2 already gone. Nothing to do to get
it.
roost events: every state change, as it happens (#98). A program
that wanted to know when an agent moved had to poll roost status --json.
Now each change writes one JSON line to a log beside the kept replies, and
roost events prints this server's lines, each with a cursor:
--since CURSOR resumes after one, --follow keeps printing until the
server stops, and --pane %N keeps one pane. A line names the server,
pane, window, the agent's session_id when one is recorded, the states
before and after, the turn (numbered as roost send numbers them) and a
short reason: what a dialog asks for, or why a turn failed. It never
holds prompt or reply text. A second dialog on a pane that is already
blocked gets its own line; so does a ๐ roost clears after you decline a
dialog, and a pane closing โ its program exiting, or a kill of its pane,
window or session. A cursor the log has rotated away exits 3. Re-read
status --json then. The log keeps at least ROOST_EVENTS_KEEP lines
(default 5000). ROOST_EVENTS="" turns it off, and
roost forget --all clears it. Reload roost's tmux config (prefix r)
for closes to be logged on a server that was already running.
opencode 2 is supported (#150). roost now has an adapter for opencode 2
beside the one for 1.x. If you run opencode 2: run roost install once.
It links the adapter at ~/.config/opencode/plugins/roost, and removes
roost's old 1.x link if you have one, because opencode 2 cannot load it and
shows 1 plugin failed. roost's automatic wiring does not reach opencode 2,
so this is the one step. After it, an opencode 2 pane badges and roost read
returns its replies as on 1.x, and the badge follows the chat on screen: a
chat in a hidden tab shows nothing until you bring it to the front. Two
things differ from 1.x. After you switch tabs, roost read has no reply for
the pane until the chat now in front finishes a turn; it says so and shows
the screen. And a reload of the adapter turns a finished chat's badge to
idle, with no stored reply, until its next turn: a reload runs the adapter's
setup again. Whether a roost update causes that reload in an opencode
terminal that is already open was not measured.
Every pane says who is in it (#141). roost status --json now carries
session_id, cwd, harness and transcript on every pane, null where
roost does not know, and the pane's record keeps the first three, so a
program can show a conversation, open its transcript, or bring it back
later. Claude Code is read at session start, codex at its first prompt, and
the opencode, copilot and pi adapters call the new roost identify, which
is a no-op outside roost. An opencode 2 pane is identified as the chat in
front of its terminal, and follows a tab switch; it has no transcript. The
key is session_id, not session, because session is already the tmux
session name. Codex 0.157.1 runs every hook in one shared process that
cannot name its pane, so a codex pane carries no identity rather than a
wrong one. Where a value can be stale is in docs/known-gaps.md. Nothing
to do to get it.
The prefix a switcher is live. It used to be a snapshot: a list taken
when you opened it, with no colour. Now it reloads every two seconds while it
is open, colours each agent's state, and shows the screen of the row under
the cursor beside the list โ so you can read what a blocked agent is asking
before you jump to it. Ctrl-f steps a state filter (all, needs you,
working, done) and Ctrl-o hides panes that are not agents. With more than
one session, rows are grouped under a header per session. The popup is
larger, 90% by 80%, to hold the preview. The live parts are tested on fzf 0.44
and 0.74; an fzf too old for them keeps the plain list, and roost doctor
now says which you have. Across a reload the cursor keeps its position rather than its row:
following the row made fzf drop one Enter in ten, measured.
roost doctor checks opencode 2 on its own terms (#150). opencode 2 has
a new plugin format and does not load roost's 1.x adapter, and it reports
that only in its own log, so the pane runs normally and never badges. doctor
used to print opencode plugin linked on such a machine, or hand you an
ln -s that could not help. It now checks the opencode 2 adapter's link โ
opencode 2 plugin linked, or the command that makes it โ and names the two
other things you can fix yourself: a pane that still has roost's
OPENCODE_CONFIG_DIR, and the leftover 1.x plugin link that makes opencode 2
show 1 plugin failed. opencode 1.x is checked exactly as
before. Finding the version starts opencode once with its directories pointed
at a temp folder that is then removed: asked plainly, opencode --version
creates its data directories, and a report should not be what first creates
them.
opencode 2 in a roost pane uses your configuration again (#154). roost
wires opencode by setting OPENCODE_CONFIG_DIR in every pane. opencode 1.x
reads that folder as well as your own; opencode 2 reads it instead, so
inside roost it silently dropped your model, your providers and your
permission rules, and ran on its defaults. roost now checks which opencode
you have when the server starts and does not set the variable for 2.x.
If you run opencode 2: run roost wiring on once, and in any pane that was
already open run unset OPENCODE_CONFIG_DIR โ a shell keeps what it was
given, and roost doctor tells you when one still has it. opencode 1.x is
wired exactly as before, with one exception: an opencode that is on your
PATH but prints no version, or does not answer --version within five
seconds, is no longer wired, because roost cannot tell it is not 2.x. It then
badges through roost install instead. The five-second limit is there so that
a hung opencode cannot stop a roost server from starting.
Docs pages are no longer blank at a trailing-slash URL (#129). Every page
under /docs/ rendered as an empty dark screen if the address ended in a
slash โ roosting.dev/docs/setup/ showed nothing, while
roosting.dev/docs/setup was fine. The page answered 200, loaded every
asset, logged no error and held the whole document in the DOM; it was simply
never drawn, because the client router matches /docs/:slug exactly, so the
page's own code was never loaded and the rule that hides an element until its
code arrives never released it. The site now redirects the trailing-slash form
to the clean one, and the client canonicalises the path as well, for hosts
that do not. scripts/verify-site.sh asserts the redirect against the real
container image on every CI run โ a check that needs no browser, which
matters, because nothing else CI runs could tell a rendered page from a blank
one.
roost wait-done reports a dead agent as dead on tmux 3.8 (#165). With
remain-on-exit on, a pane whose agent was killed mid-turn stays on screen
as dead. On tmux 3.8, which Homebrew now installs, wait-done on that pane
or its window exited 0 at once, as if the agent had finished, and a pane
badged error exited 0 instead of 1. tmux 3.8 leaves a dead pane's process
id empty, and that empty field pushed the badge out of what wait-done
reads. It now exits 2 and says the pane is dead, and an error pane exits 1
again, as on earlier tmux. Nothing to do but update.
Two things that were wasting your machine's time. roost forget --gone could
hang for ever against a suspended tmux server while pinning a CPU core, because
the two-second bound it enforced gave up by asking politely โ and a tmux client
spinning against a stopped server never hears that. And a codex pane printed a
warning naming your own hooks.json path on every single start, because roost
asked for a hook timeout codex was quietly clamping down anyway.
One thing to know, and only if you run codex: run roost install to pick up
the new Interrupt timeout, and roost doctor will keep saying so until you
do. On codex 0.154.0 that is the whole step. An older codex hashes a hook's
timeout, so it may ask "Hooks need review" once โ answer "Trust all and
continue", for Interrupt alone. If it asks you nothing, the install worked.
roost forget --gone no longer hangs for ever on a suspended server
(#125). Checking whether a recorded server is still alive asks tmux and gives
up after two seconds. It gave up by sending the polite signal โ and a tmux
client talking to a suspended server (kill -STOP, a debugger, a laptop
resumed mid-connection) does not block; it spins, and while it spins it never
acts on that signal. So the two-second bound was not a bound: the command
never returned, and a CPU core stayed pinned at 100% until something else
killed the client. Measured at 2 minutes 21 seconds of CPU and still running.
The bound now escalates โ polite signal, one second, then the one that cannot
be ignored โ so the worst case is three seconds. A server roost could not
reach is still reported as "could not ask", never as gone, so no record is
deleted on the strength of a timeout.
codex no longer warns about the Interrupt hook timeout on every start
(#123). Codex caps an Interrupt hook at 3 seconds. roost asked for 10, so
codex clamped it and printed warning: clamping Interrupt hook timeout to 3s in <your home>/.codex/hooks.json every time it started โ your home path on
your screen, on a correct install. roost now asks for the 3 codex was giving
it anyway.
Run roost install to pick it up. On codex 0.154.0 that is the whole
step: a timeout is not part of the hash codex stores when you trust a hook,
so the new number lands under your existing trust entry and codex asks you
nothing. An older codex does hash it โ if "Hooks need review" appears, answer
"Trust all and continue" once, for Interrupt alone, and until you do a codex
dialog answered No or Esc leaves the pane ๐. roost doctor reads the timeout
out of your hooks.json and says so while the old number is still there. What
the hook does is unchanged: three seconds before, three seconds now.
(The first cut of this entry said the re-trust was certain. It was written
from measurements on codex 0.150.1 and 0.151.0, where a timeout was hashed.
Re-measured on 0.154.0 โ with an appended command argument as the control, to
prove the probe still sees a real change โ it is not. docs/known-gaps.md
carries the hashes.)
roost now tells the truth faster and more often. A Claude Code permission
dialog is badged ๐ as it opens โ 72 ms, not six seconds โ so roost send can
never paste into it, and a subagent's dialog, a failing tool after Yes, or a
background agent's tool result no longer moves or strands the badge.
roost send proves the target began a new turn and hands back its number, so
wait-done --turn and read --turn answer the prompt you sent, not the one
before it. A long reply from an adapter survives Linux by travelling on stdin.
And when you are attached over SSH, a blocked or errored agent reaches your own
terminal's notification, with nothing installed on the near side.
Two things to know: send into a pane whose done/idle badge was set by
hand, or whose agent has exited to a shell, now waits out a bound and exits 4
rather than 0; and existing installs need roost install again (or a server
restart for roost-owned wiring) to pick up the two new Claude hook entries โ
roost doctor says so.
blocked or hits an error, roost now also writes the terminal's own
notification escape sequence (OSC 9 by default; 777 and 99 are
available) straight to each attached client's terminal, so a remote
terminal that reads it raises a desktop banner with no app, no daemon and
no account in the path. It is on by default only for a remote client (one
whose session carries SSH_CONNECTION or SSH_TTY), decided per client
from tmux's own record; @roost-notify-osc on|off overrides, and
@roost-notify-osc-codes picks the sequences. Every write is bounded to
one second and started in parallel, so a stalled link cannot hold up the
agent's hook, and each sequence leads with a terminator so a terminal left
mid-sequence by a killed write heals on the next one. Control-mode clients
are skipped. A new docs page, Notifications, covers the backend chain and
the no-vendor phone recipe (@roost-notify-cmd plus SSH over a private
mesh network).roost send proves the target began a new turn, and says which one
(#92). After the verified submit, send waits โ bounded, ten seconds by
default (@roost-send-turn-timeout, clamped to 120) โ for the target to
leave its finished badge, and prints one line, %N TURN: the pane the text
reached and the turn it started. roost wait-done --turn N and
roost read --turn N then tie the wait and the reply to that exact prompt,
so a wait-done that begins before the target's hook has fired can no
longer hand back the previous turn's reply as if it were the answer. send
gained --json (target, pane, turn, started, state), and a new
exit code 4: the text was submitted but no turn began inside the bound,
so do not send it again. A pane with no badge is not waited for and prints
nothing; an errored turn prints no number, because it is never recorded.send into a pane whose done or idle badge was set by hand, or whose
agent has exited to a shell, now waits out the bound and exits 4 rather
than 0.roost reply
now also reads the reply from stdin โ roost reply -, roost reply --stdin,
or a pipe with no argument โ and the opencode, pi and copilot adapters
publish that way. Linux refuses a single command-line argument of 128 KiB or
more, so a reply that long never reached roost there, while macOS carried it,
which is why it was never seen on the development machine. The one-argument
form is unchanged. A reply longer than a few KB, or one built from a file,
belongs on stdin. The kept turn file holds every byte, trailing newlines
included, on both paths.permission_prompt
Notification, which arrives 6.00 s after the dialog is drawn โ and a dialog
answered sooner was never badged at all. In that window roost send could
not refuse, and pasted into the open dialog. Claude's PermissionRequest
hook event fires about 10โ16 ms after the dialog is drawn; roost now wires
it (measured: blocked in 72 ms), keeps the Notification as the fallback
for an older Claude, and records what the dialog is asking in
@roost-blocked-on (<tool>: <command or path>, 120 characters) for a
later display. The hook prints nothing: PermissionRequest is an event
Claude acts on, and roost never answers for the human.Stop โ 7 ms
after, or 0.3 ms before, the dialog event; the order swaps between runs.
Everything a dialog stamps is now one tmux command, and a Stop decides at
the write, inside tmux, whether the pane is blocked; the first Stop under
an open dialog is held back, a second always moves the pane.PostToolUseFailure, not PostToolUse, for it; roost
now wires that event too (eight Claude hook entries). roost doctor warns
about a settings file or a roost-owned wiring file written before this
change; roost install adds the missing entries.PostToolUse and PostToolUseFailure read agent_id while the
pane is blocked, and a subagent's event leaves the badge alone.An agent's replies are now kept on disk, one file per turn. A long reply is no
longer cut short, an older turn can be read back, and a pane you closed still
has its last answer. Nothing you already do changes: the pane is still the truth,
and roost read on a pane with nothing kept prints exactly what it printed
before.
${XDG_STATE_HOME:-~/.local/state}/roost/panes/, beside the pane option roost
already set. A reply longer than the 12 KB pane limit now reads back in full
instead of being cut off without saying so.roost read --turn N reads one earlier turn. N counts from the first
turn; -N counts back from the newest, so -1 is the newest. The last 100
turns per pane are kept (ROOST_RECORD_KEEP).roost read %N prints that pane's last reply,
with a note saying the pane is gone. It works by pane id, on the same server
boot that wrote it.roost forget deletes kept replies: roost forget TGT for one pane,
--gone for every pane that is closed or whose server has stopped, --all
for all of them. A closed pane's replies also delete themselves 30 days
after its last one (ROOST_RECORD_DAYS).--json gained turn and source on roost read, so a program can tell
which turn it got and whether it came from the kept file or the pane. Existing
fields are unchanged.roost read prints a kept file only while the pane still holds the reply
that turn was written from. If the pane has moved on, the pane wins and you
get today's output. Nothing kept on disk can override a live pane.$ before a letter or { was stored as \$, so $HOME came back as
\$HOME; from a shell with no UTF-8 locale, newlines, tabs and non-ASCII came
back as _. Where a reply was kept, read now prints the real bytes. Where
none was kept, it prints exactly what it printed before.0700, files 0600.Set ROOST_RECORD_DIR="" and nothing is kept. Set it to a path to keep records
somewhere else. Everything lives under one directory you can delete in one
command.
Full list in docs/known-gaps.md. None of them reports a wrong reply as right โ
where a limit bites, you get today's behaviour.
roost wait-done now spots an agent that died at a shell prompt (#64).
Before, if you started an agent by typing its name in a pane and it then died,
the pane stayed alive, the badge stayed โณ, and wait-done waited for its whole
timeout. It now exits 2 and says the agent died, as it already did when a
pane closes.caffeinate helper that can outlive it by up to about 5 minutes.
Until that helper exits, wait-done behaves as before: it waits, then times
out with exit 1. codex is caught in under a second.Roost can now wire the agents in its own panes, instead of editing your files. Nothing you already have stops working, and you can turn it off at any level.
~/.config/roost/wiring/. That includes an agent you type by
hand, one from roost spawn, and one another agent starts. Nothing outside
roost is affected.
OPENCODE_CONFIG_DIR, which merges with your
own config. Its plugin will not load twice.roost install,
because none of them can add config without moving your login too.roost wiring turns it on and off: roost wiring on, roost wiring off,
roost wiring off -t SESSION, and roost wiring remove.roost doctor reports which wiring state you are in.| scope | how |
|---|---|
| one run | ROOST_NO_SHIM=1 claude |
| one session | roost wiring off -t SESSION |
| the whole server | roost wiring off, or set -g @roost-wiring-enabled off |
| everything | roost wiring remove, then restart the server |
Your own tmux default-command also wins over roost's.
roost install hooks can stay. They name the same commands
as the generated file, so each hook still runs once. roost doctor warns if
they point at a different checkout.claude alias to an absolute path, are in
docs/known-gaps.md.One new feature: output that programs can read. No upgrade step is needed.
--json on roost status, whoami, read, screen, and state (#41).
Every document carries "schema": 1. Without --json, the output and every
exit code are exactly as before.
roost state STATE --json sets the badge as before, then prints what
actually landed, so a script can see a badge that did not stick.--json, a command that fails prints nothing on stdout. The exit
code and the error message are the same as without --json.--json, a blank screen exits 0 with "text": "". Without --json
it still exits 1 for now (#69).roost state STATE --json reports "recorded": false when the badge is set
for a whole window or globally rather than on the pane.wait-done --json is not included yet.docs/known-gaps.md.Two small fixes. No upgrade step is needed.
roost doctor now starts with the roost version (#47). That is the
report people paste into a bug. If the version cannot be read, it says so
and says what failed.roost wait-done no longer loops forever when its timeout is not a whole
number (#66). A value like abc, 1.5 or -5 is now refused at once,
with a message that names the bad value.wait-done is now refused. It used to mean "no
limit". Leaving the timeout out still means no limit.010 is 10 seconds, not 8.Two more fixes to how roost reports an agent's state. One changes an exit code, and one needs a step from you after you upgrade.
roost install. It adds a StopFailure hook to
Claude's settings. Until you do, a turn that fails on an API error still
shows โณ working, and roost doctor says so. Claude hooks need no trust prompt.roost wait-done exits 2 when its target is gone or its agent died (#54).
Before, a pane or window that no longer existed made it exit 0, so a dead
helper looked finished. A script that treats any 0 as "finished" will now see
2 for a dead helper. Exit 0 and 1 keep their meanings: done, and error or
timeout. A pane seen โ
done during the wait that then closes is still 0.roost wait-done exits 1 and names the kind of
error, and roost read prints it.roost wait-done no longer misses a one-shot agent's โ
done. It now
checks every quarter second, because a one-shot pane can close about half a
second after it finishes (#54).wait-done time
out with exit 1. The pane stays alive, so tmux cannot see the death. Tracked
as a follow-up issue.docs/known-gaps.md.Two fixes to how roost reports an agent's state. Both change behaviour, and one needs a step from you after you upgrade.
Interrupt
hook. Answer "Trust all and continue". Until you do, a declined permission
dialog still leaves ๐ blocked, and roost doctor says so.roost install. It adds --notification-hook to the
Notification hook. Without it, a Claude pane does not recover from a
declined dialog.roost send refused the pane with exit 3,
roost wait-done ran to its timeout, and roost read called a current reply
stale.
Interrupt hook moves the pane to ๐ค idle.roost wait-done exits 1 and names the reason, and roost read
prints it.roost doctor names panes that have been ๐ blocked for 10 minutes or more
with no dialog on screen, as "may be stuck". It only reports. It never
changes a badge.Stop with an empty reply. A real dead
turn has not yet been captured live.tests/live/claude-decline-smoke.sh catches that
change when it is run.Notification hook arrives about 6 seconds after the dialog opens.roost wait-done exits 0 on an interrupted turn.docs/known-gaps.md.The first numbered version. There is no earlier versioned history to summarise: this entry marks where versioning starts, not a reconstruction of everything that came before it.
Roost is a tmux wrapper for running and coordinating AI coding agents:
-L roost) with a badge per pane
(๐ฅ error ยท ๐ blocked ยท โณ working ยท โ
done ยท ๐ค idle), driven by hooks for
Claude Code and Codex and by an adapter for opencode, copilot and piup, session, new, spawn, split,
whoami, status, kill) and a status/switcher view that rolls up across
every session on the serversend (typed and verified, not just fired),
read/screen, reply, and wait-done for blocking on another agent's
statessh to run roost against agents on a remote host, driven from hereinstall/update to wire every installed agent (opencode, pi, copilot,
claude, codex) to a checkout, init for first-time setup, and settings
for live theme/glyph/notification changesdoctor for preflight checks and validate for a fuller report a tester
can hand backroost ext โ install an extension from a GitHub repository, pinned to a full
commit SHA, with list, info, verify, update and remove. An extension
adds subcommands; a core command can never be shadowed by one.fleet. The declaration makes intent visible
when you are asked to install; it does not confine what the extension does
once it runs.ROOST_NO_EXT set to any non-empty value,
set -g @roost-ext-enabled off in roost.conf, or roost ext remove.fleet costs your users, and how to install your own work from
a bare repository on your disk before you publish it.