A deep dive into Rex Superlogical, the company founded by Mitchell Hashimoto, is testing Rex, a GPU-accelerated terminal emulator and persistent multiplexer that runs a background Rex Server to manage shells, tabs and layouts across macOS, Linux, FreeBSD, Windows and iOS clients. The macOS preview (0.1.0-preview.37, bundled with server and CLI 0.1.0-preview.25) and Rex for iOS (0.1.1) were tested over a built-in Tailscale server, with Lua 5.1 scripting, a JSON CLI and OSC 7501/7577 status protocols for external coding agents such as Claude Code and Codex. Rex is invite-only and uses libghostty, the MIT-licensed rendering core from Ghostty, but ships no built-in AI chat or model provider. A deep dive into Rex By Flavio https://flaviocopes.com/about/ Tagged: AI https://flaviocopes.com/tags/ai/ Rex from Superlogical: client-server architecture, libghostty, CLI automation, Lua scripting, OSC 7501 and OSC 7577 protocols, agent skills, iOS, and remote servers. Rex https://www.superlogical.com/ is a terminal application and built-in multiplexer from Superlogical, the new company founded by Mitchell Hashimoto. If you know Hashimoto, you know Ghostty https://flaviocopes.com/ghostty/ , Terraform, Vagrant, Vault. With Superlogical, he teamed up with Jack Pearkes HashiCorp’s first employee, and former VP of Engineering , Alasdair Monk former Head of Experience at Poolside, and VP of Design at Vercel , and Hector Simpson formerly at Poolside, Vercel, and HashiCorp . They have a very ambitious goal. They describe Rex as “the multiplexer for all work”, a single persistent session layer that bridges your laptop, remote Linux or FreeBSD servers, Windows machines, your iPhone, background jobs, and AI coding agents. Rex is currently in invite-only public testing. I installed the macOS preview 0.1.0-preview.37 , bundled with server and CLI 0.1.0-preview.25 on my MacBook Pro, enabled its built-in Tailscale server, paired Rex for iOS 0.1.1 on my iPhone over QR code, and ran real sessions, CLI commands, Lua configs, and custom terminal status sequences across both devices. Here is everything Rex does today, how its architecture works under the hood, and where it fits alongside Ghostty https://flaviocopes.com/ghostty/ , tmux https://flaviocopes.com/tmux/ and T3 Code https://flaviocopes.com/t3-code/ . What is Rex, and how is it different from Ghostty and tmux? Rex is a GPU-accelerated terminal emulator and a persistent multiplexer, all in one. With a traditional setup, you open a terminal emulator like Ghostty https://flaviocopes.com/ghostty/ , and then you run tmux https://flaviocopes.com/tmux/ inside it to have persistent sessions. It works, but you have 2 layers on top of each other fighting for scrollback, text selection, mouse events, key bindings, and more. Rex removes that middle layer by putting a background Rex Server in charge of your shells, processes, tabs, and layouts. The Rex desktop and mobile apps are native clients that attach to that server. Close the macOS app and your programs keep running. Open Rex on your iPhone over Tailscale https://flaviocopes.com/tailscale/ and you see the same live session. One common point of confusion is how Rex relates to Ghostty, because they are separate products. Ghostty is an independent, open-source terminal emulator, maintained as a nonprofit project. Rex is a commercial product from Superlogical, and it uses libghostty , the MIT-licensed rendering and terminal emulation core extracted from Ghostty. If you already like Ghostty’s text rendering and speed, Rex will feel familiar. The difference is all the stuff that surrounds the terminal grid: persistent servers, cross-device sync, a scriptable JSON CLI, Lua automation, and protocols built for coding agents. Rex also does not ship a built-in AI chat sidebar or model provider. Instead, it gives external coding agents like Claude Code https://flaviocopes.com/claude-code-guide/ , Codex https://flaviocopes.com/codex/ , OpenCode https://flaviocopes.com/opencode/ , Pi https://flaviocopes.com/pi/ and others first-class tools to drive the terminal and report their live status. | Tool | Core role | Persistent server | Native mobile client | Built-in AI UI | Scripting & config | |---|---|---|---|---|---| | Rex | Terminal + multiplexer | Yes macOS, Linux, FreeBSD, Windows | Yes iOS/iPadOS beta | No agent skill + OSC 7501/7577 | Lua 5.1, JSON CLI, control API | | Ghostty https://flaviocopes.com/ghostty/ | Standalone terminal emulator | No | No | No | Key-value config | | tmux https://flaviocopes.com/tmux/ | Terminal multiplexer inside a terminal | Yes Unix | No via SSH apps | No | tmux config + CLI | | Zellij https://flaviocopes.com/herdr-vs-tmux-zellij/ | Terminal multiplexer inside a terminal | Yes Unix | No via SSH apps | No | KDL layouts + Wasm plugins | | cmux https://flaviocopes.com/cmux/ | Native macOS agent terminal | Local app state | No | Browser + agent notifications | CLI + app shortcuts | | T3 Code https://flaviocopes.com/t3-code/ | Agent control plane | Yes local/remote server | Web / mobile UI | Yes chat, diffs, PR guides | Providers, workflows, MCP | Superlogical lays out a three-step roadmap on its homepage: 1. Build an incredible multiplexer. 2. Make everything in it composable. 3. Make it safe and operable in production. Right now Rex is in the middle of step 1, and we can already see the foundations of step 2 in the blocks system and the control API. How the client-server architecture works Every piece of state in Rex lives on a Rex Server , not in the app window. When you open Rex on macOS, the app launches and manages a local server automatically, communicating over a Unix domain socket ~/Library/Application Support/rex/server.sock . When you connect to a Linux VPS or a Mac mini at home, the same client attaches to a remote Rex Server over SSH or Tailscale. Because the server owns the state, closing the Rex window or quitting the Mac app completely does not interrupt anything. When I quit Rex during testing and reopened it a moment later, all 3 tabs, all 5 split panes and the processes running inside them reattached, with their scrollback intact. Rex vocabulary compared to tmux If you used tmux https://flaviocopes.com/tmux/ , the mental model maps cleanly, although Rex uses its own names across the UI and the CLI. | Rex term | ID prefix | What it is | Closest tmux equivalent | |---|---|---|---| | Server | host / socket | Background process that owns all sessions and processes | tmux server | | Session | session: