tmux

Solid

Remote control tmux sessions for interactive CLIs (python, node, gdb, etc.) by sending keystrokes and capturing pane output.

Web & Frontend 98 stars 12 forks Updated today MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
66
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ๐Ÿš€ tmux Skill Control tmux sessions programmatically to run interactive terminal applications (REPLs, debuggers, databases) without blocking. --- ## ๐Ÿ“‹ Quickstart (Easy Way) Use [LogPilot](https://github.com/jellydn/logpilot) for automatic output capture + AI analysis: ```bash # Install LogPilot cargo install logpilot # Watch your tmux session logpilot watch mysession --pane mysession:0.0 # Ask AI about what's happening logpilot ask "What errors appeared?" logpilot summarize --last 5m ``` Add to Claude Code: `claude mcp add --scope user logpilot -- logpilot mcp-server` --- ## ๐Ÿ“‹ Manual Control (Raw tmux) Use isolated sockets to avoid conflicts with personal tmux: ```bash # Setup socket export SOCKET="${TMPDIR:-/tmp}/ai-tmux-sockets/agent.sock" mkdir -p "$(dirname "$SOCKET")" # Create session and run SESSION=agent-py tmux -S "$SOCKET" new -d -s "$SESSION" tmux -S "$SOCKET" send-keys -t "$SESSION" 'python3 -q' Enter # Capture output manually tmux -S "$SOCKET" capture-pane -p -J -t "$SESSION" -S -100 # Cleanup tmux -S "$SOCKET" kill-session -t "$SESSION" ``` ### ๐Ÿ“‹ Core Commands | Action | Command | | -------------- | ---------------------------------------------------- | | New session | `tmux -S "$SOCKET" new -d -s NAME` | | Send keys | `tmux -S "$SOCKET" send-keys -t NAME 'cmd' Enter` | | Send literal | `tmux -S "$SOCKET" send-keys -t NAME -l 'text'` | | Capture output |...

Details

Author
jellydn
Repository
jellydn/my-ai-tools
Created
6 months ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content โ€” not just same category