tmux-cli
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.
Security Assessment
About tmux-cli
The tmux-cli skill is a command-line interface utility designed to facilitate communication between different CLI agents or scripts running in separate tmux panes. This tool is especially useful when multiple CLI processes need to interact or share data in real time, which can help automate tasks and improve workflow efficiency. By using tmux-cli, users can seamlessly send commands, capture outputs, and monitor the success or failure of operations executed in different tmux panes, without having to manually switch between them.
Key capabilities of tmux-cli include the ability to execute shell commands in specified tmux panes and detect their exit codes. The 'execute' command allows users to run commands like tests or builds and receive immediate feedback on whether they succeeded or failed, including the ability to handle timeouts. This functionality is ideal for scenarios involving continuous integration, automated testing, or any situation where the outcome of a command is critical to further automation. The skill is particularly suited for developers, DevOps engineers, and system administrators who need to integrate tmux pane interactions into their automated workflows or debugging processes.
FAQ
How do I use tmux-cli?
You can use tmux-cli by running the command `tmux-cli --help` to see its usage details. For example, `tmux-cli execute <command>` can be used to execute commands in a tmux pane.
What should I do if I encounter an error saying 'tmux-cli command not found'?
If you get an error indicating that the tmux-cli command is not available, you need to install the required package, 'claude-code-tools', by running `uv tool install claude-code-tools`.
Can I use tmux-cli for communication between non-shell scripts?
No, tmux-cli's `execute` command is designed specifically for shell commands. For agent-to-agent communication, you should use the `send`, `wait_idle`, and `capture` commands instead.
What happens if the executed command takes too long?
You can set a timeout for the command using the `--timeout=<seconds>` option. If the command exceeds the timeout, tmux-cli will return an exit code of -1.
Is tmux-cli compatible with all tmux versions?
tmux-cli is designed to work with tmux. However, it's important to ensure that you have the necessary dependencies installed, such as 'claude-code-tools', for full functionality.
Install tmux-cli
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
pchalasani/claude-code-tools