claude-tmux
БесплатноБез исполняемых скриптовНе проверенManage Claude Code instances living inside tmux sessions. Users usually create separate tmux sessions for separate projects. Use this skill when you need to…
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
Goal
Give Codex a repeatable checklist for interacting with Claude Code when it’s running inside tmux. Everything happens with standard tmux commands—no helper scripts. Follow these steps any time you see instructions like “check Claude in session X” or “run /compact on Claude.”
Conventions
- Session naming – We refer to tmux sessions by their tmux session name. Session names can be assigned using
tmux new-session -s <session_name>. E.g. if we had created a tmux session for project FooBar usingtmux new-session -s foobar, then we will refer to this session by the namefoobar. - Claude pane – Within a session, there should be exactly one pane whose window title or pane title is
claude. If the pane isn’t named, rename it first (Ctrl-b : select-pane -T claude). - Standard markers – Claude Code prints user prompts with
❯ …and its replies with⏺ …. We rely on that to spot the latest exchange.
Workflow
1. Locate the Claude pane
tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index} #{pane_title}' | grep "^<session_name>" | grep -i claude
- If nothing matches, say “No pane titled ‘claude’ found inside session
.” - If multiple panes match, pick the one with the lowest
window_index/pane_indexunless context says otherwise. - Record the target as
<session>:<window>.<pane>for subsequent commands.
2. View the latest exchange
tmux capture-pane -p -J -t <target> -S -200
- Scan from the bottom upward for the last
❯block (user) followed by⏺(Claude). Quote those lines back to the user. - If no
❯/⏺pair exists, say “No exchange found yet.”
3. Send a prompt
tmux send-keys -t <target> -l -- "<prompt>"
sleep 0.1
tmux send-keys -t <target> Enter
- After sending, poll using capture-pane until a new
⏺block appears (or a sensible timeout, e.g., 3 minutes). Report the reply verbatim. - If the timeout expires, say “Claude hasn’t replied yet—still waiting.”
4. Run /compact
Same as sending any prompt, but send /compact. Confirm with “Triggered /compact in session
5. Dump raw buffer (debug)
tmux capture-pane -p -J -t <target> -S -400
Use this when the user wants the entire scrollback or when parsing fails.
Tips
- Always double-check you’re addressing the right pane before sending commands—especially in shared sessions.
- If the Claude pane lives on a non-default tmux socket, prefix every tmux command with
tmux -S /path/to/socket …. - When summarizing results, mention the session/pane you used—for traceability.
- If the user wants multiple sessions handled, repeat the workflow per session.
This skill keeps things simple: pure tmux, no external code. Use it whenever you need hands-on access to Claude Code running inside tmux.
Установить claude-tmux в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл claude-tmux?
Manage Claude Code instances living inside tmux sessions. Users usually create separate tmux sessions for separate projects. Use this skill when you need to read the latest Claude Code response in a particular tmux session / project, send it a prompt and get the response, or run /compact directly via tmux (no extra scripts required).
Как установить скилл claude-tmux?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл claude-tmux запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic