Deep Dive · Developer Tooling

Rex and the Local-First Illusion: Make the Remote Machine Stop Announcing Itself

A dev server bound to localhost on a Mac Studio four hundred kilometres away, opened by clicking a link like any other. A file dragged from Finder into a chat window on the other machine. Seven minutes of demos built on one design rule: if the product ever shows you a choice between "local" and "cloud", it has failed.

Rex remote demo — video thumbnail
Video: Mitchell Hashimoto 7:07 16 November 2026
Rex Superlogical port forwarding remote development

🎬 What this is 0:00

A first-party demo of two features in Rex, the terminal multiplexer from Mitchell Hashimoto's company Superlogical. The session is on a Mac Studio that is not in the building — "over the internet, I promise" — and everything that follows is about making that fact invisible.

BackgroundDetail
CompanySuperlogical, announced July 2026 — HashiCorp and Ghostty's author, with Jack Pearkes, Alasdair Monk and Hector Simpson
ProductRex: a terminal multiplexer built on libghostty, positioned as "the multiplexer for all work"
StatusInvite-only public testing since 5 October 2026, macOS app first; server also on Linux and FreeBSD
CommercialsFree and "will always be free", no account, self-hostable
Remote accessBridged with Tailscale, off by default, and both ends need Rex
Read this for what it is: a seven-minute demo with a couple of thousand views, of beta software, from the person who built it. The architecture it reveals is worth writing about; the claim that any of it is finished is not being made, and should not be read in.

🧭 The design rule 0:06

"The moment any UI shows a selector between local and cloud, the product has failed. The lines should blur."
Where you might be workingWhat the tool wants you to feel
Your laptopLocal
A VM or container on the same machineLocal
A sandbox providerLocal
Production infrastructureAlso local
A home labAlso local
He separates the two halves of "feels local" explicitly, and the distinction is the useful part: performance (typing has to be responsive) and capability (the things that usually break when you are remote must work). This demo is about capability. Performance was already solved — responsiveness over a remote connection is Rex's oldest claim — so the remaining gap between local and remote is almost entirely about the small frictions nobody counts.

🔌 Port forwarding, three ways 1:15

A static docs site, a dev server on localhost:5173 on the remote machine, and the sentence that contains the whole feature: "it's listing on localhost and this is localhost on the Mac Studio — you even have to think about that."

PathWhat happens
Click the link the program printsRex sees the URL, establishes the tunnel, opens it locally. First click takes a moment to bring the tunnel up; after that it is already there
Command paletteShows the existing forward — localhost:5173 to the Mac Studio — and how many active connections use it
CLIrex fwd ls lists the same forwards from a terminal
Copy and paste the URL into a browserFails — the tunnel exists only while Rex is tracking it, which is exactly the behaviour that distinguishes this from magic
The failing copy-paste is the most informative moment in the video. It proves the feature is not a hidden global port proxy: the forward is created on demand, per target, and its lifetime is tied to the thing that opened it. That is a much narrower — and safer — mechanism than "everything listening on the remote box appears locally", which is what several viewers assume in the replies.

He then forwards a second port manually (3000), and it works the same way: name the port, get a tunnel block, click, connected.

🔁 What it replaces 3:50

The documented command is explicit about the analogy: rex forward new (-L|-R) [bind:]port:host:hostport forwards TCP connections through a Rex server, "like ssh -L and ssh -R".

Capabilityssh port forwardingRex
Local and remote forwardsYesYes, same flags
Multiple forwards from one processMultiple -L flagsMultiple flags, shared lifetime
Created by clicking a printed URLNoYes — on demand, per target
Knows which program is listeningNoYes: rex forward open finds the ports of programs attached to a terminal, and lists them if there are several
Visible as a first-class objectA process you forgetA tunnel block in the session, listed in the palette and the CLI
The innovation is not the tunnel, it is the bookkeeping. ssh has been able to do this since forever; what it cannot do is notice that the thing you just ran is now listening, match it to the URL in your scrollback, bring a forward up under a name you can find later, and tear it down with the block. That is the whole difference between a capability and a behaviour.

🧱 Blocks 3:14

Everything in a Rex session is a block with an ID and a creator name — terminal blocks, tunnel blocks, and blocks contributed by plugins.

Block typeExample identifier
Terminalcom.superlogical.terminal
Tunnel (a forward)A block created by rex forward
Plugin-providedWhatever the plugin registers — the model is documented as extensible
A block is a handle, and handles are what make automation possible. Because every pane, forward and plugin surface has an addressable identity, the CLI can address it (rex block), Lua can react to it (ctx.block_id), and an agent can be told to do something to "the block running the dev server". Most terminal tools give you a window number and a prayer; this is the foundation the rest of the demo stands on.

⚙️ The plumbing is the point 3:29

He then does something most product demos avoid: shows the API underneath the magic, twice.

