Authorization notice. Termish is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA developer who starts a long build or agent session on a server and needs it to keep running while the phone moves between networks or sleeps.
The problemStandard SSH sessions drop when the connection changes or the app goes to the background, which can interrupt work.
The outcomeThe terminal reconnects after network roaming, and the remote program keeps running inside a named tmux session.
What you need first
- An Android 8.0+ phone or an iOS device with macOS and Xcode for building
- A reachable development machine or server with SSH access (Mosh also needs UDP and mosh-server)
- Login credentials or a private key for that remote host
- For builds: JDK 17, the Android SDK and Rust via rustup
Steps
- Open the host in Hosts and choose Mosh in the host's connection settings.
- On the remote, make sure
mosh-serveris installed and a UDP port is reachable; accept guided installation if it is missing. - Set the startup command to
tmux new -A -s mainin the host settings. - Start the long-running task inside the tmux session.
- Reconnect later from the same host; the session should still be running.
Prompt for your agent
Using the farlume/termish README, describe how to set up a Mosh connection to <host> that starts the command `tmux new -A -s main`. Expected output: a checklist covering mosh-server, UDP reachability and the startup command. Verify that the checklist includes the note that tmux or Mosh is needed for terminal continuity.
Caveat. The README says iOS suspends the app in the background, so long tasks still depend on tmux or Mosh on the remote host.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for farlume/termish and "Keep a remote terminal task alive on a weak network"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer