I like this because it gives me maximum power and flexibility (I can use any plugin or CLI as if I were sitting there locally).
The setup is cmux for the terminal multiplexer UI, tmux to keep sessions alive between connections, Tailscale for zero-config encrypted networking, and Echo app as the iOS SSH client. Optional Mosh for auto-reconnect when you switch networks.
The gist includes a ‘ccode’ alias shell function that handles session naming (so it doesn't conflict with claude if I ever need to use it), tmux lifecycle, continue/skip-permissions flags, and a pre-flight check so you don’t get a blank window when there’s nothing to continue.