By Nora, Podium team. Disclosure: we build Podium, one of the tools in the table at the end. Everything before that table works with plain tmux and SSH. We ran the tmux commands below on tmux 3.5a. Claude Code and Codex flags come from their official docs, and tool facts from each tool's own site, docs or repository, all checked on 3 Dec 2026. Some tool facts also come from adecomparison.com, a catalog Podium publishes (data on GitHub at madeinorbit/ade-comparison).

Short answer: closing the laptop puts it to sleep, and an agent on a sleeping machine stops working, whether it runs in tmux or not. So run Claude Code or Codex inside tmux on a machine that stays on (a server, a VPS, a desktop at home), one tmux session or window per task, each in its own git worktree. Detach with Ctrl-b d, close the laptop, and reattach later with tmux attach -t <name>. That covers two or three agents well. Past that you start missing things, because tmux can't tell you which agent is waiting for an answer and it's awkward on a phone. That's when the agents' own background modes or an agent manager start to pay off (table below).

If you want the full server setup, with mosh, systemd and phone access, we wrote a separate guide for running agents on a VPS. This post is about the tmux part, and about what happens when you have more agents than you can track.

Why tmux on your laptop isn't enough

tmux keeps a program running when the terminal that started it goes away. It does not keep the machine awake. On a laptop, the lid closes, the machine sleeps, and every process stops until it wakes up.

The agents' own docs say the same. Claude Code's docs on background sessions say sessions "are also preserved when your machine sleeps" and that their processes "resume on wake", and that shutting down stops them. Its Remote Control docs say your computer "has to stay on and the claude process has to keep running". For Codex's phone access, OpenAI's docs say remote access stops when the host computer sleeps.

So the setup is: tmux on a machine that doesn't sleep, and your laptop as one way of reaching it.

Step 1: one tmux session per task, started where the work is

SSH into the machine, then start a named session in the directory the agent should work in:

ssh you@your-server cd ~/code/myapp tmux new -s fix-tests # then run claude or codex inside it 

Detach with Ctrl-b then d. The agent keeps running. List and reattach from any machine:

tmux ls tmux attach -t fix-tests 

A useful shortcut: tmux new -A -s fix-tests attaches if the session exists and creates it if it doesn't. You can put it in the SSH command, so one line gets you back to the agent:

ssh -t you@your-server tmux new -A -s fix-tests 

Claude Code's Remote Control docs recommend the same thing for remote machines: "start it inside tmux or screen to keep the session running after you disconnect from SSH."

Step 2: give each agent its own worktree

Two agents in one checkout overwrite each other's files. A git worktree gives each one its own directory and branch from the same repository. You can start the tmux session in that directory without attaching:

cd ~/code/myapp git worktree add ../myapp-fix-tests -b agent/fix-tests tmux new -d -s fix-tests -c ~/code/myapp-fix-tests claude 

-d starts the session detached and -c sets its working directory. When the task is merged, clean up with tmux kill-session -t fix-tests and git worktree remove ../myapp-fix-tests.

Both CLIs can also create the worktree for you. Claude Code has claude -w feature-auth, and its docs list a --tmux flag that creates a tmux session for that worktree (claude -w feature-auth --tmux). Codex has a --worktree flag that starts a session in a new managed Git worktree.

Step 3: check on agents without attaching

Attaching to each session to see what it's doing gets slow. tmux can print a pane's current screen instead:

tmux capture-pane -p -t fix-tests | tail -20 

And it can type into a session without you attaching, which is enough to answer a yes/no question:

tmux send-keys -t fix-tests "y" Enter 

Read the screen before you send anything, because the keys go to whatever prompt is open at that moment.

If you keep several agents as windows in one session, monitor-silence marks a window in the status bar after it has printed nothing for a number of seconds. A quiet agent is often one waiting for you:

tmux set-option -w -t agents:claude monitor-silence 60 

It is a rough hint. A quiet window might also be an agent thinking through a long step, or one that's finished.

Step 4: come back to a session that ended

If the tmux session is gone, for example after a reboot, the conversation usually isn't. Both CLIs keep transcripts on disk and can pick up where they left off:

claude -c # continue the most recent conversation in this directory claude -r "fix-tests" # resume a session by ID or name (name it with: claude -n fix-tests) codex resume --last # resume the most recent Codex session in this directory 

For jobs that shouldn't stop to ask you anything, both have a non-interactive mode: claude -p "..." and codex exec "...". These also run fine inside tmux, and codex exec resume --last continues the most recent exec session.

What breaks when you run more agents this way