DemonstratedWhat it means
rex block call against a block ID, calling a ports methodLive introspection: the terminal's listening ports are queryable, and the answer is empty until the dev server starts
Run the same call again after starting the serverNow reports 5173 — the event and the query agree
A port change eventScripts can wait on it and react, and it names the process that caused the change
Lua throughoutThe config is init.lua; scripts run with rex do; handlers register with rex.on and rex.wait
Naming the process that opened the port is the detail that makes this feel designed rather than assembled. "A port appeared" is a fact; "your dev server opened 5173" is an answer to the question you actually have when a forward stops working. The docs back the general shape: rex events streams events, Lua can keep a script running and react to changes, and Rex runs a full Lua 5.1 standard library so a handler can do real work.

📡 Events, and one gap 4:01

The published events reference documents session events, terminal events and server events — block_closed, terminal.pwd_changed, terminal.progress_report, terminal.program_status_changed, terminal.clipboard_written, session_created and more.

Claim in the videoStatus
"We emit an event called port change"Not in the events reference as published — the closest documented behaviour is rex forward open listing a terminal's listening ports
Scripts can wait on events and reactDocumented: rex.on / rex.wait, and rex events from the CLI
Events carry the block ID and creatorDocumented for block events
This is a documentation gap, not a contradiction. Beta docs lag the binary routinely, and he may be describing an event that ships before it is written up. But if you are planning to build on a port-change event today, check it against your own build rather than the reference — the reference does not mention it.

📎 Drag, drop, copy, paste 4:36

The second feature, and the one with the clearest user story.

StepWhat Rex does
You drag a photo from Finder into a chat inside a remote sessionDoes nothing on its own: the path is local and the program on the other machine cannot open it
Rex notices the session is remoteDetects remote versus local — and does none of this for local sessions
UploadTransfers the file to a safe location and pastes a path that works on the remote side
ClipboardSimulates clipboard and path handling so drag, drop and paste behave the same
Reverse directionSupported; and rex copy / rex cp for arbitrary machine-to-machine copies is coming
"Everyone has done this with their baby's first remote development setup — you drag and drop a file or you copy and paste a file and it doesn't work."
The framing is precise: this is not a file transfer feature, it is a semantic gap feature. A drag-and-drop is an OS-level promise that the target can read a path; across machines the promise is false, and every existing tool either breaks the promise or makes you think about a staging directory. Rex's answer — upload, choose a safe location, and rewrite the path — is the same trick as the port forward: make the remote side look like the local side to the thing that cares.

🤖 The agent is the remote machine's user 6:29

Mid-demo he picks a model to answer "what is this a picture of?" — passing on the expensive ones as overkill — and later says the whole surface is exposed to agents.

CapabilityHow it is exposed
Port forwardsIncluded in the agent skill, so an agent can be asked to set one up
Everything elseCLI verbs that take a block and return structured output, which is what an agent needs
Installation of the hooksA one-time skill setup command wires the integration for supported agents
This is the strategic argument hiding in a demo about copy-paste. If coding agents run on remote machines, then every local-versus-remote friction is now something an agent hits too — and an agent cannot work around a broken drag-and-drop by opening a second terminal. Hashimoto's stated goal of a "multiplexer for all work" only makes sense if the remote side is addressable by programs, which is why the block API and Lua events exist in the same release as the friendly features.

🔐 The question the demo does not ask 2:30

The most useful sceptical reaction to this demo is also the obvious one, and it appears in the replies within hours: is the forwarding opt-in per port, or does anything listening on the remote box show up locally — including the debug server you forgot was bound to 0.0.0.0?

EvidenceReading
A copied URL does not work until Rex has opened itForwards are created on demand, not globally
rex forward new binds to 127.0.0.1 by default; * is opt-inNot exposed to the network unless you say so
Each forward is a block with the lifetime of its processVisible and killable, unlike a stray ssh background process
Remote access itselfBridged by Tailscale, off by default; both ends need Rex
The residual risk is not the tunnel, it is the convenience. A tool that opens a working URL when you click a link trains you to click links printed by programs you have not read — which is fine for your own dev server and less fine when the output came from someone else's code. The mitigations that matter are the ones already in the design: loopback binding by default, per-target forwards, and blocks you can see. Keep them, and do not ask for a mode that forwards everything.

📋 What is actually shipped 0:00

ItemStatus
Responsive remote sessionsShipping since the start of the beta
Automatic port forwarding, palette and CLIDemonstrated
Drag/drop and clipboard bridging for remote sessionsDemonstrated, both directions
rex block call, Lua events, block addressingDemonstrated and documented
rex copy / rex cpAnnounced as coming, not in this demo
macOS appAvailable to testers
Linux and FreeBSD servers; Windows server behind a roleAvailable
iOS, Linux and Windows clientsAt varying stages of readiness
tmux compatibility, copy modeNot there; nothing ports over from tmux config
Free, self-hostable, no account is worth stating plainly because it is unusual for a product with a company behind it — and because it removes the objection that usually comes with remote-access tooling: that your sessions route through someone's cloud. The stated plan is that Rex stays free and that the company's revenue comes from what it builds next on the same foundation.

