Rex can now resume your programs through a server restart Rex now lets any program resume after a server restart using OSC 7577, a new terminal escape-sequence protocol Rex published today in collaboration with @herdrdev and reviewed by multiple terminal emulator and terminal program authors. Rex ships with built-in support for Claude Code, emitting OSC 7577 in a session start hook, and offers Lua-based configuration to opt in to resume per program by name, path, working directory and command-line flags, or to disable the feature with one line. Rex states that program restart in terminals is fundamentally unsafe and that the security of the mechanism ultimately lies in the terminal emulator. Rex can now resume your programs through a server restart This is based on a brand new terminal protocol we're also publishing today OSC 7577 that we worked on in collaboration with @herdrdev with review from multiple terminal emulator and terminal program authors. Link: superlogical.com/rex/docs/build… This means that ANY program can restart, not just agentic coding tools, and it doesn't require any special integration with any specific terminal or out-of-band protocol. It's plain old terminal escape sequences that are easily implemented by any program Rex is shipping with built-in support for Claude Code to start we emit OSC 7577 in a session start hook , but hope that other programs will adopt this and enable restart. Program restart in terminals is fundamentally unsafe, so a lot of effort was put into making this as safe as possible. Ultimately, the security of this lies in the terminal emulator. For Rex, we have a highly flexible Lua-based configuration to opt-in to resume on a program-by-program basis. You can filter by program name, path, working directory, command-line flags, and more. You can also disable the whole thing with one line.