Why not Cursor or VS Code

An agent inside Cursor or VS Code runs as part of a GUI process, so it needs a screen, a logged-in desktop, and someone sitting in front of it. A CLI agent's interface is a stream of characters, which tmux can store whole and reattach on any device. The difference is architectural, not a matter of taste.

You already have Cursor, or VS Code with an agent extension, and it works well. Learning SSH and tmux for the same job pays off in one situation: you are not sitting at the machine.

The difference is architectural, not a preference

An agent inside a GUI IDE is part of that GUI program. It lives in the application's process, its state sits in that window's memory, and its output is painted onto a canvas. That is why it needs a screen, a logged-in desktop session, and a person in front of it. Close the window and the agent ends with it. Nobody overlooked anything: the agent grew out of that process.

A CLI agent's interface is a byte stream: characters in, characters out, and nothing graphical anywhere along the way. A stream like that can be attached to, detached from, and attached again. tmux does the bookkeeping, because an 80×24 matrix of characters can be stored whole and redrawn onto any screen: your laptop, your phone, a friend's iPad. Changing devices loses nothing, because what changed hands was only ever characters.

That is the whole reason a CLI agent works remotely: a canvas of pixels cannot be serialised and reattached, and a matrix of characters can. It is a claim about capability, not about who prefers keyboards.

What happens when you close the laptop mid-task?

Suppose you hand the agent a large refactor at the end of the working day. It needs twenty minutes at least, and you are leaving now.

Cursor left open tmux + Claude Code
Close the laptop Agent stops Agent keeps running
Two hours later Open it, context is gone, start again Open your phone, it's finished

Nothing in the right-hand column depends on how clever the agent is. That session never lived on your laptop. It lives on the machine that was never switched off, and your laptop was attached to it for a while. Closing the lid ended the connection, and the work carried on without you.

Cursor has cloud background agents now, and those do keep running after you close the laptop. What keeps running is a copy inside Cursor's own remote sandbox, not the agent on your machine, which puts them with the browser agents and Codespaces discussed elsewhere on this site. The left-hand column still describes what happens to the agent on your machine.

"Couldn't you just use remote desktop?"

This is the most common objection, and in theory it is airtight. The desktop is still running on that machine. VNC back into it and Cursor is still open, so the problem looks solved.

In practice the two ship different things. VNC sends pixels. SSH sends characters. One full screen update is hundreds of kilobytes to a few megabytes of image data, and the same screen as characters is a few kilobytes of text, a gap of roughly three orders of magnitude.

You hit that gap on ordinary days. On a train, in a lift, anywhere you are down to one bar, VNC turns into a slideshow and a single scroll takes three seconds to redraw. SSH characters arrive instantly on the same connection.

Even with bandwidth to spare you are still facing a desktop UI built for a mouse and a 1440p display, crammed onto a six-inch touchscreen. Hitting a menu item means zoom, aim, tap. An interface nobody designed for touch does not get easier just because the connection is fast.

At your desk the IDE is often the better tool

An IDE is not the wrong tool, and at your desk it is often the better one: go-to-definition, refactoring, a debugger, none of which work over a phone connection. An IDE suits "you are here and you are driving". A CLI agent plus remote access suits "it is running and you are checking in". Use both if you can: the IDE on the Mac while you are at the desk, and Agentmux to rejoin the same agent on the same project once you have left it.

Agentmux is not trying to replace your IDE. It replaces the part where you sit in a chair and wait. Then you put the phone in your pocket, the signal drops in the tunnel, and what happens to that session is a problem of its own.