lirrensi/agent-sommelier · Archived

tmux

Control tmux/psmux sessions for interactive CLIs, SSH connections, and parallel agent orchestration. Works cross-platform: tmux on Linux/macOS, psmux on Windows. Provides sync commands that send keys and automatically capture output. Triggers: "run in tmux", "create tmux session", "tmux", "SSH session", "parallel terminals", "run multiple agents".

First seen Mar 9, 2026

Installation

$ npx skills add lirrensi/agent-sommelier --skill tmux

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from lirrensi/agent-sommelier · top by installs.

npx skills add lirrensi/agent-sommelier

Browse all from lirrensi/agent-sommelier

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 5
License LICENSE
Default branch main
Open issues 1
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,097 B
  • docs SUMMARY.md 361 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 6 installs

SKILL.md

tmux Skill

Control tmux sessions programmatically. Send keys, capture output, run interactive processes.

Cross-platform:

  • Linux/macOS: Uses native tmux
  • Windows: Uses psmux (native Windows tmux, 95%+ syntax compatible)

Use tmux when:

  • SSH to remote servers (persistent sessions)
  • Interactive TTY needed (REPLs, shells, prompts)
  • Running multiple processes in parallel
  • Orchestrating coding agents

Don't use tmux for:

  • Simple background tasks → use bg run instead
  • One-shot commands → run directly

Helper: tmx

Primary: Python CLI tool (tmx) — installable via agent-sommelier-cli. Fallback: Shell scripts at skills/tmux/scripts/tmx.sh (bash) and tmx.ps1 (PowerShell).

Commands

Command Description
tmx install Ensure tmux/psmux is available (auto-install on Windows)
tmx create <name> [cmd] Create session, optionally run init cmd
tmx rm <name> Kill session
tmx sk <name> "<cmd>" Send keys (fire and forget)
tmx r <name> Read output (full scrollback)
tmx run <name> "<cmd>" [--timeout N] Send + wait N seconds + read output
tmx list [--json] List all sessions (rich table or JSON)
tmx manager Interactive session picker

Quick Start

tmx install
tmx create mysession
tmx run mysession "ls -la"
tmx r mysession
tmx rm mysession
tmx install
tmx create mysession
tmx run mysession "Get-ChildItem"

Pattern 1: SSH Sessions (Most Common)

# Create SSH session
tmx create server "ssh [email protected]"
tmx run server "hostname" --timeout 3
tmx sk server "mypassword"
tmx run server "tail -100 nginx/access.log" --timeout 5
tmx r server

Pattern 2: Background Process Monitoring

tmx create api "cd /app && python api.py"
tmx r api | grep -q "Listening" && echo "API is up"
tmx create db "docker run --name postgres postgres"
tmx list

Pattern 3: Interactive REPL

tmx create python "python3 -q"
tmx run python "import sys; print(sys.version)"
tmx run python "2 + 2" --timeout 3

Pattern 4: Parallel Agents

for i in 1 2 3; do
  tmx create "agent-$i" "cd /tmp/project$i && codex --yolo 'Fix bugs'"
done
tmx list
tmx r agent-1

Key Bindings (when attached)

Key Action
Ctrl+b d Detach from session
Ctrl+b c Create new window
Ctrl+b n/p Next/Previous window
Ctrl+b % Split vertical
Ctrl+b " Split horizontal

Deeper Reading

Topic File
Installation per-platform, platform differences, gotchas [references/setup.md](references/setup.md)