With two or three agents, the steps above are all you need. As the number grows, the same problems come up:

  • No overview: tmux ls lists sessions, not their state. To know which agent is working, done or stuck, you capture or attach to each one.
  • No notifications: nothing tells you an agent asked a question 40 minutes ago. monitor-silence is the closest tmux gets.
  • Worktree bookkeeping: every task means a branch, a worktree, a session name, and cleanup afterwards. Miss one and you have a stale worktree or a session running in the wrong directory.
  • The phone is painful: you can SSH from a phone, but the agents draw full-screen terminal interfaces, phone keyboards lack Ctrl and Esc, and tmux shortcuts need both. Our VPS guide goes into this.
  • Reboots end sessions: tmux doesn't survive a reboot of the server. The transcripts do, so you resume each agent by hand (step 4).

tmux still does its part fine. You're just doing a manager's job by hand on top of it.

Options that go beyond tmux

The agents themselves have added some of this, and a few open-source tools wrap many agents at once. Checked on 3 Dec 2026 against each tool's own docs, site or repository, plus the adecomparison.com data (madeinorbit/ade-comparison, published by Podium).

Option Agents Where agents run Overview of all sessions Tells you when an agent needs you Phone License / price
tmux by hand Any Wherever you start tmux tmux ls, no state No (monitor-silence as a hint) SSH app Free, ISC license
Claude Code agent view + Remote Control Claude only Your machine; it has to stay on claude agents (agent view, research preview) Terminal notification while agent view is open; phone push with Remote Control Claude app on iOS and Android, claude.ai/code Remote Control needs a Pro, Max, Ultra, Team or Enterprise plan; API keys not supported
Codex codex agents + remote connections Codex only Your machine or a remote Codex server; phone access goes through a Mac or Windows host running the ChatGPT desktop app, which has to stay awake codex agents command center Notified when a task completes or needs attention (remote connections) ChatGPT app on iOS and Android Codex CLI is Apache 2.0; needs Codex access in your ChatGPT account
Claude Squad Claude Code, Codex, Gemini, Aider and other CLI agents Local terminal UI built on tmux and worktrees, on whatever machine you run it Yes, one terminal list Not documented in its README No web or phone client Free, AGPL-3.0
Paseo Claude Code, Codex, Copilot, OpenCode, Pi and more A daemon on your machine or a server (headless via npm install -g @getpaseo/cli) Yes Mobile push and desktop notifications (per its source docs) Native iOS and Android apps, web Free, Apache 2.0
Orca Claude Code, Codex and many more Desktop app; SSH hosts; a Remote Orca Server (orca serve on headless Linux) keeps agents running after the laptop sleeps Yes Desktop notifications; push on the phone when an agent finishes iOS and Android companion apps Free, MIT
Podium Claude Code, Codex, Cursor, OpenCode, Grok, Pi A server on your Mac or a Linux machine you own Yes, a Work list of what needs you In the sidebar only; no browser or OS notifications yet /mobile browser view (unsupported); native iOS app in private beta Free, Apache 2.0

All of these use your own agent subscriptions or API keys, so the agent cost comes on top, and so does the server if you want agents running with the laptop closed.

A short way to pick: if all your agents are Claude, try agent view and Remote Control first, since they ship with Claude Code. Same for Codex if you already use the ChatGPT desktop app. If you mix agents, you want one of the open-source managers on a machine that stays on.

Where Podium fits, and where it falls short

Since we build it: Podium runs the agent CLIs you already use in persistent terminals on a machine you own. Each task gets its own branch and worktree, so steps 1 and 2 above happen when you start a task. Closing a browser tab or the laptop doesn't stop the agent on the server. From a terminal, the supervision steps look like this (docs):

podium session status your_session_id # state, phase, changed files podium session read your_session_id --turns 8 # recent transcript podium session send your_session_id \ --text "Run the focused test and attach the result." 

Where it falls short today:

  • It is young. The current release is 0.3.1 (6 Nov 2026) and the repository has 56 stars.
  • There is no managed cloud. Agents run on your Mac or on a Linux server you own, so "running with the laptop closed" means running a server.
  • 0.3.1 shows an agent that needs attention in the sidebar, but sends no browser or OS notifications, so you only see it with Podium open. Claude Code, Codex, Paseo and Orca can all notify a phone; Podium can't yet.
  • Phone support is limited. The /mobile browser view works but is an unsupported compatibility path. A native iOS app is in private beta (TestFlight on request in the Discord), and its public release depends on App Store review.

The VPS guide covers installing it on a server, and the source is on GitHub.

Last verified 3 Dec 2026. These tools change weekly; if something here is out of date, tell us in the comments and we will fix it.

Written with AI assistance and reviewed by the Podium team.