Manage background coding agents in tmux sessions. Spawn Claude Code or other agents, check progress, get results.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install tmux-agents或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install tmux-agents⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/tmux-agents/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: tmux-agents description: Manage background coding agents in tmux sessions. Spawn Claude Code or other agents, check progress, get results. version: 1.0.0 author: Jose Munoz homepage: https://clawdhub.com/skills/tmux-agents triggers: - spawn agent - coding task - background task - tmux session - run codex - run gemini - local agent - ollama agent metadata: clawdbot: emoji: "🖥️" requires: bins: ["tmux"] install: - id: brew-tmux kind: brew formula: tmux bins: ["tmux"] label: "Install tmux (brew)" ---
Run coding agents in persistent tmux sessions. They work in the background while you do other things.
| Agent | Command | Best For | |-------|---------|----------| | claude | Claude Code | Complex coding, refactoring, full projects | | codex | OpenAI Codex | Quick edits, auto-approve mode | | gemini | Google Gemini | Research, analysis, documentation |
| Agent | Command | Best For | |-------|---------|----------| | ollama-claude | Claude Code + Ollama | Long experiments, heavy refactoring | | ollama-codex | Codex + Ollama | Extended coding sessions |
Local agents use your Mac's GPU — no API costs, great for experimentation!
./skills/tmux-agents/scripts/spawn.sh <name> <task> [agent]
# Cloud (uses API credits)
./skills/tmux-agents/scripts/spawn.sh fix-bug "Fix login validation" claude
./skills/tmux-agents/scripts/spawn.sh refactor "Refactor the auth module" codex
./skills/tmux-agents/scripts/spawn.sh research "Research caching strategies" gemini
# Local (FREE - uses Ollama)
./skills/tmux-agents/scripts/spawn.sh experiment "Rewrite entire test suite" ollama-claude
./skills/tmux-agents/scripts/spawn.sh big-refactor "Refactor all services" ollama-codex
tmux list-sessions
# or
./skills/tmux-agents/scripts/status.sh
./skills/tmux-agents/scripts/check.sh session-name
tmux attach -t session-name
# Detach with: Ctrl+B, then D
tmux send-keys -t session-name "additional instruction here" Enter
tmux kill-session -t session-name
| Scenario | Recommendation | |----------|----------------| | Quick fix, time-sensitive | ☁️ Cloud (faster) | | Expensive task, budget matters | 🦙 Local | | Long experiment, might fail | 🦙 Local | | Production code review | ☁️ Cloud (smarter) | | Learning/exploring | 🦙 Local | | Heavy refactoring | 🦙 Local |
Run multiple agents simultaneously:
# Mix and match cloud + local
./scripts/spawn.sh backend "Implement user API" claude # Cloud
./scripts/spawn.sh frontend "Build login form" ollama-codex # Local
./scripts/spawn.sh docs "Write API documentation" gemini # Cloud
./scripts/spawn.sh tests "Write all unit tests" ollama-claude # Local
Check all at once:
./skills/tmux-agents/scripts/status.sh
Local agents require Ollama with a coding model:
# Pull recommended model
ollama pull glm-4.7-flash
# Configure tools (one-time)
ollama launch claude --model glm-4.7-flash --config
ollama launch codex --model glm-4.7-flash --config
tmux ls to see all active work安装 Tmux Agents 后,可以对 AI 说这些话来触发它
Help me get started with Tmux Agents
Explains what Tmux Agents does, walks through the setup, and runs a quick demo based on your current project
Use Tmux Agents to manage background coding agents in tmux sessions
Invokes Tmux Agents with the right parameters and returns the result directly in the conversation
What can I do with Tmux Agents in my developer & devops workflow?
Lists the top use cases for Tmux Agents, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/tmux-agents/ 目录(个人级,所有项目可用),或 .claude/skills/tmux-agents/(项目级)。重启 AI 客户端后,用 /tmux-agents 主动调用,或让 AI 根据上下文自动发现并使用。
Tmux Agents 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Tmux Agents 可免费安装使用。请查阅仓库了解许可证信息。
Manage background coding agents in tmux sessions. Spawn Claude Code or other agents, check progress, get results.
Tmux Agents 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Tmux Agents
Identifies repetitive steps in your workflow and sets up Tmux Agents to handle them automatically