Manage Claude Code instances living inside tmux sessions. Users usually create separate tmux sessions for separate projects. Use this skill when you need to read the latest Claude Code response in a particular tmux session / project, send it a prompt and get the response, or run /compact directly via tmux (no extra scripts required).
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install claude-tmux或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install claude-tmux⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/claude-tmux/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: claude-tmux description: Manage Claude Code instances living inside tmux sessions. Users usually create separate tmux sessions for separate projects. Use this skill when you need to read the latest Claude Code response in a particular tmux session / project, send it a prompt and get the response, or run /compact directly via tmux (no extra scripts required). ---
Give Codex a repeatable checklist for interacting with Claude Code when it’s running inside tmux. Everything happens with standard tmux commands—no helper scripts. Follow these steps any time you see instructions like “check Claude in session X” or “run /compact on Claude.”
tmux new-session -s . E.g. if we had created a tmux session for project FooBar using tmux new-session -s foobar, then we will refer to this session by the name foobar.claude. If the pane isn’t named, rename it first (Ctrl-b : select-pane -T claude).❯ … and its replies with ⏺ …. We rely on that to spot the latest exchange.tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index} #{pane_title}' | grep "^<session_name>" | grep -i claude
window_index/pane_index unless context says otherwise.:. for subsequent commands.tmux capture-pane -p -J -t <target> -S -200
❯ block (user) followed by ⏺ (Claude). Quote those lines back to the user.❯/⏺ pair exists, say “No exchange found yet.”tmux send-keys -t <target> -l -- "<prompt>"
sleep 0.1
tmux send-keys -t <target> Enter
⏺ block appears (or a sensible timeout, e.g., 3 minutes). Report the reply verbatim./compactSame as sending any prompt, but send /compact. Confirm with “Triggered /compact in session
tmux capture-pane -p -J -t <target> -S -400
Use this when the user wants the entire scrollback or when parsing fails.
tmux -S /path/to/socket ….This skill keeps things simple: pure tmux, no external code. Use it whenever you need hands-on access to Claude Code running inside tmux.
安装 Claude Code within tmux 后,可以对 AI 说这些话来触发它
Help me get started with Claude Code within tmux
Explains what Claude Code within tmux does, walks through the setup, and runs a quick demo based on your current project
Use Claude Code within tmux to manage Claude Code instances living inside tmux sessions
Invokes Claude Code within tmux with the right parameters and returns the result directly in the conversation
What can I do with Claude Code within tmux in my product manager workflow?
Lists the top use cases for Claude Code within tmux, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/claude-tmux/ 目录(个人级,所有项目可用),或 .claude/skills/claude-tmux/(项目级)。重启 AI 客户端后,用 /claude-tmux 主动调用,或让 AI 根据上下文自动发现并使用。
Claude Code within tmux 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Claude Code within tmux 可免费安装使用。请查阅仓库了解许可证信息。
Manage Claude Code instances living inside tmux sessions. Users usually create separate tmux sessions for separate projects. Use this skill when you need to read the latest Claude Code response in a particular tmux session / project, send it a prompt and get the response, or run /compact directly via tmux (no extra scripts required).
Automate my product manager tasks using Claude Code within tmux
Identifies repetitive steps in your workflow and sets up Claude Code within tmux to handle them automatically
Claude Code within tmux 属于「Product Manager」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。