Short answer: use tmux when you need a session that works on any server from any SSH client. Use Herdr when most of what runs in your terminals is coding agents and you want each one marked as working, blocked, or done. Try Rex if you are on macOS, like native apps built on Ghostty's terminal engine, and are comfortable joining a closed beta that is changing week to week.
They overlap, but they are not the same kind of tool. tmux and Herdr TUI run inside the terminal you already use. Rex is the terminal application, with its own server behind it. That one architectural difference explains most of the trade-offs below.
Research checked November 24, 2026, against official documentation, release notes, and published early-tester feedback. Rex is in beta and Herdr is pre-1.0, so verify platform details on the linked pages before you migrate.
Rex vs Herdr vs tmux at a glance
| tmux | Herdr (TUI) | Rex (Superlogical) | |
|---|---|---|---|
| What it is | General-purpose terminal multiplexer | Terminal multiplexer built around coding agents | Native terminal app + multiplexer server |
| Where the UI runs | Inside any terminal emulator | Inside any terminal emulator | Its own app (macOS today; iOS and Windows apps for enrolled testers) |
| Who owns the terminals | tmux server | Herdr's own background server | Rex server (local or remote) |
| Coding-agent status | None built in | Screen detection for 20+ agents, plus integrations and OSC 7501 reports | Shows status that programs report through OSC 7501 |
| Use from a plain SSH client | Yes: tmux attach |
Yes: run herdr on the host |
Partly: the rex CLI can drive sessions; the full UI needs a Rex client |
| Remote model | SSH, then attach | Run on the host, or herdr --remote from a local TUI |
Rex clients connect to Rex servers over SSH, Tailscale, or other listeners |
| Platforms | Linux, macOS, BSDs (Windows via WSL) | macOS, Linux, native Windows | macOS app; Linux, FreeBSD, and Windows servers in testing |
| License / price | Open source (ISC), free | Open source (Apache-2.0), free | Free, no account; not published as open source |
| Maturity | Decades old, stable | Pre-1.0 (v0.9.5) | Beta since October 2026 |
| Config | ~/.tmux.conf |
TOML | Lua (init.lua) |
Sources: Rex installation, Rex remote access, Rex Program Status Protocol, Herdr agent detection, Herdr releases, and Bitdoze's 2026 multiplexer roundup.
Two categories: multiplexers in a terminal vs terminals that multiplex
Bitdoze's roundup of seven multiplexers splits the field into two camps, and that framing is the clearest way to compare these three tools:
- In-terminal multiplexers such as tmux, Zellij, and Herdr TUI. They run inside Ghostty, iTerm2, Windows Terminal, or a phone SSH app. Because they draw with plain terminal output, they look and behave the same everywhere.
- Terminal-as-multiplexer apps such as Rex. The app is the terminal. A background server owns the processes, and the app renders them natively. In Bitdoze's words, "Rex is the terminal application."
Native rendering lets Rex do what a text UI can't: smooth native tabs and splits, platform keyboard handling, and Ghostty-quality rendering. The cost is reach. With tmux or Herdr, any terminal can be your client. With Rex, the full experience needs a Rex client on every device you use.
What is Rex, and what is available today?
Rex is the first product from Superlogical, the company founded by Ghostty creator Mitchell Hashimoto. Superlogical describes it as a multiplexer where work lives in long-lived sessions: "close the application, reconnect from another device, and pick up exactly where you left off." Hashimoto's announcement explains that it builds on the open, MIT-licensed libghostty components. For the background, see our earlier explainer, What Is Superlogical?.
The rollout has widened since public testing opened on October 5, when invitations covered only the macOS app. The installation page now says:
- The macOS app and the Linux, FreeBSD, and Windows servers are available to all testers.
- The iOS and Windows apps are available to testers who enroll through the Discord.
- A Linux client exists but is not yet part of testing.
Superlogical says Rex "is and will always be free," with no account required and self-hosting supported. It has not said Rex itself will be open source. Its privacy page says Rex collects no telemetry, and the server and CLI make no outbound connections by default.
Rex vs Herdr: the core differences
1. Agent awareness: detection vs reporting
This is the difference that matters most for AI coding workflows.
Herdr TUI watches agents for you. It reads the bottom of each pane and matches it against per-agent detection manifests. Each agent is then marked idle, working, or blocked, and finished agents stay flagged as done until you look at them. The agent docs list more than 20 recognized agents, including Claude Code, Codex, Copilot CLI, Cursor Agent, OpenCode, Gemini CLI, Amp, and Droid. Integrations (herdr integration install <agent>) can make the states more precise.
Rex shows what programs tell it. Its Program Status Protocol is an OSC 7501 escape sequence with states such as working, done, blocked (permission, question, auth), and error. Sessions with blocked or finished work get an indicator in the session picker, and unfocused tabs show a spinner. Rex does not scrape agent output, so an agent that doesn't emit OSC 7501 shows no state.
Notably, herdr-core and the Herdr app also rely on OSC 7501 rather than screen scraping. If agent CLIs adopt that protocol, the two ecosystems may converge on the same status signal. Until they do, Herdr TUI is the tool that works with today's agents unchanged.
2. Interface: TUI vs native app
Herdr TUI is a single Rust binary that runs in whatever terminal you already use. Rex replaces that terminal. Rex also ships a built-in agent skill (rex skill setup) so Claude Code or Codex can open tabs, split panes, and read another terminal's screen. Herdr offers similar orchestration through its socket API and CLI.
3. Remote work
- Herdr: run
herdron the server over SSH, tmux-style. Or, since v0.9, add machines to a local TUI and useherdr --remote workbox, which reuses your OpenSSH configuration. See connecting machines. - Rex: install the Rex server on the remote host and add it in the Mac app with Add Remote Host…. The remote access guide recommends SSH ("nothing listens on the network but sshd"). It also documents built-in Tailscale (
rex server start --tailscale) and tailnet listeners. From a shell, therexCLI can reach a server directly withrex -S ssh://user@host.
4. Openness and maturity
Herdr is Apache-2.0 open source. The repository has more than 50k GitHub stars, and the current TUI release is v0.9.5 (October 14, 2026). Rex is free but closed source and in beta, and its platform list changed within weeks of launch. Plan for that churn if you adopt either tool early.
What early Rex testers are saying
Our reading of public feedback is mixed. Most testers like the design but are unsure about the workflow. One early tester summed up a common view: Rex is beautiful, but they couldn't find a strong reason yet to prefer it over Herdr. Their main objection was architectural:
- A full GUI (such as a dedicated agent app) gives rich visuals and interactions.
- A full TUI (tmux, Herdr) gives keyboard-only control that works the same from any SSH client.
- Rex sits in between. In their view, if you don't have Rex on a device, you are cut off from your own sessions.
The rex CLI weakens that concern somewhat, because it can send input, capture screens, and manage sessions from a plain shell. The core point still holds, though. Interactive work inside a Rex session is designed around Rex clients, not around ssh plus any terminal.
The same tester worried that the new Herdr app is moving in the same GUI direction. That app is built on herdr-core, a separate runtime. Per the official FAQ, it does not share agents with Herdr TUI. The TUI is still maintained, and the tester's suggestion, a TUI client for herdr-core, is exactly the kind of flexibility many terminal users want. See Herdr TUI vs herdr-core for how the two runtimes differ today.
Rex vs tmux, and Ghostty vs Rex
Rex vs tmux: tmux needs nothing new installed, works on servers you don't control, and its sessions outlive SSH disconnects. But it has no idea whether the program in a pane is an agent waiting for approval. Rex gives you native rendering and status indicators, but it needs a Rex server on the host and a Rex client to use fully. If you only SSH into shared or unmanaged machines, tmux still wins.
Ghostty vs Rex: they are not competitors. Ghostty is a terminal emulator. Rex is a multiplexer product from the same creator, built on the shared libghostty foundation. Ghostty continues as an independent nonprofit project. You can keep using Ghostty with tmux or Herdr, or use Rex as your terminal.
Herdr vs tmux in one paragraph
Both run in any terminal and survive disconnects. tmux is universal and agent-blind. Herdr adds a sidebar of agent states, workspaces per project, notifications when an agent finishes or needs approval, and remote machines in one client. For the deeper comparison, see How Herdr Works vs tmux.
Can you combine them?
- Herdr inside tmux: works. Herdr can run with tmux as the outer layer.
- tmux inside a Herdr pane: possible, but Herdr then sees only
tmuxas the pane's process, so agents inside it can't report status. Herdr's docs recommend excluding Herdr panes from shell rules that auto-start tmux (checkHERDR_ENV). - Herdr or tmux inside Rex: Rex is meant to replace your terminal, so in principle you can run a TUI multiplexer in a Rex block. You then have two multiplexer layers, and Rex's status indicators only see what the outer program reports. We haven't found documentation that recommends this setup.
Bitdoze gives the same rule of thumb: keep one multiplexer layer directly above your agents. Nesting is usually where status detection breaks.
Which should you choose?
| Your situation | Pick |
|---|---|
| SSH into many servers you don't administer | tmux |
| 3+ coding agents on one machine, want to know which is blocked | Herdr TUI |
| Agents across a laptop and remote boxes, keyboard-first | Herdr TUI with --remote / saved machines |
| macOS-only, want a native app and Ghostty-quality rendering | Rex (beta) |
| Native Windows host | Herdr (native Windows support) or psmux; Rex's Windows server is in testing |
| Need open source | tmux or Herdr |
| Must check agents from a phone today | tmux or Herdr over SSH (see below) |
Checking on agents from your phone
Phones are where the TUI-vs-app question becomes concrete. The Rex iOS app is limited to enrolled testers. tmux and Herdr, by contrast, are already reachable from any mobile SSH client, because the session lives on your development machine:
ssh you@dev-box # over Tailscale if you're away from home
herdr # reattach to the Herdr workspace, or:
tmux attach -t agents
Redock is built for this path. It reconnects to tmux sessions, and its Herdr TUI integration includes the workspace panel, pane switching, and a Chat View for answering a blocked agent without fighting a phone keyboard. See Using Herdr inside Redock and Run Claude Code from your phone with SSH, Tailscale, and tmux.
For Rex, Redock can open an SSH terminal to a host where the rex CLI is installed, so you can run commands like rex session or rex capture there. That is plain terminal access, not native Rex integration. We're following Rex's program-status and remote-access design closely as it moves toward a stable release.
FAQ
Is Rex better than tmux?
For a macOS user who wants a native app with status indicators, Rex can feel better. For servers you don't control, mixed operating systems, or any-SSH-client access, tmux is still more practical. Rex is also in beta, while tmux has been stable for many years.
Rex vs Herdr: which is better for AI coding agents?
Today, Herdr TUI. It recognizes 20+ agent CLIs without changes to them and runs in any terminal. Rex shows agent state only when a program reports it via OSC 7501, and its full UI needs a Rex client.
Does Rex work on Linux, Windows, or iOS?
When checked, the Linux, FreeBSD, and Windows servers were available to all testers. The iOS and Windows apps were open to testers who enroll, and a Linux client was not yet in testing. Check the installation page for the latest status.
Is Rex open source?
No public open-source license has been announced for Rex. Superlogical says Rex is free, needs no account, and supports self-hosting. Herdr (Apache-2.0) and tmux (ISC) are open source.
Can I use Rex from a regular SSH client?
You can use the rex CLI from any shell to run, send to, capture, and manage sessions. The interactive tabbed UI is designed for Rex clients, so plain SSH is not a full substitute the way tmux attach is.
Does Herdr replace tmux?
For agent-heavy work, usually yes: Herdr provides persistent sessions, panes, and remote attach, plus agent states. Keep tmux for servers where you can't install Herdr. Avoid running agents in tmux inside Herdr, because that hides their status.