using-tmux-for-interactive-commands

Automate interactive CLI tools by managing detached tmux sessions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/bjornslib/cobuilder-harness --skill using-tmux-for-interactive-commands-bjornslib
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-tmux-for-interactive-commands
Source: https://github.com/bjornslib/cobuilder-harness/tree/main/.claude/skills/using-tmux-for-interactive-commands
Command: npx skills add https://github.com/bjornslib/cobuilder-harness --skill using-tmux-for-interactive-commands-bjornslib

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interactive CLI tools such as vim, git rebase -i, and Python REPL require a real terminal and cannot be controlled by plain shells. This skill provides a tmux-based approach to manage detached sessions and send-keys, enabling automation and scripting of interactive workflows.

Core Features & Use Cases

  • Detach and reuse interactive sessions with tmux for programs that require real-time input/output.
  • Programmatically send keystrokes and capture screen output using tmux commands (new-session, send-keys, capture-pane, kill-session).
  • Use cases include editing with vim, performing interactive git operations, and running REPLs or full-screen terminal apps, as well as remote orchestration of Claude Code sessions.

Quick Start

Launch a detached tmux session for your interactive command and use the tmux wrapper to send input and capture output as the session progresses.

Frequently Asked Questions about using-tmux-for-interactive-commands

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

FAQPage Schema
How do I automate interactive CLI tools that require a real terminal?

You can automate interactive CLI tools by leveraging tmux to manage detached sessions, send keystrokes programmatically, and capture screen output for scripted control and monitoring.

Can I script vim or git rebase operations without keeping a terminal window open?

Yes, you can script vim and git rebase operations by launching a detached tmux session and using a shell wrapper to send input and capture output without an active terminal window.

What is the best way to control a Python REPL from a shell script?

The best way to control a Python REPL from a shell script is using tmux send-keys to pass real-time input and capture-pane to retrieve output from a detached session.

Do I need tmux installed to automate full-screen terminal apps?

Yes, tmux must be installed to automate full-screen terminal apps. The skill provides a shell wrapper that relies on tmux commands to start, send input, capture output, and stop interactive sessions.

Does this approach work for orchestrating remote Claude Code sessions?

Yes, this tmux-based approach works for orchestrating remote Claude Code sessions by managing detached sessions and sending keystrokes for automated, real-time interactive control.