tmux — community community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Terminal Management Agents requiring advanced session management and automation capabilities with tmux. Enterprise-grade AI Agent system for code generation, analysis, and orchestration

Dwsy Dwsy
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The tmux skill by Dwsy is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for Terminal Management Agents requiring advanced session management and automation capabilities with tmux.

Core Value

Empowers agents to create, manage, and persist tmux sessions using private sockets and configurable auto-cleanup, leveraging JSON persistence and categorization by task, service, or agent.

Capabilities Granted for tmux

Automating temporary task sessions with tmux
Managing long-running service sessions for efficient resource allocation
Debugging agent-specific sessions using tmux session naming and states

! Prerequisites & Limits

  • Requires filesystem access for socket and session persistence
  • Limited to tmux protocol and configuration
  • Auto-cleanup timer is configurable but defaults to 24 hours
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

tmux

Install tmux, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

tmux Skill

Core Concepts

Socket: /tmp/pi-tmux-sockets/pi.sock (private, no conflicts with personal tmux)

Session Naming: pi-{category}-{name}-{timestamp}

  • Categories: task (temporary), service (long-running), agent (agent-specific)

Session States: running | idle | exited

Persistence: /tmp/pi-tmux-sessions.json

Auto-cleanup: Inactive sessions > 24h removed (configurable)

CLI Commands

bash
1bun ~/.pi/agent/skills/tmux/lib.ts <command> 2 3create <name> <command> [category] # Create session, prints monitoring command 4list [filter] # List sessions with status 5status <id> # Session details 6send <id> <keys> # Send keystrokes (literal mode, safe) 7capture <id> [lines] # Capture pane output (default: 200) 8kill <id> # Terminate session 9cleanup [hours] # Remove old sessions (default: 24h) 10attach <id> # Print attach command 11sync # Sync session state with tmux

TUI: bun ~/.pi/agent/skills/tmux/tui.ts (visual management, shortcuts: r/n/c/s/a/k/q)

TypeScript API

typescript
1import { TmuxManager } from "~/.pi/agent/skills/tmux/lib.ts"; 2 3const tmux = new TmuxManager({ autoCleanup: false }); // optional config 4 5// Session lifecycle 6const session = await tmux.createSession(name, command, category); 7await tmux.killSession(session.id); 8 9// Output handling 10const output = await tmux.capturePane(target, lines); 11const success = await tmux.waitForText(target, pattern, { timeout: 60 }); 12 13// State management 14const sessions = await tmux.listSessions(filter); 15const status = await tmux.getSessionStatus(id); 16await tmux.sync(); 17await tmux.cleanup(hours);

Key Rules

  1. Always print monitoring command after session creation:

    tmux -S /tmp/pi-tmux-sockets/pi.sock attach -t {session-id}
    
  2. Use send for interactive tools (Python REPL, gdb, databases):

    bash
    1# Python REPL: always use PYTHON_BASIC_REPL=1 2bun ~/.pi/agent/skills/tmux/lib.ts create python "PYTHON_BASIC_REPL=1 python3 -q" task 3bun ~/.pi/agent/skills/tmux/lib.ts send pi-task-python-* "print('Hello')"
  3. Category selection:

    • task: compilation, testing, temporary operations
    • service: dev servers, databases, persistent services
    • agent: training, data processing, agent-specific tasks
  4. Safe key injection: send uses literal mode (-l), no shell escaping needed

  5. Session recovery: Run sync if session not found

Helper Scripts

bash
1# Wait for text pattern with timeout 2./scripts/wait-for-text.sh -t session:0.0 -p 'pattern' [-F] [-T 20] [-i 0.5] [-l 2000] 3 4# List sessions with metadata 5./scripts/find-sessions.sh -S "$SOCKET" 6./scripts/find-sessions.sh --all

Requirements

  • tmux (Linux/macOS)
  • Bun runtime
  • Bash (helper scripts)

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is tmux?

Ideal for Terminal Management Agents requiring advanced session management and automation capabilities with tmux. Enterprise-grade AI Agent system for code generation, analysis, and orchestration

How do I install tmux?

Run the command: npx killer-skills add Dwsy/agent/tmux. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for tmux?

Key use cases include: Automating temporary task sessions with tmux, Managing long-running service sessions for efficient resource allocation, Debugging agent-specific sessions using tmux session naming and states.

Which IDEs are compatible with tmux?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for tmux?

Requires filesystem access for socket and session persistence. Limited to tmux protocol and configuration. Auto-cleanup timer is configurable but defaults to 24 hours.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add Dwsy/agent/tmux. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use tmux immediately in the current project.

Related Skills

Looking for an alternative to tmux or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI