Vibeleaderboard
← All Intel
Intel / post

One tmux session per project: running coding agents from a phone

Source
x.com
Date
@levelsio@levelsio

Yes each of my sites is a Termius server with this kind of start command cd /srv/http/hotelist.com && tm tm is a script made by Claude Code which puts it in a tmux session tied to the project name (from its folder) That means I always log back into my tmux session for each project! My big sites like Photo AI are on their own VPS, one site per VPS, but the rest is on one VPS, all on Hetzner btw, so anyway I don't even notice this, it's just all tabs in Termius If my phone disconnect I just reconnect and am back where I was Every tmux session has Claude Code open

Context

levelsio can drop his phone's connection without losing his place in a coding session because the session lives on the server. In a post describing his , he says each of his sites is saved as a server in the Termius app with a start command such as cd /srv/http/hotelist.com && tm. The tm command is a script that Claude Code wrote for him: it puts him in a tmux session tied to the project's name, taken from its , so connecting to a site always returns him to that project's existing session. tmux is a that keeps terminal sessions running on a server after the connection that opened them goes away, and each of his sessions has Claude Code open.

The result, in his words, is that if his phone disconnects he reconnects and is back where he was. Where a site is hosted does not change this: his larger sites, such as Photo AI, each run on their own virtual private server and the rest share one, all on Hetzner, but he says he does not even notice the difference because each site is just a tab in Termius. The post does not include the tm script itself, so readers cannot copy his exact version, but the pattern is clear from his description: one named session per project, reopened on every login.

Terms in this piece · Glossary
  • Setup — The combination of a model, a harness, its connections and the path the task's data takes, considered together for a task.
  • Terminal — A program that shows text and accepts typed text.
  • Folder — A named container that holds files and other folders; also called a directory.
  • Program — A set of instructions stored so that a computer can run it.
More from @levelsio
Recommended reads
Comments

Checking sign-in…

Loading comments…