run-long-running-processes-in-tmux

Manage long-running processes in detached tmux sessions with command injection and output capture.

2|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/ucirello/sgai --skill run-long-running-processes-in-tmux-ucirello
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-long-running-processes-in-tmux
Source: https://github.com/ucirello/sgai/tree/main/cmd/sgai/skel/.sgai/skills/run-long-running-processes-in-tmux
Command: npx skills add https://github.com/ucirello/sgai --skill run-long-running-processes-in-tmux-ucirello

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust method for managing long-running processes in detached terminal sessions, ensuring they can be monitored, interacted with, and cleaned up reliably.

Core Features & Use Cases

  • Detached Execution: Run servers, daemons, or any long-running command in the background without keeping a terminal attached.
  • Session Management: Create, verify, send commands to, and kill tmux sessions.
  • Output Capture: Capture the output of background processes for logging or analysis.
  • Use Case: You need to run a local development server that must stay active even after you close your terminal. This Skill can start the server in a detached tmux session, and you can later reattach to check its status or send commands.

Quick Start

Use the run-long-running-processes-in-tmux skill to start a detached tmux session named 'my_server' running the command 'python -m http.server 8000'.

Frequently Asked Questions about run-long-running-processes-in-tmux

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

FAQPage Schema
How do I run a background process in a detached tmux session?

This skill manages long-running processes in detached tmux sessions, allowing you to start commands like local development servers in the background. It handles session creation, verification, and command injection so processes continue running after you close your terminal.

How do I capture the output of a background process running in tmux?

This skill provides output capture functionality for background processes running inside tmux sessions. You can retrieve the terminal output generated by the detached session for logging or analysis without needing to reattach to the terminal.

What is the best way to keep a local development server running after closing the terminal?

The best way to keep a local development server running after closing the terminal is using detached execution via tmux. This skill starts your server in a background session that persists independently of your active terminal connection.

Do I need tmux installed to manage background processes with this skill?

Yes, you need tmux installed and configured on your system to manage background processes with this skill. It relies entirely on tmux's session management capabilities to handle detached execution and command injection.

Can I send commands to a running background process in a tmux session?

Yes, you can send commands to a running background process through this skill's command injection feature. It supports sending new commands into existing detached tmux sessions for remote interaction with your server processes or automated tasks.

How do I manage the lifecycle of background processes in tmux?

You manage the lifecycle of background processes in tmux by using this skill to create, verify, and kill sessions. It provides full session management capabilities to monitor, interact with, and cleanly clean up long-running commands.