Coding over SSH from a phone or tablet means dealing with a volatile client: the OS may background your app, the network may drop, and SSH has to reconnect. None of that should wipe your shell history, your working directory, or the process you left running on the server. That is where tmux comes in — and why Codeusse builds its terminal experience around a dedicated tmux session on the host.
What tmux gives you
tmux is a terminal multiplexer: it keeps one or more sessions alive on the server, independent of any single SSH connection. When you disconnect and come back, you can attach to the same session instead of starting from scratch. For mobile workflows, that turns “fragile pipe from phone to shell” into “reconnect and pick up where you left off.”
Availability: often there, easy when it is not
Many Linux distributions ship tmux by default or include it in the base repositories. The binary is small, and packages exist for macOS, BSD, and essentially every mainstream Linux flavor. If your server does not have tmux yet, installing it is usually one package-manager command (see below). You do not need a heavy stack — just the tmux executable Codeusse can invoke over SSH.
How Codeusse uses tmux
When you connect with Codeusse and tmux is available, the app prepares a dedicated session whose names use a codeusse- prefix so they stay separate from your own tmux sessions, scripts, or other tools on the machine. The interactive session Codeusse attaches to is named codeusse-main.
Codeusse ships a custom tmux configuration tailored for this workflow. The app uploads it to your account on the server; you can find it under $HOME/.codeusse, as codeusse-tmux.conf, alongside other Codeusse-managed files. That path is useful if you want to inspect what is being used or back up the directory. Editing the file by hand is possible but unsupported — unexpected changes might break assumptions the app makes when attaching or creating the session.
If tmux is not installed, not in PATH, or session setup fails, Codeusse falls back to a plain shell over SSH. In that case you still get a terminal, but long-running work may not survive disconnects the same way; the app may surface a background warning so you know persistence is limited.
Installing tmux
Pick your system below. Each block includes a “Best fit” link that opens this article with that section highlighted — handy when you share instructions with teammates.
macOS
The usual approach is Homebrew:
brew install tmux
References: Homebrew formula: tmux · tmux wiki — Installing
Summary
tmux keeps your server-side work stable while your mobile client comes and goes. Codeusse names its session codeusse-main, uses a codeusse- prefix to avoid colliding with anything else on the host, and stores its tmux config under $HOME/.codeusse. Install tmux once on the machine you SSH into, and you are set for a much calmer coding session from your phone.