Drive interactive CLIs like Python, gdb, and lldb through tmux sessions on a private socket.
- CCM score
- 69 of 100
- skills.sh installs
- 401
- GitHub stars
- 3.2K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers starting sessions, sending literal keys and control sequences, and capturing pane output for monitoring
- Includes
scripts/find-sessions.shfor listing sessions andscripts/wait-for-text.shfor polling a pane until a regex or fixed string appears - Enforces a private socket under
CLAUDE_TMUX_SOCKET_DIRand requiresPYTHON_BASIC_REPL=1for Python shells so keystrokes are not garbled - Designed for agents that need to debug or script REPLs, debuggers, and other TTY programs step by step
Install
$ npx -y skills add mitsuhiko/agent-stuff --skill tmux -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
tmux Skill
Use tmux as a programmable terminal multiplexer for interactive work. Works on Linux and macOS with stock tmux; avoid custom config by using a private socket.
Quickstart (isolated socket)
SOCKET_DIR=${TMPDIR:-/tmp}/claude-tmux-sockets # well-known dir for all agent sockets
mkdir -p "$SOCKET_DIR"
SOCKET="$SOCKET_DIR/claude.sock" # keep agent sessions separate from your personal tmux
SESSION=claude-python # slug-like names; avoid spaces
tmux -S "$SOCKET" new -d -s "$SESSION" -n shell
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'python3 -q' Enter
tmux -S "$SOCKET" capture-pane -p -J -t "$SESSION":0.0 -S -200 # watch output
tmux -S "$SOCKET" kill-session -t "$SESSION" # clean up
After starting a session ALWAYS tell the user how to monitor the session by giving them a command to copy paste:
To monitor this session yourself:
tmux -S "$SOCKET" attach -t claude-lldb
Or to capture the output once:
tmux -S "$SOCKET" capture-pane -p -J -t claude-lldb:0.0 -S -200
Details
- Repository
- github.com/mitsuhiko/agent-stuff
- Categories
- CLI & Terminal, Skill & Plugin Building, Debugging
- First seen
- Jun 3, 2026
Questions
What does the tmux skill do for an agent?
The tmux skill lets an agent remote control tmux sessions for interactive command line tools such as python, gdb and lldb. It works by sending keystrokes into a pane and scraping the pane output back. It runs on a private socket so agent sessions stay separate from your personal tmux.
How do I install the tmux skill?
Run npx -y skills add mitsuhiko/agent-stuff --skill tmux -y in your project. Once installed, the agent can start tmux sessions, send input and read output from interactive programs.
Where does the tmux skill rank in its category?
The tmux skill is listed under CLI & Terminal on Claude Marketplaces, alongside herdr, gws-shared, opentui, cf-cli and pnpm. It differs from those by focusing on driving interactive terminal programs through tmux panes.
What does the tmux skill need to run?
It needs tmux installed on Linux or macOS, and the skill uses stock tmux with no custom config. For waiting on prompts it also uses the bundled wait-for-text.sh helper, which relies on bash, tmux and grep.
More from mitsuhiko/agent-stuff
All 6Similar to Tmux
More CLI & Terminalusing-tmux-for-interactive-commandsSkillobra/superpowers-lab521 installsTmux-based control of interactive CLI tools like vim, git rebase -i, and REPLs through detached sessions.
Terminal McpMCP servermkpvishnu12 starsPersistent terminal sessions for SSH, REPLs, database CLIs, and TUI apps, with keys and screen reads.
cc-useSkillzc277584121/cc-use3.3K installsLaunch a supervised inner coding agent in tmux for long coding, debugging, or interactive CLI work.
smuxSkillshawnpana/smux3K installsCross-pane messaging and raw tmux control for coordinating AI agents across panes.
cmux-terminal-multiplexerSkillreason-machines/trending-skills1.4K installsTerminal multiplexer with a programmable socket API and snapshot-based browser automation for AI coding agents.