terminal-attach-tmux-session

Attach to existing tmux sessions or panes on local or remote SSH targets.

19|14|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/X-School-Academy/skill-pilot --skill terminal-attach-tmux-session
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terminal-attach-tmux-session
Source: https://github.com/X-School-Academy/skill-pilot/tree/main/core/skills/system/terminal-attach-tmux-session
Command: npx skills add https://github.com/X-School-Academy/skill-pilot --skill terminal-attach-tmux-session

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to seamlessly reconnect to an already running tmux session or a specific pane within a session, avoiding the need to recreate or restart processes.

Core Features & Use Cases

  • Session Reattachment: Attach to a named tmux session.
  • Pane Specific Attachment: Attach to a particular pane within a tmux session.
  • Remote Target Support: Connect to tmux sessions running on local or remote SSH hosts.
  • Use Case: You started a long-running data processing job in a tmux session on a remote server and got disconnected. Use this Skill to reattach to that specific session and monitor its progress.

Quick Start

Attach to the tmux session named 'work' on your local machine with default terminal dimensions.

Frequently Asked Questions about terminal-attach-tmux-session

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

FAQPage Schema
How do I reconnect to an existing tmux session after an SSH disconnect?

You can attach to a specific pane within a tmux session by referencing the session and pane directly. This skill validates the specific pane reference against the target system's tmux configuration to reconnect you to that exact interactive terminal.

Can I attach to a specific pane within a tmux session remotely?

You can attach to a specific pane within a tmux session by referencing the session and pane directly. This skill validates the specific pane reference against the target system's tmux configuration to reconnect you to that exact interactive terminal.

Does attaching to a tmux session over SSH require custom terminal dimensions?

Attaching to a tmux session over SSH supports configurable terminal dimensions to re-establish your interactive command-line environment. You can use default dimensions or specify custom sizing when reconnecting to local or remote targets.

What happens if I try to attach to a tmux session that does not exist on the remote host?

If you try to attach to a tmux session that does not exist, the attachment fails. This skill validates session and pane references against the target system's tmux configuration before attempting to re-establish the interactive environment.

Why attach to an existing tmux session instead of starting a new one?

Attaching to an existing tmux session allows you to seamlessly reconnect to already running processes, avoiding the need to recreate or restart long-running jobs. This prevents losing progress on tasks like remote data processing when disconnected.