Skip to content

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
View on GitHub

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.sh for listing sessions and scripts/wait-for-text.sh for polling a pane until a regex or fixed string appears
  • Enforces a private socket under CLAUDE_TMUX_SOCKET_DIR and requires PYTHON_BASIC_REPL=1 for 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 -y

Installs 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 6

Similar to Tmux

More CLI & Terminal