Tmux
Tmux allows you to manage multiple terminal sessions within a single window, boosting productivity and remote work efficiency.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add johnlindquist-tmux npx -- -y @trustedskills/johnlindquist-tmux
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"johnlindquist-tmux": {
"command": "npx",
"args": [
"-y",
"@trustedskills/johnlindquist-tmux"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables an AI agent to manage and interact with Tmux, a terminal multiplexer. It allows the agent to create, list, attach to, and control multiple terminal sessions within a single window. The agent can execute commands in these sessions, capture their output, and even automate workflows like running development servers or tests in the background. This is particularly useful for remote work and managing long-running processes.
When to use it
- Running a development server while performing other tasks on your local machine.
- Executing automated tests and capturing their output for analysis.
- Managing multiple services (frontend, backend, database) within separate terminal windows.
- Keeping background processes running even when you disconnect from a remote server.
- Automating repetitive tasks that require interacting with the command line.
Key capabilities
- Creating new Tmux sessions with custom names and working directories.
- Listing existing Tmux sessions, including detailed information about their windows.
- Sending commands to specific sessions or windows within a session.
- Capturing output from terminal panes, including history.
- Killing individual sessions or the entire Tmux server.
- Attaching to existing sessions or creating new ones if they don't exist.
- Managing windows and panes within a session (creating, selecting, killing).
Example prompts
- "Create a new tmux session named 'devserver' in the /project directory running
npm run dev." - "List all active tmux sessions."
- "Capture the last 50 lines of output from the 'tests' tmux session and save them to test-output.txt."
Tips & gotchas
- Prerequisites: Tmux must be installed on the system where the agent is running (using
brew install tmuxorapt install tmux). - The skill relies on precise command syntax; errors in commands can lead to unexpected behavior.
- Be mindful of session and window names, as they are used for targeting commands and capturing output.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.