Tmux Agents
name: tmux-agents
by cuba6112 · published 2026-03-22
$ claw add gh:cuba6112/cuba6112-tmux-agents---
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)"
---
# Tmux Agents
Run coding agents in persistent tmux sessions. They work in the background while you do other things.
Available Agents
☁️ Cloud Agents (API credits)
| 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 |
🦙 Local Agents (FREE via Ollama)
| 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!
Quick Commands
Spawn a new agent session
./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-codexList running sessions
tmux list-sessions
# or
./skills/tmux-agents/scripts/status.shCheck on a session
./skills/tmux-agents/scripts/check.sh session-nameAttach to watch live
tmux attach -t session-name
# Detach with: Ctrl+B, then DSend additional instructions
tmux send-keys -t session-name "additional instruction here" EnterKill a session when done
tmux kill-session -t session-nameWhen to Use Local vs Cloud
| 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 |
Parallel Agents
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 # LocalCheck all at once:
./skills/tmux-agents/scripts/status.shOllama Setup
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 --configTips
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...