by jasonjmcghee · 9mo ago · 0 comments
- - -
get tailscale (free) and join on both devices
install tmux
get an ios/android terminal (echo / termius)
enable "remote login" if on mac (disable on public wifi)
mosh/ssh into computer
now you can do tmux then claude / codex / w/e on either device and reconnect freely via tmux ls and tmux attach -t <id>
- - -
You can name tmux and resume by name via tmux new -s <feature> and tmux attach -t <feature>
Been testing it today with Claude Code and it seems to work quite well switching between my laptop and phone.
[1]: https://zellij.dev and https://github.com/zellij-org/zellij
[2]: https://github.com/crigler/dtach and https://dtach.sourceforge.net
Based on my experience many people don't know this is a thing you can do.
As for fancier setups, I keep bookmarking them, but haven't gotten around to trying any of them, yet.
How do you deal with multiple concurrent sessions of CC with this setup?
How important is mosh? I wasn't able to get it set up the last time I tried... ran into a bunch of issues.
[terminal.shell]
args = ["-l", "-c", "tmux attach || tmux"]
program = "/opt/homebrew/bin/zsh"
tmux supports tabs so you can have multiple Claude Code sessions running concurrently. You do need to learn a few tmux keyboard shortcuts to use it effectively (e.g. opening/closing/switching tab).Depends- how good is your signal? Mosh has a great property that it buffers everything locally so there's no lag even if your connection sucks.
On ssh, every keystroke is a roundtrip
Could even use cc to check in on and/or "send-keys"
What wasn't working about mosh? Just install mosh and use mosh to connect
It's this.
Don't have a Dropbox moment ;) [1]
What I posted "just works".
The shell script takes a message which includes Claude's message, but unfortunately there's no deeplinking back to my ssh app (for obvious reasons, the notification just routes you to the pushover app), so instead of tapping the message, I know to just open my Blink shell app to respond to Claude.
This is also quite noisy when I'm just sitting at my desk working, but I usually turn off phone notifications while working anyway.