tmux
What it does
This skill lets the agent look into and type into terminal sessions managed by tmux. It is for developers who run long or interactive command line tools in a persistent terminal.
When to use it
- ✓When a command is already running in a tmux session and you want the agent to check its output.
- ✓When an interactive command line tool needs a reply typed into it.
- ✓When you want a background terminal session started for a task that keeps running.
Skill link
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/tmux/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Check the tmux session called worker and tell me whether the build is still running.”
5 new skills a week. 1 minute to read.
How it works
The agent lists sessions and panes, reads what is shown on screen, and sends keys or text when asked. It does not approve a confirmation prompt until it understands what that prompt does.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
tmux
Use for interactive commands that are already running in tmux or need a persistent terminal. Use normal terminal execution for one-shot commands.
Prerequisite
command -v tmux
If the command is absent, tell the user that tmux must be installed; do not silently install it.
Basics
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 -
Targets use session:window.pane, for example shared:0.0.
Send input
Send literal text and Enter separately:
tmux send-keys -t shared:0.0 -l -- "Please continue"
tmux send-keys -t shared:0.0 Enter
Special keys:
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. Never approve a confirmation prompt until its target and consequences are understood.
Sessions
tmux new-session -d -s worker
tmux rename-session -t old new
tmux kill-session -t worker
Killing a session is destructive. Do it only when the user requested that outcome or the session was created solely for the current task and is no longer needed.
Helpers
skill_view returns this Skill's baseDirectory. Use it to run:
<baseDirectory>/scripts/find-sessions.shto discover sessions, including custom socket paths.<baseDirectory>/scripts/wait-for-text.shto wait until pane output contains a pattern.
capture-pane -p writes to stdout, -S - includes full scrollback, and tmux sessions persist across SSH disconnects.
FAQ
Does it install tmux?
No. If tmux is missing, the agent tells you it must be installed rather than installing it silently.
Can it close a session?
Yes, but only when you ask for that, or when the session was created only for the current task and is no longer needed.
How are sessions and panes named?
A target uses the form session:window.pane, such as shared:0.0.
Details
Original description by the author
Control tmux sessions and panes for interactive CLIs: discover sessions, capture output, send keys, paste text, and monitor prompts.
repo: EKKOLearnAI/ekko-studio
Popularity
- GitHub stars
- 12k
- Ranking position
- #11578
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
1password
12kHelps your agent use the 1Password CLI to get secrets for commands and config files without showing them in chat, logs or saved files.
apple-notes
12kHelps your agent create, search, read, edit, move or delete Apple Notes on a Mac, using the memo command line tool.
apple-reminders
12kHelps your agent list, create, edit, complete or delete Apple Reminders and reminder lists on a Mac, using the remindctl tool.
document-to-action-items
12kHelps your agent turn a document, meeting transcript or set of notes into a clear table of tasks, owners, deadlines and decisions.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.