Restart your Rex server without losing your place. Rexume brings Claude Code, Codex, Pi, omp, and OpenCode conversations back to their original panes. Results from registered workers still reach the conversation that requested them.
Rex's Program Resume lets an agent or hook report a resume command through OSC 7577. Rexume reads the agent's own session records, so it can reopen a conversation even before the agent adopts the protocol. Conversations Rexume reopens keep the model and effort you last used, and a turn cut short by the restart continues once.
| After a server restart | Program Resume | Rexume |
|---|---|---|
| Reopen agents that report to Rex | Yes | Yes |
| Reopen agents that don't report to Rex | With your own rule | Yes |
| Keep Claude Code's last model and effort | No | Yes |
| Continue an interrupted turn | No | Yes |
| Return worker results to the orchestrator | Out of scope | Yes |
If Program Resume reopens a conversation, Rexume leaves it in place and keeps tracking its worker tasks. Rexume can still continue an interrupted turn there. To have Rexume reopen Claude Code with its last settings, turn off its resume rule in Rex.
A turn cut short by the restart continues once. Finished, cancelled, or waiting conversations reopen without a new turn. Panes you closed stay closed, and the same conversation never opens in two panes.
Conversations come back with the model and effort they last used. If you started Claude Code with --model sonnet and used Opus for your last turn, Rexume brings back Opus, along with your provider choice, permission mode, and supported launch flags. The other agents follow their own rules for permission modes.
The orchestrator does not have to wait on its workers. Rexume saves each registered worker's result and notifies the orchestrator that registered it, which can then prompt the worker again or release it. Rexume closes a disposable worker's pane only if it is still unused.
Install Rexume on the macOS or Linux machine that runs the Rex server, with a recent Rex and rex on PATH. On macOS:
brew install entwining/tap/rexume
rexume installOn Linux, download and verify a static build, or build from source, then run rexume install.
Installation adds runtime hooks, the Claude Code messaging plugin, an agent skill, and a background job, and keeps your other hooks and settings. In Codex, open /hooks and trust rexume report codex. Uninstalling removes the hooks and the job but keeps saved results.
Rex does not restore scrollback, and Rexume does not restart other programs. To reopen a conversation, Rexume types a line into the pane's shell, which can race with your typing.
Claude Code's plugin treats Rexume-tagged messages as your prompts. Another session can forge those tags, and runtime restrictions can hold or drop messages. The usage guide lists every limit.
- Setup: requirements, installing, checking the installation, upgrading, and uninstalling
- Usage: what a restore does, conversation settings, and handing work to workers
- CLI: commands, JSON output, and exit codes
- Design: how one daemon records pane state and coordinates recovery
AGENTS.md lists the checks CI runs. Rexume is released under the MIT License.
