llm/9ad11e16-7acb-4923-bb7e-5d14cd36cf3f/topic-3-3c5fd33e-9df2-4385-b85f-5746037dc4d3-input.json
The following is content for you to summarize. Do not respond to the comments—summarize them. <topic> Session Persistence with Tmux # Technical advice heavily features `tmux` (terminal multiplexer) as an essential tool for this workflow. Commenters explain that standard SSH connections drop when a mobile device sleeps or switches networks, whereas `tmux` allows the session to persist on the host machine. This enables users to seamlessly resume their work exactly where they left off, regardless of connectivity interruptions or app switching. </topic> <comments_about_topic> 1. > Would an email interface to Claude code work better? No. > What is the downside to using email? Email is clunky and feedback is not immediate. > seems easier then getting a vpn working. Tailscale is easy for a dev to get going and very reliable. The author uses the Termius SSH app with Mosh, so it keeps the same SSH session going across device sleeps and disconnects. Tmux is helpful, too. I do exactly what the author is doing, except I use a $5 Linode VPS, instead of a Mac at home. He doesn't seem to be credited on this page, but I believe Pieter Levels (@levelsio) actually popularized this scheme. The author documents a nearly identical scheme. 2. > ... I encourage people to live in the terminal. I've done this for decades. screen or tmux (although I still confuse the keybindings between the two). When coding on the move (mostly when I had a long commute or was away from the office visit clients) I'd use the Linux console (Ctrl+Alt+F1-F6) rather than X. Even in the office I had an old amber/green terminal that connected to my Linux desktop via a serial port. Nowadays I have a 14" USB-C monitor (ASUS Zenscreen) that sits beneath my main monitors which runs a terminal full screen. 3. > Tmux is helpful, too. Yes. tmux is essential. It's great to be able to monitor a session from desktop, or to pick up an existing conversation i'm having on the computer on my phone. In my shell, I have gemini flash wrapper that I use to manage my sessions so I can quickly connect to an existing one, or create a new one with natural language. > He doesn't seem to be credited on this page, but I believe Pieter Levels (@levelsio) actually popularized this scheme. The author documents a nearly identical scheme. I've been doing this (tailscale + termius + tmux + ssh) for at least a year and a half. First with Aider in this exact setup, and now with Claude Code and Codex. 4. You need tmux to be able to resume the same session from anywhere, mosh-server to make ssh resilient to sketchy mobile connections, and blink shell https://blink.sh/ to have a high quality iOS shell with a mosh and ssh client built right in to resume at any time. Far more resilient and performant than a web client. 5. tried tmux but realized claude/gemini/codex's --resume works great and have since started using a single chat for all small work projects 6. I've been using Telegram bot to talk to a Claude SDK agent who talks to my Claudes via tmux commands (all running on a DigitalOcean VPS) 7. Gastown, by Steve Yeggs is that, via tmux. It's rather opinionated and still in development, but it's worth a look if that's what you're looking for. 8. > seems easier then getting a vpn working it could not possibly be easier to get Tailscale up and running on your mac or linux machine, install tmux and mosh on your mac or linux machine, connect to it with Blink Shell https://blink.sh/ on your iOS device that you've also installed tailscale to, and start vibe-coding from anywhere, on a performant, resilient, instantly resumable terminal connection. seriously, it's a game-changer 9. > I really like this setup because I only have one environment, so everything is there, and I don't have to install anything in the laptop Yeah that's one of my favorite parts. Same about living in the terminal. I can be effective anywhere nearly instantly. I carry everything around in my dotfiles and keep it small (keep the .git folder small and don't add anything except text files)[0]. On that note, one thing I highly recommend to people is to add some visual clues to tell you which machine you're on. I use starship and have a few indicators but I also have some PS1 exports that I've used in the past or use in new tmp instances (I HIGHLY recommend also doing this for when you're using the root account). It can get confusing when you have different tabs on different machines and it is easy to mistake which one you're on. [0] I also recommend keeping notes there if you like writing in markdown. Files are so tiny that it's worth having them. It's benefited me more times than I can count. 10. Coding on a phone really isn't something new. With tmux a lot of people created crazy things directly on their phone. In some countries this even is the only possibility to code at all, because there are no laptops. The example use case images are very funny though! :-) 11. I've been working on something similar: https://github.com/shepherdjerred/monorepo/tree/main/package... Essentially you run a server on some machine. Sessions are created in Docker containers, K8s pods, or via Zellij (an app similar to tmux). You can: - Directly attach to sessions via Docker attach (built-in via a TUI). You get a normal Claude Code experience, but multiplexed. The switcher/UI shows you the status of Claude and the PR (pushed, merge conflicts, CI status, review status, etc.) - Manage sessions via a web UI. Connect to Claude Code directly via your browser. You have access to the usual Claude Code terminal or a native chat view. - Manage sessions via an app. You have access to a native chat view. It achieves isolation via Git worktrees + a proxy so that containers have access to zero credentials (there aren't even any Claude code creds in the container), which allows you to more safely use bypass all permissions mode. This works better for me that Claude Code on Web because I have control over the environment Claude is running in. I can give it any Docker image I want, I can have it connect to my local network, etc. It's still a WIP (the core bits are there, but it's not polished yet), but I'm hoping it provides a friendlier UX with a similar goal for what the OP has in mind. 12. I've used this for a decade and still use it. Easy compatibility with tmux, can ssh, use llm, etc. https://github.com/fandreuz/TUI-ConsoleLauncher 13. I already have a similar setup for developing on remote servers I've been using with tmux + goose-cli + claude via openrouter. I've found that anything claude 4.x and above becomes very expensive very quickly, with 3.7 being almost negligibly inexpensive. I'd find myself using $30 dollars of credits in a few hours of development on a small scope project. I might give the claude CLI a look specifically, but I don't expect great savings and I will miss my AI-provider-agnostic setup. Is everyone using this technology just programming as they go about their day and burning like fifty to a hundred bucks while doing so? 14. Let me know how it goes! From the comments above, seems like you can use tmux to keep persistent sessions when you lose Internet connection - but I haven't tried myself. Diff review is alright. I'm an amateur programmer. Sometimes I don't look at the code claude generates, but when I'm troubleshooting a bug, I'll ask claude to output all recent changes - which satisfies my untrained eye. 15. I use Terminus with Zellij and keep about 8 sessions going with a combination of Claude and Codex, and once in a while, Gemini. It's great when you're sitting in a docotor's office lobby bored out of your skull and when you get back to your desk you just join the session and it's all right there. 16. This can be done not just with Claude but also with codex and gemeni cli. Well technically anything that has a cli interface. I run both gemeni (fee) and codex (paid), with tmux thrown in to switch between phone and laptop. Laptop runs vscode with ssh to my server but I could also use the web version of vscode. 17. Using this with tmux and various VPN tech. Main issue is scrolling. Termius + tmux don't scroll very well. And I've been led to believe tmux is necessary to keep sessions open when I turn off my phone screen 18. I had this exact issue. I switched to Blink on iOS which seems inferior to Termius in every way except that scrolling tmux actually works. 19. In `~/.tmux.conf` try adding `set -g mouse on`, for mouse scrolling 20. try setting set -g mouse on in your tmux config. With this I'm able to scroll up by using two fingers in termius. 21. Yes, you need tmux/similar to keep things running. 22. Why would I need claude code for remote programming, if I could just use ssh and tmux? 23. this is literally my setup and it is a game-changer: tailscale, tmux, codex/claude code, mosh, blink shell (iOS) https://blink.sh/ 24. Curious if you are directly running mosh on macOS. Last I checked, it was broken on macOS Tahoe, so I have been relying on tmux for surviving flaky ssh connections. 25. i use both tmux and mosh-server i install them via nix-darwin (I've abandoned homebrew) i am on Tahoe latest beta 26. Shellfish is underrated. It has a very convenient tmux integration (auto-restore a specific tmux session per host to work around iOS suspending background apps), supports SSH tunneling via other configured hosts, and can be used as an SFTP file provider for other iOS apps. It’s also generally polished and supports the expected standard terminal features. There’s a few settings I wished were possible, like using volume buttons as modifier keys in Emacs (I’ve heard about this in other apps), but mostly it works fine. 27. I just use ConnectBot to ssh to my house. It runs tmux and vim well, especially with a little pocket-size folding bluetooth keyboard to go with it. 28. you missed the part where you're using tmux to have the same session between your phone and your laptop 29. Just learned about tmux lol - thank you for this! </comments_about_topic> Write a concise, engaging paragraph (3-5 sentences) summarizing the key points and perspectives in these comments about the topic. Focus on the most interesting viewpoints. Do not use bullet points—write flowing prose.
Session Persistence with Tmux # Technical advice heavily features `tmux` (terminal multiplexer) as an essential tool for this workflow. Commenters explain that standard SSH connections drop when a mobile device sleeps or switches networks, whereas `tmux` allows the session to persist on the host machine. This enables users to seamlessly resume their work exactly where they left off, regardless of connectivity interruptions or app switching.
29