Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pchalasani/claude-code-tools --skill tmux-cli -a claude-code
Open on GitHub

What 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 test in pane 2 with tmux-cli and report its exit code.
  • Execute npm install in pane ops:1.3 with a 60-second timeout.
  • Communicate with the other CLI agent in a tmux pane using send, wait for it to become idle, then collect the result with capture.

How to install tmux-cli

1Skills CLI (Vercel)

npx skills add pchalasani/claude-code-tools --skill tmux-cli -a claude-code

2Manually: put the files in place

~/.claude/skills/tmux-cli/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/tmux-cli/

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

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set8

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor