首页/ AI 技能 / @skilllib/skill-2014279400894705666
Skill站外收录 @skilllib/skill-2014279400894705666

tmux-cli

提供在 tmux 多窗格环境中与其他命令行代理或脚本交互的能力,支持跨窗格执行 shell 命令并准确捕获退出码以判断成败,适用于需要协调多个终端任务的自动化流程。

0.0 (0) 179 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# 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.

评论 0

还没有评论,来抢沙发。