tmux
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
npx skills add SafeAI-Lab-X/ClawKeeper --skill tmux --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- When to Use
- When NOT to Use
- Example Sessions
- Common Commands
- List Sessions
- Capture Output
- Send Keys
- Window/Pane Navigation
- Session Management
- Sending Input Safely
- Claude Code Session Patterns
- Check if Session Needs Input
- Approve Claude Code Prompt
- Check All Sessions Status
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"
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.
