TUI for humans. Deterministic agent CLI for AI workflows. One interface to see, control, and automate tmux.
Project description
tmuxx
Your terminal, orchestrated. By you and your agents.
_|
_|_|_|_| _|_|_| _|_| _| _| _| _| _| _|
_| _| _| _| _| _| _|_| _|_|
_| _| _| _| _| _| _| _| _| _|
_|_| _| _| _| _|_|_| _| _| _| _|
TUI for humans. Deterministic agent CLI for AI workflows. One interface to see, control, and automate tmux.
Install
pip install tmuxx
# on Debian/Ubuntu or other externally-managed Python systems:
pipx install tmuxx
# optional Node wrapper (expects tmuxx binary in PATH):
npm install -g tmuxx
Requires Python 3.10+ and tmux.
The npm package is a thin wrapper that forwards to the tmuxx binary.
On Debian/Ubuntu, plain pip install tmuxx may fail with an externally-managed-environment error (PEP 668). Use pipx install tmuxx instead, or install inside a virtual environment with python3 -m venv .venv.
Truecolor support: If colors look off on your VM or remote server, enable truecolor:
echo 'export COLORTERM=truecolor' >> ~/.bashrc
Usage
# default: interactive TUI with pane activity indicators
tmuxx
# explicit TUI mode
tmuxx tui
# deterministic agent automation mode
tmuxx agent --help
# binary version
tmuxx --version
TUI Features
The interactive TUI displays pane-level activity status with color-rendered preview:
▶= running (blue) — agent actively processing⏸= waiting (red) — agent blocked on permission/input⎇= worktree (green) — 4th-level tree node showing git worktree branch
Header legend shows all status indicators at a glance. Preview panel renders full ANSI terminal colors.
Worktree detection is automatic — any pane sitting in a git worktree shows ⎇ branch. After attaching to a session, click [tmuxx] in the tmux status bar (top-right) to detach back to the TUI.
Keybindings
| Key | Action |
|---|---|
n |
New session |
w |
New window |
h |
Split pane horizontally |
v |
Split pane vertically |
k |
Kill selected session/window/pane |
r |
Rename session or window |
s |
Activate selected window and focus selected/active pane |
a |
Attach to session |
y |
Yank (copy) preview to clipboard |
b |
Toggle sidebar |
? |
Show help menu |
R |
Force refresh |
+ / - |
Resize pane up/down |
[ / ] |
Resize pane left/right |
q |
Quit |
Agent Orchestration
Run parallel AI agents in isolated git worktrees, each with its own branch and tmux window. Monitor all agents with pane-level activity visibility — see which ones are running, idle, or blocked on user input.
Deterministic Workflow Commands
tmuxx agent start-task <session_name> "<prompt>" [--branch ...] [--base-branch ...] [--agent-command ...]
tmuxx agent task-report <branch>
tmuxx agent complete-task <branch> [--test-command ...] [--commit-message ...]
tmuxx agent abort-task <branch>
Recommended command flow for skills:
start-taskcreates worktree + tmux window and runs the agent command.task-reportprovides branch status, diff, and log presence with stable fields.complete-taskorabort-taskperforms capture + cleanup in one operation.
If you omit --agent-command, tmuxx uses TMUXX_AGENT_COMMAND when set, otherwise it falls back to claude -p in a normal terminal. Inside an existing agent session, tmuxx refuses to guess a default and requires an explicit override. It also rejects same-family nested launches such as codex ... from Codex or claude ... from Claude when it can detect the active runtime. Activating from the TUI now always switches to the target window first, then focuses the selected pane (or that window's active pane).
JSON-first Mode
All tmuxx agent commands support --json for machine-safe parsing:
tmuxx agent list-worktrees --json
tmuxx agent start-task dev "fix login bug" --json
TMUXX_AGENT_COMMAND="gemini -p" tmuxx agent start-task dev "fix login bug" --json
tmuxx agent task-report fix-login-bug --json
tmuxx agent complete-task fix-login-bug --test-command "pytest -q" --json
run-and-capture is scoped to the command you send (it returns command-local output, not full pane scrollback).
Full Command Surface
# introspection
tmuxx agent list-sessions
tmuxx agent capture-pane %1 --lines 200
tmuxx agent capture-window @2
tmuxx agent screenshot-window @2 --output ./window.png
# session/window/pane operations
tmuxx agent create-session dev
tmuxx agent create-window dev --name logs
tmuxx agent split-pane %3 --horizontal
tmuxx agent send-command %3 -- npm test
tmuxx agent send-text %3 -- "draft note in shell"
tmuxx agent send-keys %3 C-c
tmuxx agent send-keys %3 --literal -- "echo hello"
tmuxx agent run-and-capture %3 --wait-seconds 2 --lines 300 -- pytest -q
# worktree operations
tmuxx agent launch-agent dev "add auth tests" --base-branch feat-auth
tmuxx agent list-worktrees
tmuxx agent diff-worktree feat-auth-tests
tmuxx agent merge-worktree feat-auth-tests --test-command "pytest -q"
tmuxx agent discard-worktree feat-auth-tests
tmuxx agent read-agent-log feat-auth-tests
Legacy MCP Compatibility (Optional)
tmuxx is now single-binary first. If you still need MCP for external clients, the legacy module remains in source.
pip install "tmuxx[mcp]"
python tmux_mcp.py
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tmuxx-0.3.17.tar.gz.
File metadata
- Download URL: tmuxx-0.3.17.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c833d062e99cce61eabcf62de95b4f12711d3093cae544373781616dfc7d794
|
|
| MD5 |
6dbdff96d283b3c37a3d7fee191c5ca1
|
|
| BLAKE2b-256 |
7e3b10cc98e9d2ddcff21d242e054b6ff55c8daa4be7a24aec4a059d8dfb8b64
|
File details
Details for the file tmuxx-0.3.17-py3-none-any.whl.
File metadata
- Download URL: tmuxx-0.3.17-py3-none-any.whl
- Upload date:
- Size: 38.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a97eedf3dbdb94ebfa2917046807021593c446e27b55e59739fcde916d4cc628
|
|
| MD5 |
9f0782120e97f9718e663d94d35592d8
|
|
| BLAKE2b-256 |
6e2958028e1eaa8b9336d302bb8037bb4501514421d4c62f8eb5fc4ac712bb1d
|