tmux-command

Execute slash commands and keystrokes in Claude Code tmux panes.

4|Updated Jan 12, 2017
One-click install
npx skills add https://github.com/brandon-fryslie/dotfiles --skill tmux-command
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tmux-command
Source: https://github.com/brandon-fryslie/dotfiles/tree/main/config/claude/skills/tmux-command
Command: npx skills add https://github.com/brandon-fryslie/dotfiles --skill tmux-command

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tmux, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows users to execute built-in slash commands or keystrokes in a tmux pane, enabling control over running agent sessions and Claude Code panes.

Core Features & Use Cases

  • Command Execution: Send slash commands like /clear, /compact, /model, and /rewind to Claude Code panes.
  • Key Stroke Injection: Send raw key strokes to drive interactive pickers in Claude Code panes.
  • Session Management: List, gather context, send commands, and read screen content in tmux panes.
  • Use Case: If you are working in a Claude Code pane and need to clear the context or switch models, you can use this Skill to execute the necessary commands directly.

Quick Start

Use the tmux-command skill to send the command '/clear' to the Claude Code pane with ID 'work:0.0'.

Frequently Asked Questions about tmux-command

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

FAQPage Schema
How do I send slash commands to a Claude Code pane running inside tmux?▼

You can send slash commands to a Claude Code pane in tmux by executing built-in slash commands like /clear, /compact, /model, and /rewind directly within the active session.

Can I inject raw keystrokes into a tmux pane to control interactive pickers?▼

Yes, you can inject raw keystrokes into a tmux pane to drive interactive pickers in Claude Code, enabling precise control over running agent sessions and CLI front-end operations.

What is the best way to manage and read screen content from multiple Claude Code sessions in tmux?▼

The best way to manage multiple Claude Code sessions in tmux is using command execution to list panes, gather context, send commands, and read screen content across running sessions.

Do I need tmux installed to execute commands and control Claude Code sessions?▼

Yes, you need tmux installed and CLI front-end support to execute commands and control Claude Code sessions, as this Skill relies on tmux for session management and keystroke injection.

How do I clear context or switch models in a running Claude Code agent session?▼

To clear context or switch models in a running Claude Code agent session, send the /clear or /model slash commands to the specific Claude Code pane in your tmux session.