tmux

Create and manage tmux sessions for background process execution.

24|6|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/johnlindquist/claude --skill tmux-johnlindquist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/johnlindquist/claude/tree/main/skills/tmux
Command: npx skills add https://github.com/johnlindquist/claude --skill tmux-johnlindquist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you run, monitor, and manage long-running commands by creating and managing tmux sessions, keeping tasks alive after you close the terminal.

Core Features & Use Cases

  • Create and detach sessions
  • Send commands to running sessions and windows
  • Capture live output from panes
  • Attach to sessions or kill them

Quick Start

Start a background server: tmux new-session -d -s dev 'npm run dev'

Frequently Asked Questions about tmux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep a terminal command running after I close my session?

Create a detached tmux session with a long-running command. Tmux is a terminal multiplexer that maintains background processes in named sessions, letting you close your connection while tasks continue executing. Use `tmux new-session -d -s name 'command'` to start detached.

Can I send commands to a tmux session without attaching to it?

Yes. Tmux lets you send commands to running sessions and windows directly from the command line without attaching. Use `tmux send-keys -t session:window 'command' Enter` to inject commands and capture output from panes remotely.

How do I capture output from a background process in tmux?

Tmux stores pane history and lets you capture live output from running processes. Query a pane's buffer with `tmux capture-pane -t session:window -p` to retrieve command output without interrupting execution.

What's the best way to manage multiple terminal windows for development tasks?

Tmux coordinates multiple windows and panes within sessions, isolating related tasks. Create windows for different tools—dev servers, test suites, logs—attach when needed, and detach to keep them running independently.

Do I need separate tmux sessions for different projects or services?

Yes. Tmux supports per-socket isolation, allowing dedicated sessions for different projects and services. Use descriptive session names and separate sockets to prevent conflicts and keep agent work organized across concurrent operations.

Why would I use tmux instead of running commands in the foreground?

Tmux decouples processes from terminal lifecycle, so work survives disconnections and terminal closures. It also enables output history capture, coordinated multi-window workflows, and reliable management of dev servers and test suites that must stay live.