tmux-cli — скилл для Claude Code: что делает и как установить
Скилл даёт агенту доступ к командам в других панелях tmux. Он пригодится для запуска тестов, сборок и обмена сообщениями между CLI-агентами.
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a claude-codeЧто делает tmux-cli
tmux-cli позволяет обращаться к CLI-агентам и скриптам в других панелях tmux. Для shell-команд используется tmux-cli execute: он возвращает вывод и код завершения, чтобы агент мог понять, прошла ли сборка или тесты. Команда поддерживает выбор панели и тайм-аут.
Для общения с другим экземпляром Claude Code нужны отдельные шаги: send, затем wait_idle и capture. execute предназначен только для shell-команд, а не для диалога между агентами. Скилл зависит от установленного claude-code-tools; если tmux-cli недоступен, установите его командой uv tool install claude-code-tools.
Пример запуска: tmux-cli execute "make test" --pane=2. Для панели с адресом и ограничением времени используется tmux-cli execute "npm install" --pane=ops:1.3 --timeout=60. Без claude-code-tools команда не запустится.
Какие задачи решает
- запускать сборку в другой панели tmux
- проверять код завершения тестов
- останавливать цепочку команд после ошибки
- передавать сообщения другому CLI-агенту
- получать вывод из соседней панели
Примеры запросов агенту
- Запусти
make testв панели2черезtmux-cliи сообщи код завершения. - Выполни
npm installв панелиops:1.3с тайм-аутом60секунд. - Свяжись с другим CLI-агентом в панели tmux через
send, дождись его простоя и забери результат черезcapture.
Как установить tmux-cli
1Через Skills CLI (Vercel)
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a claude-code2Вручную: положить файлы
~/.claude/skills/tmux-cli/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/tmux-cli/
1Через Skills CLI (Vercel)
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a codex2Вручную: положить файлы
.agents/skills/tmux-cli/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a cursor2Вручную: положить файлы
.cursor/skills/tmux-cli/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install pchalasani/claude-code-tools tmux-cli2Вручную: положить файлы
.github/skills/tmux-cli/SKILL.md1Через Skills CLI (Vercel)
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a gemini-cli2Командой платформы
gemini skills install https://github.com/pchalasani/claude-code-tools --path plugins/tmux-cli/skills/tmux-cliВручную: положить файлы
.devin/skills/tmux-cli/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о tmux-cli
Как установить tmux-cli в Claude Code?
Выполните npx skills add pchalasani/claude-code-tools --skill tmux-cli -a claude-code, затем используйте файл ~/.claude/skills/tmux-cli/SKILL.md.
Что делает tmux-cli?
Скилл позволяет агенту запускать shell-команды и общаться с CLI-агентами или скриптами в других панелях tmux. Для execute доступны вывод и код завершения.
Можно ли через tmux-cli общаться с другим агентом?
Да. Для диалога используются send, wait_idle и capture; execute подходит только для shell-команд.
Исходный текст
SKILL.md · MIT
---
name: tmux-cli
description: CLI utility to communicate with other CLI Agents or Scripts in other tmux panes; use it only when user asks you to communicate with other CLI Agents or Scripts in other tmux panes.
---
# tmux-cli
## Instructions
Use the `tmux-cli` command to communicate with other CLI Agents or Scripts in
other tmux panes. Do `tmux-cli --help` to see how to use it!
This command depends on installing the `claude-code-tools`. If you get an error
indicating that the command is not available, ask the user to install it using:
`uv tool install claude-code-tools`.
## Key Commands
### Execute with Exit Code Detection
Use `tmux-cli execute` when you need to know if a shell command succeeded or
failed:
```bash
tmux-cli execute "make test" --pane=2
# Returns JSON: {"output": "...", "exit_code": 0}
tmux-cli execute "npm install" --pane=ops:1.3 --timeout=60
# Returns exit_code=0 on success, non-zero on failure, -1 on timeout
```
This is useful for:
- Running builds and knowing if they passed
- Running tests and detecting pass/fail
- Multi-step automation that should abort on failure
**Note**: `execute` is for shell commands only, not for agent-to-agent chat.
For communicating with another Claude Code instance, use `send` + `wait_idle` +
`capture` instead.
© pchalasani · MIT · pchalasani/claude-code-tools