LLM Skills
~/catalogue/debugging et maintenance//SKILL

tmux

/SKILL

A utiliser pour les sessions interactives existantes de tmux. Pour les commandes ponctuelles, utiliser l'interpréteur de commandes normal. Pour les nouveaux travaux d'arrière-plan non interactifs, uti

openclawopenclaw
386.5k
5 juin 2026
NOASSERTION
// contenu du skill

name: tmux

description: "Control tmux sessions/panes for interactive CLIs: list, capture output, send keys, paste text, monitor prompts."

metadata:

{

"openclaw":

{

"emoji": "🧵",

"os": ["darwin", "linux"],

"requires": { "bins": ["tmux"] },

"install":

[

{

"id": "brew",

"kind": "brew",

"formula": "tmux",

"bins": ["tmux"],

"label": "Install tmux (brew)",

},

],

},

}


tmux

Use for existing interactive tmux sessions. For one-shot commands, use normal shell. For new non-interactive background jobs, use background execution.

Basics

bash
tmux ls
tmux list-windows -t shared
tmux list-panes -t shared:0
tmux capture-pane -t shared:0.0 -p
tmux capture-pane -t shared:0.0 -p -S -

Target format: session:window.pane, e.g. shared:0.0.

Send input

Literal text, then Enter:

bash
tmux send-keys -t shared:0.0 -l -- "Please continue"
tmux send-keys -t shared:0.0 Enter

Special keys:

bash
tmux send-keys -t shared:0.0 C-c
tmux send-keys -t shared:0.0 C-d
tmux send-keys -t shared:0.0 Escape

Use -l -- for arbitrary text. Split text and Enter to avoid paste/newline surprises.

Sessions

bash
tmux new-session -d -s worker
tmux rename-session -t old new
tmux kill-session -t worker

Prompt checks

bash
tmux capture-pane -t worker-3 -p | tail -20
tmux capture-pane -t worker-3 -p | rg "proceed|permission|Yes|No|❯"

Approve/select only when the prompt is understood:

bash
tmux send-keys -t worker-3 -l -- "y"
tmux send-keys -t worker-3 Enter

Helpers

  • scripts/find-sessions.sh: discover sessions.
  • scripts/wait-for-text.sh: wait until pane output contains text.

Notes

  • capture-pane -p prints to stdout for scripts.
  • -S - captures full scrollback.
  • tmux sessions persist across SSH disconnects.
// source originale publique
openclaw/openclaw
/skills/tmux/SKILL.md
Licence : NOASSERTION. Consultez le dépôt avant toute réutilisation.
Projet indépendant, non affilié à Anthropic. Ce skill reste la propriété de son auteur original.
// installer ce skill
Collez cette commande dans votre terminal à la racine de votre projet :
mkdir -p .claude/commands && curl -o ".claude/commands/SKILL.md" "https://raw.githubusercontent.com/openclaw/openclaw/main/skills/tmux/SKILL.md"
Ensuite dans Claude Code, tapez /SKILL pour l'activer.
open_in_newVoir la source originale
// sauvegarder
Sauvegarde disponible après connexion.
loginSe connecter pour sauvegarder
// informations
Créateuropenclaw
Étoiles 386.5k
LicenceNOASSERTION
Mis à jour5 juin 2026
Format.md
AccèsGratuit
// similaires

Skills Debugging et maintenance

Voir toutarrow_forward