| Crates.io | amux |
| lib.rs | amux |
| version | 0.1.3 |
| created_at | 2025-10-19 08:14:24.29854+00 |
| updated_at | 2025-10-28 08:27:28.442163+00 |
| description | tmux session manager for local code agents |
| homepage | https://github.com/hewigovens/amux |
| repository | https://github.com/hewigovens/amux |
| max_upload_size | |
| id | 1890192 |
| size | 41,005 |
amux (short for agent multiplexer) is a tiny CLI that keeps your local AI/code agents organised inside tmux. Launch, attach, detach, and remove agent sessions with one consistent interface that works across shells.
--name review-123)codex, claude, gemini) out of the boxCA_AGENT_CMD_<NAME> environment overrides and --cmd/--paramstmux installed and available on PATH (v3.0+ recommended).
brew install tmuxsudo apt-get update && sudo apt-get install tmuxnix-env -iA nixpkgs.tmuxNote on Ghostty over SSH:
$TERM is xterm-ghostty and the remote host lacks Ghostty's terminfo, tmux may fail with "missing or unsuitable terminal: xterm-ghostty". To improve defaults, amux automatically runs tmux with TERM=xterm-256color in this case. If you prefer native Ghostty terminfo, install it on the remote (see https://ghostty.org/docs/help/terminfo) and keep $TERM=xterm-ghostty.cargo install amux
Or build from source:
git clone https://github.com/hewigovens/amux
cd amux
cargo install --path .
# List running agent sessions
amux status
# Launch the default codex agent (short flag or positional shortcut)
amux start codex
amux start -a codex
# Launch a second codex session with extra params
amux start codex -n review-123 -p "--mode review"
# Attach to an existing session (start it automatically if absent)
amux attach codex -n review-123 -s
# Detach all clients from a session
amux detach codex -n review-123
# Remove the tmux session entirely
amux rm codex -n review-123
To register additional agents, set environment variables before running amux:
export CA_AGENT_CMD_myagent="my-agent-binary --flag foo"
You can also bypass configuration per command with --cmd and append extra arguments with --params.
Licensed under the MIT license.