Every once in a while I send hand picked things I've learned. Kind of like your filter to the tech internet. No spam, I promise!
Share
Rex is Probably The Best Terminal Emulator I’ve Ever Used
Published about 13 hours ago • 6 min read
Rex is Probably The Best Terminal Emulator I’ve Ever Used
This issue is brought to you by:
Stop juggling infrastructure automation tools
Terraform, Ansible, and all your automation in one place. Kestra brings everything together with YAML workflows, built-in monitoring, and the freedom to self-host.
For years, tmux has been the thing I refuse to open a terminal without. Persistent sessions, panes, shortcuts, the whole shabang. Ghostty (the more recent addition) handles the terminal, tmux handles.. everything else.. and I, spend an entirely reasonable amount of time configuring both 😉. Entirely reasonable. Don't check my dotfiles.
Then I got invited to try Rex beta, and for the first time in a long time I'm actually questioning whether that combo stays my daily driver. Not because it has a prettier theme. Although, annoyingly, it DOES look very good.
looks good doesn't it?
Because the terminal, the multiplexer, the remote sessions, and the agent controls are all part of the same thing.
One less thing to attach to
Rex starts with sessions. Not ten unrelated terminal tabs that you have to remember belong to the same project. You open the app, pick a session, and the work lives inside it: tabs, split panes, floating panes, the lot. There's a command palette for finding the things you forgot the shortcuts for - Split a pane, balance the layout, rename something, move things around. I like my keyboard shortcuts, but I also like not opening the documentation every time I forget one (that goes for command palletes as well).
And there's a CLI talking to the same server - list the sessions for example is done with:
rex ls
That is the bit that matters to me. The GUI isn't one world and the automation some miserable second class interface. The same work is accessible from the app, the CLI, and Lua. There are... some downsides to that as well. Similar to cmux (also built on libghostty) you enjoy a beautiful UI, but where Tmux used to draw itself onto the screen, I now have native components. This means that zooming in or out, zooms... just the pane. Not other panes, surely no other sessions, but worst of all, not the native UI. The bar, tabs titles everything that's not the terminal, stays the same. Kind of like zooming into a browser page, where the controls stay the same size.
Close the window. Keep the work!
In the demo, I quit the Mac app, made sure it was actually closed, then opened it again. The sessions were still there, running on the server. That's because Rex is built with a server in the back and a separate client by default. Killing the client doesn't mean killing the server. That is normally the job I give tmux. With Rex, I don't have to remember to start or attach to a separate multiplexer before doing anything worth keeping. Rex also saves session state and can restore saved sessions, but that is not a promise that a running process survives a server crash or a machine reboot. A restored workspace and an uninterrupted process are not the same thing though...
An opnionatede init.lua with
Rex uses Lua for configuration, which immediately makes this more interesting than another collection of keys and values. And AFAIK was only a trait of Wezterm out of the competition so that's a huge plus. You can define bindings, key sequences, and custom actions rather than hoping the exact checkbox you want exists.
I've already started porting my tmux configuration over. Prefix combinations, splits, the things my hands expect to work without asking my brain for permission.
After editing the configuration, check it:
rex config check
Then reload it:
rex config reload
These operate on the server's configuration, so run them on the machine hosting that server. The point isn't that everyone needs to write Lua. You can use the app normally. But if you've spent years making your terminal behave a very specific way, executable configuration is a much better starting point than “please submit a feature request.” Also, with AI, it's becomes quite easy to convert existing plugins to from Tmux bash to Rex's lua: My popular sessionx just got "rexessions" (almost added an `e` before the name but decided I'm an adult).
The agent gets the controls too
Rex comes with an agent skill for opening tabs, splitting panes, reading terminal output, and controlling the workspace. That's extremely convenient if you're building automation around it.
Naturally I tried Pi inside it - Rex picked up the agent and showed activity indicators when I moved to another tab, plus a notification when something needed attention. It wasn't perfect, there's still some lack of connection like, when waiting for user input on Pi - rex doesn't get the proper state and shows it's "working" but again, we're in beta.
Yes, that is Neovim on my iPhone
The remote part is where this stopped feeling like another nice terminal, and honestly, the point where I said to myself "I might just turn Rex on tomorrow instead of Tmux". Rex has built-in Tailscale connectivity, and I got access to the iOS alpha to try the other end of it.
I paired the phone, connected, and there were my sessions. The Pi conversation, the shell, the same work I had on the Mac.
even cmatrix comes through
This isn't “open another SSH session and reconstruct what you were doing.” I'm connecting to the workspace that already exists. I can create, kill, use and continue work on either device pretty much simultaneously.
Is my phone going to become my main development machine? Please, NO. But checking an agent or continuing a session without sitting at the same desk is genuinely useful, and kind of addicting. Especially when the alternative activity involves keeping an eye on someone watching Peppa Pig (IYKYK).
I'm still keeping a list of annoyances
The font scaling bothered me more than it probably should (but it did and still does 😅). Zooming the terminal text didn't scale the surrounding native UI with it, and new panes kept arriving at the configured font size. So I'd fix one view, open another, and be back to the tiny text.
The bigger issue for me was history navigation. I use tmux's keyboard-driven copy mode constantly: move through output, select something, yank it, use it elsewhere. In the build I tested, Rex's search and navigation weren't a replacement for that workflow. That's not a cosmetic preference when your hands do it all day.
edit: after coming back to the same issue and literally trying to BUILD (well, vibe-build) an alternative I just watched Mitchell announcing this future release, so I turned on developer mode with "bleeding edge" updates - and got a new history mode!
And no, Rex isn't open source. Superlogical says the clients and servers will remain free and can be self hosted without an account. If that's a deal breaker for you - it is what it is. But, it's a team I can trust, with promises I choose to believe. I get a better experience, for free, based on the opensource core I already know (libghostty).
So I'm not ready to call it a clean full replacement for my setup yet, but I can definitely say that I'm using it daily and having a real blast. (almost) nothing's missing. But I am interested enough to keep porting it, which is considerably more than I can say about most shiny new terminals.
If your workflow is already held together by a terminal, a multiplexer, remote connections, and a few scripts keeping agents organized, Rex is worth a proper look. Start with one disposable session. Close the client, reconnect, try your actual shortcuts, and see what happens to the habits you depend on. Play around with the native remote connection, honestly, it's so easy to get used to and I'd hate if someone just took it away.
I hope this was valuable! Thank you for reading. Feel free to reply directly with any question or feedback. Have a great weekend!
I Switched to an Open Source Code Reviewer And I'm Not Looking Back This issue is brought to you by: Stop typing. Start talking with Wispr Flow. Your voice is faster than your keyboard. Wispr Flow turns natural speech into polished, ready-to-send text across your favorite apps, without the usual dictation mistakes or endless editing. Try Wispr Flow For Free and Get 1 Month of Wispr Flow Pro (unlimited words): Be honest.. how much of your code are you actually reading?Not the quick glance...
AI Can Write Your Terraform. You Still Own the Blast Radius. This issue is brought to you by: 18 Kubernetes agentic AI security best practices CNCF and Teleport lay out the top cloud-native agentic standards that you should know before you deploy autonomous AI agents in your Kubernetes clusters. Read the full Kubernetes agentic AI blog I can ask an agent to generate a cloud environment and get hundreds of lines of Terraform back in seconds. I promise it's going to be BEAUTIFUL.It also means I...
Stop Using Elasticsearch. Use Postgres Instead This issue is brought to you by: Postgres for sensor and machine data Factories, wells, grids, and fleets run on live machine data. Tiger Data keeps it performant and scalable in one Postgres. Get started with Text Search on TigerData→ Do you still need Elasticsearch? I wanted to test that properly, so I put Postgres in Docker, loaded it with thousands of support tickets, and checked how far the same BM25 relevance search used by dedicated search...