tmux-control
Skill5 starsChanged 8 months agoMITView on GitHub
Remote-control tmux sessions — create, attach, list, send keystrokes, and scrape pane output. Use when user says "create tmux session", "send keys to tmux", "read tmux output", "split pane", or "run command in tmux".
- Deletes or force-pushes
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- eins78/agent-skillstheir own version, first seen Oct 30, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- eins78/agent-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- apple-notesSkill
- apple-remindersSkill
- bear-notesSkill
- brainstormSkill
- cameraSkill
- content-creatorSkill
- context-healthSkill
- daily-briefingSkill
- deep-readSkill
- draft-messageSkill
- emailSkill
- exa-searchSkill
- gh-issuesSkill
- gif-searchSkill
- github-opsSkill
- google-workspaceSkill
- hue-lightsSkill
- image-genSkill
- imessageSkill
- memory-managerSkill
- migrate-openclawSkill
- notionSkill
- obsidianSkill
- password-managerSkill
- pdf-editorSkill
- peekabooSkill
- placesSkill
- podcast-makerSkill
- quick-researchSkill
- rss-monitorSkill
- security-auditSkill
- session-logsSkill
- setupSkill
- skill-creatorSkill
- slack-opsSkill
- smart-bedSkill
- sonosSkill
- speech-to-textSkill
- spotifySkill
- summarizeSkill
- task-trackerSkill
- text-to-speechSkill
- things-macSkill
- trelloSkill
- trend-scoutSkill
- video-extractSkill
- weatherSkill
- whatsappSkill
- x-twitterSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 130
Always check if tmux is installed first: which tmux
- Distinctive: line 131
If not installed, show the install command and stop
- Very specific: line 132
Before sending keys, verify the session exists with tmux has-session -t <name>
- Very specific: line 133
When capturing output, always save to workspace/tmux-<session>-<timestamp>.txt for long output
- Very specific: line 134
Add appropriate sleep between send-keys and capture-pane to allow commands to complete
- Very specific: line 135
Never send destructive commands (rm -rf, DROP TABLE, etc.) without explicit user confirmation
- Very specific: line 136
Use -d (detached) when creating sessions programmatically — never attach interactively
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tmux Control
Remote-control tmux sessions programmatically. tmux is usually pre-installed;
if not, install it with your package manager.
Prerequisites
# macOS
brew install tmux
# Ubuntu/Debian
sudo apt install tmux
# Check version
tmux -VCommands
Session Management
| Command | Description |
tmux list-sessions | List all active sessions |
tmux new-session -d -s <name> | Create a new detached session |
tmux attach-session -t <name> | Attach to a session (interactive) |
tmux kill-session -t <name> | Kill a session |
tmux has-session -t <name> 2>/dev/null | Check if session exists (exit 0 = yes) |
Sending Commands & Keystrokes
# Run a command in a session (sends text + Enter)
tmux send-keys -t <session> "ls -la" Enter
# Send to specific window and pane (session:window.pane)
tmux send-keys -t myapp:0.1 "npm run dev" Enter
# Send a raw keystroke (e.g. Ctrl+C)
tmux send-keys -t <session> C-c
# Send without pressing Enter (useful for partial input)
tmux send-keys -t <session> "some text"Capturing Pane Output
# Capture current visible pane content
tmux capture-pane -t <session> -p
# Capture full scrollback buffer to file
tmux capture-pane -t <session> -p -S - > workspace/tmux-output.txt
# Capture last 100 lines
tmux capture-pane -t <session> -p -S -100Window & Pane Management
# Create a new window in a session
tmux new-window -t <session> -n <window-name>
# Split pane horizontally (left/right)
tmux split-window -h -t <session>
# Split pane vertically (top/bottom)
tmux split-window -v -t <session>
# List windows in a session
tmux list-windows -t <session>
# List panes in a session
tmux list-panes -t <session>Usage Examples
Create a session and run a dev server:
tmux new-session -d -s devserver
tmux send-keys -t devserver "cd ~/project && pnpm dev" EnterCapture output from a running process:
tmux capture-pane -t devserver -p -S -50Send Ctrl+C then restart:
tmux send-keys -t devserver C-c
sleep 1
tmux send-keys -t devserver "pnpm dev" EnterRun a command and capture result:
tmux new-session -d -s scratch
tmux send-keys -t scratch "git status" Enter
sleep 1
tmux capture-pane -t scratch -p
tmux kill-session -t scratchRules
- Always check if tmux is installed first:
which tmux - If not installed, show the install command and stop
- Before sending keys, verify the session exists with
tmux has-session -t <name> - When capturing output, always save to
workspace/tmux-<session>-<timestamp>.txtfor long output - Add appropriate
sleepbetweensend-keysandcapture-paneto allow commands to complete - Never send destructive commands (
rm -rf,DROP TABLE, etc.) without explicit user confirmation - Use
-d(detached) when creating sessions programmatically — never attach interactively - Confirm actions with a single line: "Sent '
<command>' to session<name>"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

