跳到正文
TakoAPI
返回技能列表

claude-tmux

由 paulrahul 提供

Coding Agents & IDEs
1.1k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage Claude Code instances living inside tmux sessions.

描述

该技能的功能

Provides a repeatable workflow for interacting with Claude Code instances running inside tmux sessions. Covers reading the latest response, sending new prompts, and running commands like /compact using only standard tmux commands.

Uses only built-in tmux commands with no helper scripts or external dependencies, making it portable across any environment where tmux is available.

何时使用

  • Check Claude's latest reply in a background project session
  • Send a follow-up prompt to Claude without switching terminal focus
  • Run /compact on a Claude session to reduce context size
  • Debug a Claude session by dumping its full scrollback buffer
  • Manage Claude across multiple simultaneous project sessions

示例工作流

输入

User asks: send the prompt 'summarize the changes so far' to the Claude instance in tmux session foobar

智能体
  1. 1

    List all panes in the foobar session to locate the one titled 'claude'

  2. 2

    Record the target pane reference as foobar:<window>.<pane>

  3. 3

    Capture the pane output to confirm Claude is ready and note the last exchange

  4. 4

    Send the prompt text followed by Enter to the target pane

  5. 5

    Poll the pane with capture-pane until a new ⏺ reply block appears, then report it

输出

Claude's in-pane reply is quoted back, with the session and pane reference noted for traceability

安装

clawhub install paulrahul/claude-tmux

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接