Agent skill

tmux

Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.

SafeAI-Lab-Xgithub.com/SafeAI-Lab-XGitHub ↗
claude-codeships scripts
Install
npx skills add SafeAI-Lab-X/ClawKeeper --skill tmux --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 3 KB
Bundled scripts: yes
Path: legacy/clawkeeper-watcher/skills/tmux/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,034
Language: TypeScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# tmux Session Control Control tmux sessions by sending keystrokes and reading output. Essential for managing Claude Code sessions. ## When to Use ✅ **USE this skill when:** - Monitoring Claude/Codex sessions in tmux - Sending input to interactive terminal applications - Scraping output from long-running processes in tmux - Navigating tmux panes/windows programmatically - Checking on background work in existing sessions ## When NOT to Use ❌ **DON'T use this skill when:** - Running one-off shell commands → use `exec` tool directly - Starting new background processes → use `exec` with `background:true` - Non-interactive scripts → use `exec` tool - The process isn't in tmux - You need to create a new tmux session → use `exec` with `tmux new-session` ## Example Sessions | Session | Purpose | | ----------------------- | --------------------------- | | `shared` | Primary interactive session | | `worker-2` - `worker-8` | Parallel worker sessions | ## Common Commands ### List Sessions ```bash tmux list-sessions tmux ls ``` ### Capture Output ```bash # Last 20 lines of pane tmux capture-pane -t shared -p | tail -20 # Entire scrollback tmux capture-pane -t shared -p -S - # Specific pane in w

What's inside
Steps it walks through
  1. When to Use
  2. When NOT to Use
  3. Example Sessions
  4. Common Commands
  5. List Sessions
  6. Capture Output
  7. Send Keys
  8. Window/Pane Navigation
  9. Session Management
  10. Sending Input Safely
  11. Claude Code Session Patterns
  12. Check if Session Needs Input
  13. Approve Claude Code Prompt
  14. Check All Sessions Status
Ships with 2 files
  • scripts/find-sessions.sh
  • scripts/wait-for-text.sh
Commands it runs
tmux list-sessions
tmux ls
Last 20 lines of pane
tmux capture-pane -t shared -p | tail -20
Entire scrollback
tmux capture-pane -t shared -p -S -
Specific pane in window
tmux capture-pane -t shared:0.0 -p
Send text (doesn't press Enter)
tmux send-keys -t shared "hello"
More from ClawKeeper
All skills →
About this skill
What does the tmux skill do?

Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.

How do I install it?

Run `npx skills add SafeAI-Lab-X/ClawKeeper --skill tmux --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From SafeAI-Lab-X/ClawKeeper, a repository with 1,034 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going