Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Tmux Session Pilot

    1

    Drive interactive command-line programs through persistent tmux sessions: list and attach sessions, send keystrokes, capture panes, split windows, paste buffers

    Free

    3 usesSecurity scanned
    Tmux Session Pilot

    Tmux Session Pilot

    Example session with this skill installed

    Start a new tmux session named 'db-monitor', split it horizontally, and run 'htop' in the right pane while tailing logs in the left.

    • Read your context and instructions
    • Compiled the tmux session pilot

    Session 'db-monitor' created.
    Left pane (db-monitor.0): tailing /var/log/syslog
    Right pane (db-monitor.1): htop active.
    Pane split and commands sent successfully.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    Standard agents fail when they encounter interactive CLI tools like SSH, REPLs, or database consoles that require a persistent terminal state. Running one-shot commands often loses the session context or drops input when programs aren't ready to receive it.

    What it does

    • Manages persistent terminal sessions using tmux to drive long-running interactive processes.
    • Sends specific keystrokes, including control sequences like Ctrl-C or Enter, to interactive programs.
    • Captures and reads terminal output, including specific pane contents and scrollback history.
    • Orchestrates complex terminal layouts by splitting, resizing, and addressing multiple panes.
    • Pastes large multi-line scripts or buffers to avoid input buffer overflows.

    Frameworks & tools

    Requires tmux 2.9 or higher. Works with any CLI-based REPL, SSH, htop, and database shells.

    Why this beats prompting it yourself

    Managing tmux via raw prompts often leads to quoting errors and dropped input. This skill implements specific polling patterns and buffer management to ensure the agent waits for prompts and handles multi-line scripts without corruption.

    Use cases

    • Managing remote servers via persistent SSH sessions without losing state.
    • Interacting with Python, Node.js, or SQL REPLs to debug code in real-time.
    • Monitoring logs in one pane while executing commands in another.
    • Automating setup scripts that require interactive user confirmation.

    Known limitations

    Does not support GUI applications. Not suitable for multiplexing security-sensitive sessions that must remain unreadable to other local users on the system.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    Requires tmux 2.9+ installed on the host. Not for GUI apps. Standard local user permissions apply to session visibility.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    3 uses

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 3 months ago

    • Free with an Agensi account

    Permissions

    No special permissions declared or detected

    Listed3 months ago

    What's inside

    Frequently Asked Questions

    Unlike standard execution tools that run one-off commands, this skill creates persistent terminal sessions. This allows your agent to handle interactive programs like SSH or database consoles that require a continuous state and real-time input.

    You will need a system with tmux version 2.9 or higher installed. The skill is designed to work with any AI agent framework that supports external tool calling or function execution.

    Absolutely. The skill includes functions to split windows and address specific panes, enabling your agent to monitor logs in one area while executing commands in another simultaneously.

    To prevent command corruption, the skill uses specialized buffer management and polling patterns. This ensures that multi-line scripts and complex control characters are sent accurately without overflowing the terminal's input buffer.

    The package includes the full tool definition, the logic for session management, and documentation for integrating it into your agent's workflow. You will also receive any minor version updates and bug fixes for this version of the skill.

    New in Workflow Automation

    Free