tmux
БесплатноБез исполняемых скриптовНе проверенControl tmux sessions remotely — send commands, capture output, manage panes
от jellydn★ 130 звёзд на GitHubОб этом скилле
🚀 tmux Skill
Control tmux sessions programmatically to run interactive terminal applications (REPLs, debuggers, databases) without blocking.
📋 Quickstart (Easy Way)
Use LogPilot for automatic output capture + AI analysis:
# 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:
# 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 | tmux -S "$SOCKET" capture-pane -p -J -t NAME -S -N |
| List sessions | tmux -S "$SOCKET" list-sessions |
| Kill session | tmux -S "$SOCKET" kill-session -t NAME |
Control keys: C-c (SIGINT), C-d (EOF), C-z (suspend), Escape
📋 Interactive Recipes
🔁 Python REPL
SESSION=agent-py
SOCKET="${TMPDIR:-/tmp}/ai-tmux-sockets/agent.sock"
tmux -S "$SOCKET" new -d -s "$SESSION"
tmux -S "$SOCKET" send-keys -t "$SESSION" 'PYTHON_BASIC_REPL=1 python3 -q' Enter
sleep 1
tmux -S "$SOCKET" send-keys -t "$SESSION" -l 'print(2+2)'
tmux -S "$SOCKET" send-keys -t "$SESSION" Enter
tmux -S "$SOCKET" capture-pane -p -J -t "$SESSION" -S -10
tmux -S "$SOCKET" kill-session -t "$SESSION"
🔁 GDB Debugger
SESSION=agent-gdb
SOCKET="${TMPDIR:-/tmp}/ai-tmux-sockets/agent.sock"
tmux -S "$SOCKET" new -d -s "$SESSION"
tmux -S "$SOCKET" send-keys -t "$SESSION" 'gdb --quiet ./program' Enter
tmux -S "$SOCKET" send-keys -t "$SESSION" 'set pagination off' Enter
tmux -S "$SOCKET" send-keys -t "$SESSION" 'run' Enter
# ... later ...
tmux -S "$SOCKET" send-keys -t "$SESSION" C-c
tmux -S "$SOCKET" send-keys -t "$SESSION" 'bt' Enter
tmux -S "$SOCKET" send-keys -t "$SESSION" 'quit' Enter 'y' Enter
Node.js / psql / etc.
Same pattern: new → send-keys → capture-pane → kill-session
📋 LogPilot Reference
| Task | Command |
|---|---|
| Watch session | logpilot watch SESSION |
| Watch pane | logpilot watch SESSION --pane TARGET |
| AI summary | logpilot summarize --last 10m |
| Ask question | logpilot ask "Why is it failing?" |
| With logs | logpilot ask "Explain" --include-logs |
| Status | logpilot status |
MCP Setup
{
"mcpServers": {
"logpilot": {
"command": "logpilot",
"args": ["mcp-server"]
}
}
}
Or: claude mcp add --scope user --transport stdio logpilot -- logpilot mcp-server
🎨 Best Practices
- Use LogPilot — easiest way to capture and analyze output
- Always use
-S "$SOCKET"— prevents conflicts with user tmux - Use
-lflag — literal text, no shell expansion issues PYTHON_BASIC_REPL=1— required for interactive Python- Kill sessions when done — prevents resource leaks
Установить tmux в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tmux?
Control tmux sessions remotely — send commands, capture output, manage panes
Как установить скилл tmux?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tmux запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic