This handles the annoying problem of running interactive CLI tools like vim, Python REPLs, or git rebase through Claude. Standard bash can't control these because they need a real terminal, so this uses tmux's detached sessions with send-keys and capture-pane to programmatically drive them. You spin up a session, send input as tmux key names (Enter, Escape, C-c), capture the screen state, repeat as needed. The pattern works well once you remember to sleep briefly after starting a session and always send Enter as a separate argument. Makes it possible to automate things that genuinely need terminal interaction without building your own PTY management.
npx skills add https://github.com/obra/superpowers-lab --skill using-tmux-for-interactive-commands