terminal-persistence

Configure macOS power settings, tmux sessions, and SSH keep-alive for terminal persistence.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/eugene-belkovich/ai-setup --skill terminal-persistence
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terminal-persistence
Source: https://github.com/eugene-belkovich/ai-setup/tree/main/claude/base/skills/workflow/terminal-persistence
Command: npx skills add https://github.com/eugene-belkovich/ai-setup --skill terminal-persistence

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure macOS to keep long-running terminal processes alive by preventing sleep, preserving sessions, and enabling remote workflows.

Core Features & Use Cases

  • tmux-based session persistence to survive terminal disconnections.
  • Sleep prevention during long-running agents, builds, or migrations.
  • SSH keep-alive improvements for stable remote work.

Quick Start

Run the terminal-persistence skill to apply sleep-prevention settings and initialize resilient tmux workflows on a new machine.

Frequently Asked Questions about terminal-persistence

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

FAQPage Schema
How do I keep long-running terminal tasks alive on macOS when the screen sleeps?

To keep terminal tasks alive on macOS, you can enforce system-level power settings to prevent sleep and use tmux sessions to preserve state. This ensures long-running builds and migrations are not interrupted by idle timeouts.

Can I use tmux to prevent SSH disconnects during remote work?

Yes, tmux provides session persistence to survive terminal disconnections during remote work. By initializing resilient tmux workflows and applying SSH keep-alive improvements, remote sessions remain stable across network interruptions.

What is the best way to configure macOS sleep prevention for agent workflows?

The best way to configure macOS sleep prevention for agent workflows is to apply system-level power settings alongside tmux. Wrapper scripts enforce these configurations to maintain active session state and prevent idle system suspension.

Does tmux session management work for local builds and migrations on macOS?

Yes, tmux session management works for local builds and migrations on macOS by preserving the terminal state. It enforces power settings and uses wrapper scripts to ensure progress is maintained without terminal disconnections.

Why do my remote SSH sessions drop during long migrations and how to fix it?

Remote SSH sessions drop during long migrations due to idle network timeouts. You can fix this by applying SSH keep-alive improvements and using tmux to preserve the session state, ensuring remote work resumes even after a disconnect.