✓ Verified
💻 Development
✓ Enhanced Data
Claude Tmux
Manage Claude Code instances living inside tmux sessions.
- Rating
- 4.5 (341 reviews)
- Downloads
- 39,303 downloads
- Version
- 1.0.0
Overview
Manage Claude Code instances living inside tmux sessions.
Complete Documentation
View Source →
Goal
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.”Conventions
- Session naming – We refer to tmux sessions by their tmux session name. Session names can be assigned using
tmux new-session -s. E.g. if we had created a tmux session for project FooBar usingtmux new-session -s foobar, then we will refer to this session by the namefoobar. - Claude pane – Within a session, there should be exactly one pane whose window title or pane title is
claude. If the pane isn’t named, rename it first (Ctrl-b : select-pane -T claude). - Standard markers – Claude Code prints user prompts with
❯ …and its replies with⏺ …. We rely on that to spot the latest exchange.
Workflow
1. Locate the Claude pane
text
tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index} #{pane_title}' | grep "^<session_name>" | grep -i claude
- If nothing matches, say “No pane titled ‘claude’ found inside session
.” - If multiple panes match, pick the one with the lowest
window_index/pane_indexunless context says otherwise. - Record the target as
for subsequent commands.: .
2. View the latest exchange
text
tmux capture-pane -p -J -t <target> -S -200
- Scan from the bottom upward for the last
❯block (user) followed by⏺(Claude). Quote those lines back to the user. - If no
❯/⏺pair exists, say “No exchange found yet.”
3. Send a prompt
text
tmux send-keys -t <target> -l -- "<prompt>"
sleep 0.1
tmux send-keys -t <target> Enter
- After sending, poll using capture-pane until a new
⏺block appears (or a sensible timeout, e.g., 3 minutes). Report the reply verbatim. - If the timeout expires, say “Claude hasn’t replied yet—still waiting.”
4. Run /compact
Same as sending any prompt, but send /compact. Confirm with “Triggered /compact in session 5. Dump raw buffer (debug)
text
tmux capture-pane -p -J -t <target> -S -400
Tips
- Always double-check you’re addressing the right pane before sending commands—especially in shared sessions.
- If the Claude pane lives on a non-default tmux socket, prefix every tmux command with
tmux -S /path/to/socket …. - When summarizing results, mention the session/pane you used—for traceability.
- If the user wants multiple sessions handled, repeat the workflow per session.
Installation
Terminal bash
openclaw install claude-tmux
Copied!
💻Code Examples
### 3. Send a prompt
-3-send-a-prompt.txt
tmux send-keys -t <target> -l -- "<prompt>"
sleep 0.1
tmux send-keys -t <target> EnterTags
#coding_agents-and-ides
#code
Quick Info
Category Development
Model Claude 3.5
Complexity One-Click
Author paulrahul
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install claude-tmux
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
⚡ GPT-Optimized
)}
★ 3.8 (274)
↓ 17,648
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0