/claude-tmux:tmux-awarenessfrom claude-tmux
Auto-detects tmux and enables background processes, parallel agents, and long-running tasks via split-window or new-window commands.
Ships in claude-tmux. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
AUTO-ENABLED: When Claude runs inside tmux, the SessionStart hook automatically detects this and injects tmux context. Claude will see "TMUX_ENVIRONMENT_DETECTED" at session start and will automatically use tmux capabilities for all background processes, parallel agents, and long-running tasks.
You don't need to tell Claude which tmux script to use - Claude understands it's in tmux and will automatically make the right choice.
When to use the CURRENT session (split-window):
When to use a NEW background window (spawn-window.sh):
NEVER use tmux new-session - always work within the current session. Use split-window for visible panes or new-window for background work.
# CORRECT - split current window for visible work
tmux split-window -h
tmux send-keys "htop" Enter
# CORRECT - new window for background work
tmux new-window -d -n "server"
tmux send-keys -t server "npm start" Enter
# WRONG - never create new sessions!
tmux new-session -d -s newsession # DO NOT DO THIS
On every session start, the plugin runs detect-tmux-context.sh which:
If you see "TMUX_ENVIRONMENT_DETECTED" in your session context, all tmux features are available.
Panes (split current window): For things the user should see while working
Windows (separate): For background workers out of the way
When you ask Claude to do background work, parallel tasks, or run servers, Claude automatically:
TMUX_ENVIRONMENT_DETECTED in contextYou just ask Claude what you need, and it uses the appropriate tmux script automatically.
Run Claude in a visible split pane to review this code while I continue working
Claude will use spawn-pane.sh to split the current window.
Start the dev server in a background window and let me know when it's ready
Claude will use spawn-window.sh to create a separate window and wait-for-text.sh to detect readiness.
Show me the logs from the background server
Claude will use capture-output.sh to get the output without switching windows.
Run the tests in the background. When done, queue a message telling me if they passed.
Claude will use spawn-window.sh for the tests and queue-message.sh to remind you in the next session.
Claude uses these scripts automatically:
detect-session.sh - Get tmux contextspawn-pane.sh - Create visible split panespawn-window.sh - Create background windowwait-for-text.sh - Wait for pattern in outputcapture-output.sh - Get pane contentsqueue-message.sh - Queue message for next sessionYou don't need to call these directly - just ask Claude what you need!
Ask Claude using natural language:
Fix these 3 bugs in parallel:
1. Auth timeout bug in login.py
2. 500 error in /api/users endpoint
3. Button alignment issue in header
Spawn a separate Claude agent for each in background windows.
Report when all are complete.
Claude will spawn 3 agents in background windows and monitor their completion.
Start the dev server in a background window and show me the logs in a visible pane.
Wait until the server is ready on port 3000, then let me know.
Claude will create a background window for the server, a visible pane for logs, and monitor for readiness.
Run the full build and test suite in the background.
When it's done, queue a message telling me if it passed and whether we should deploy to staging.
Claude will spawn the build in a background window and queue a reminder for the next session with the results.
| Script | Purpose |
|---|---|
detect-session.sh | Check if in tmux, get session info |
spawn-pane.sh | Create visible split pane |
spawn-window.sh | Create background window |
wait-for-text.sh | Wait for pattern in pane output |
capture-output.sh | Get recent pane contents |
queue-message.sh | Queue message for next session |
All scripts are in {baseDir}/scripts/ and return JSON for easy parsing.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (buremba/claude-tmux) — no native marketplace selected
npx claudepluginhub p/buremba-claude-tmux2 skills in this plugin
Other plugins' skills for the same job