Install
openclaw skills install claude-tmuxManage 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).
openclaw skills install claude-tmuxGive 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 <session_name>. 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.<session>:<window>.<pane> 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 <name>.” (Claude will respond in-pane; no need to quote unless asked.)
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.