tmux-cli — Claude Code skill: what it does, how to install
This skill lets an agent work with CLI agents and scripts in other tmux panes. Use it for shell commands, exit-code checks, and pane-to-pane communication.
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a claude-codeWhat tmux-cli does
tmux-cli lets an agent reach CLI agents or scripts running in other tmux panes. The tmux-cli execute command runs a shell command and returns its output together with an exit code. A pane can be selected directly, and a timeout can be supplied for longer operations.
Agent-to-agent communication follows a different flow: use send, then wait_idle, and finally capture. The execute command is for shell work only, so it should not be used as a chat channel. The skill relies on the claude-code-tools package; install it with uv tool install claude-code-tools when tmux-cli cannot be found.
A test run can look like tmux-cli execute "make test" --pane=2. For a named pane with a time limit, use tmux-cli execute "npm install" --pane=ops:1.3 --timeout=60. Without claude-code-tools, the command will not start.
What it helps with
- run a build in another tmux pane
- check whether tests returned a failure
- stop multi-step automation after an error
- send a message to another CLI agent
- collect output from a neighbouring pane
Example prompts for the agent
- Run
make testin pane2withtmux-cliand report its exit code. - Execute
npm installin paneops:1.3with a60-second timeout. - Communicate with the other CLI agent in a tmux pane using
send, wait for it to become idle, then collect the result withcapture.
How to install tmux-cli
1Skills CLI (Vercel)
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a claude-code2Manually: put the files in place
~/.claude/skills/tmux-cli/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/tmux-cli/
1Skills CLI (Vercel)
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a codex2Manually: put the files in place
.agents/skills/tmux-cli/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a cursor2Manually: put the files in place
.cursor/skills/tmux-cli/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pchalasani/claude-code-tools tmux-cli2Manually: put the files in place
.github/skills/tmux-cli/SKILL.md1Skills CLI (Vercel)
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a gemini-cli2Platform CLI
gemini skills install https://github.com/pchalasani/claude-code-tools --path plugins/tmux-cli/skills/tmux-cliManually: put the files in place
.devin/skills/tmux-cli/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about tmux-cli
How do I install tmux-cli in Claude Code?
Run npx skills add pchalasani/claude-code-tools --skill tmux-cli -a claude-code, then use ~/.claude/skills/tmux-cli/SKILL.md.
What does tmux-cli do?
The skill lets an agent run shell commands and communicate with CLI agents or scripts in other tmux panes. execute also exposes command output and the exit code.
Can tmux-cli chat with another agent?
Yes. Use send, then wait_idle, and then capture for that workflow. execute is limited to shell commands.
Source text
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