localsetup-tmux-shared-session-workflow

Execute guarded host commands in a persistent tmux session via tmux_ops.

3|2|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/cptnfren/localsetup --skill localsetup-tmux-shared-session-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: localsetup-tmux-shared-session-workflow
Source: https://github.com/cptnfren/localsetup/tree/main/_localsetup/skills/localsetup-tmux-shared-session-workflow
Command: npx skills add https://github.com/cptnfren/localsetup --skill localsetup-tmux-shared-session-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a guarded, repeatable workflow for running host commands inside a tmux session, ensuring session persistence, isolation, and correct sudo handling during operations.

Core Features & Use Cases

  • Guarded command execution in a persistent tmux session using the tmux_ops tool.
  • Remote support via REMOTE_TMUX_HOST for executing on VMs or remote machines.
  • Clear session selection, probing, and step-by-step command submission with logging for auditability.

Quick Start

Run tmux_ops pick to select or create a session, attach to it, probe sudo status, and then execute commands one step at a time in the chosen session.

Frequently Asked Questions about localsetup-tmux-shared-session-workflow

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

FAQPage Schema
How do I run server commands in a persistent tmux session with sudo and logging?

Running server commands in a persistent tmux session with sudo and logging is automated through a structured workflow that selects a session, probes sudo readiness, and submits commands step-by-step while writing activity to per-session log files for auditability.

What is the best way to execute guarded commands on a remote VM using tmux?

Executing guarded commands on a remote VM using tmux is handled by setting the REMOTE_TMUX_HOST environment variable, which routes the structured pick, probe, send, and wait command execution workflow to the target remote machine in a controlled context.

How does tmux session management work for isolated command execution?

tmux session management for isolated command execution works by using the tmux_ops pick step to select or create a dedicated session, ensuring commands run persistently and isolated from other terminal operations before probing and sending inputs.

Can I automate sudo command execution in tmux without losing session state?

Automating sudo command execution in tmux without losing session state is supported by the probe step, which verifies sudo readiness before the wait and send steps execute commands, keeping the persistent tmux session active throughout the operation.

Do I need a specific tmux_ops tool to select and create sessions for remote execution?

You need the tmux_ops workflow tool to select and create sessions for remote execution, as it provides the structured pick, probe, send, and wait operations required to manage the persistent tmux context and log activity.

Why use a structured tmux workflow instead of running commands directly over SSH?

Using a structured tmux workflow instead of running commands directly over SSH ensures session persistence, isolation, and auditable logging, preventing dropped connections from interrupting operations and providing a guarded, repeatable execution context.