✅ Claims checked

ClaimVerdictEvidence
Rex is a product of Superlogical, Mitchell Hashimoto's companyCorrectCompany announced July 2026; Rex in public testing since October 2026
Remote sessions are responsiveConsistent with the product's original claimPerformance was the first thing Rex advertised
Clicking a printed localhost link opens the remote serviceDemonstratedBacked by rex forward open, which finds the ports of programs attached to a terminal
A pasted URL does not work beforehandDemonstrated, and informativeForwards are created per target, not globally
rex fwd ls lists forwardsCorrectDocumented forwarding commands, including -L/-R flags
Forwards behave like ssh -L and -RStated by the documentation itselfDefault bind is loopback; * is explicit
Everything is a block with an ID, and blocks are addressableCorrectBlock events carry block_id and creator names such as com.superlogical.terminal
rex block call can query a terminal's portsDemonstratedReturns nothing before the server starts, then reports the port
A port change event existsUnverifiedThe published events reference does not list one
Scripting is Lua, with the full 5.1 standard libraryCorrectConfig is init.lua; rex.on/rex.wait; rex do runs scripts
Drag and drop of a file into a remote session worksDemonstratedDetects remote, uploads to a safe location, pastes a valid path
Download and reverse direction supportedStatedrex copy/cp announced as coming
Agents can drive the same surfaceCorrectDocumented agent skill; CLI verbs returning structured output
Free, no account, self-hostableCorrect as announcedSuperlogical's own public-testing post

Basis note. Built from the full 7:07 recording and checked against the published Rex documentation — CLI reference, events reference and the forward commands — plus Superlogical's launch and public-testing posts. The one claim that does not check out against the docs is the port-change event, which is labelled rather than repeated. Beta software changes; treat the version numbers as of 16 November.

🔑 Key takeaways

  • "Feels local" splits into performance and capability, and performance was already solved. Everything in this demo is the second half.
  • Never show a local/cloud selector is a design rule with teeth: it forbids the UI that would make the problem easy to explain.
  • The tunnel is ssh -L; the innovation is bookkeeping. Noticing that a program is listening, matching it to the URL you saw, and tearing it down with its block.
  • Forwards are created per target, not globally — which is why a pasted URL fails and a clicked link works. That default is a security property.
  • Blocks are handles. Addressable panes, forwards and plugin surfaces are what make the CLI, Lua and agents able to act on "the thing running the dev server".
  • Naming the process that opened a port turns a fact into an answer. Small touch, large difference when something breaks.
  • The plumbing ships with the polish: rex block call, Lua events and a queryable API in the same release as drag-and-drop.
  • Clipboard bridging is a semantic-gap fix, not a file transfer: upload, choose a safe location, rewrite the path so the remote side keeps the OS's promise.
  • The agent angle is the strategy: if agents run remotely, they hit the same frictions, and they cannot work around them by opening another terminal.
  • Convenience is the residual risk, not the tunnel: clicking URLs printed by code you did not read is the habit a tool like this trains.
  • Loopback-by-default, per-target forwards, visible blocks are the three properties to keep — and the mode that forwards everything is the one not to ask for.
  • Free and self-hostable removes the usual objection to remote-access tooling: nobody else's cloud in the path.
  • Docs lag betas: the port-change event in the demo is not in the events reference yet, so verify against your build.
  • Nothing ports over from tmux, and copy mode is still missing — a demo of the future is not yet a drop-in for the present.

🔗 Resources

Basis note. First-party demo of beta software, so the article separates what was shown from what is documented and what is merely promised. The security section is the article's own analysis, driven by the failure the demo itself displays — a pasted URL that does not work — rather than by claims made on screen.

⏱ Timestamp index

0:00Demo time
0:06Make everything feel local
0:38Performance versus capability
0:50A Mac Studio over the internet
1:15Starting a dev server on the remote machine
1:40Copying the URL fails
1:48Clicking it works
2:05What a forwarded port actually is
2:29The command palette view
2:43rex fwd ls
2:54Forwarding a second port manually
3:14Events, and the block API
3:29rex block call against a block
3:56The port appears once the server runs
4:01The port-change event, and which process caused it
4:13Lua scripts waiting on events
4:36Drag and drop, copy and paste
4:57Baby's first remote development setup
5:31The photo, and the model that reads it
5:44Remote detection and upload to a safe location
6:04Simulating clipboard and paths
6:15Downloads, and rex cp coming
6:29Agents can set all of this up
6:39Network and file transfers are the two frictions
☰ View all