By ShawnPana
Manage multiple concurrent tmux sessions and enable AI agents to communicate across panes using tmux-bridge CLI with atomic commands and read-before-act enforcement.
One-command tmux setup with terminal automation for AI agents.
tmux-bridge CLI lets any agent read, type, and send keys to any panetmux-bridge read codex 20 # read the pane
tmux-bridge type codex "review src/auth.ts" # type into it
tmux-bridge keys codex Enter # press enter
https://github.com/user-attachments/assets/9d5463ba-5972-4bbd-a07e-b585f1178011
curl -fsSL https://shawnpana.com/smux/install.sh | bash
This installs:
Everything lives in ~/.smux/.
All keybindings use Option (Alt) with no prefix required.
| Key | Action |
|---|---|
Option+i/k/j/l | Navigate up/down/left/right (no wrap) |
Option+n | New pane (split + auto-tile) |
Option+w | Close pane |
Option+o | Cycle layouts |
Option+g | Mark pane |
Option+y | Swap with marked pane |
| Key | Action |
|---|---|
Option+m | New window |
Option+u | Next window |
Option+h | Previous window |
| Key | Action |
|---|---|
Option+Tab | Toggle scroll mode |
i/k | Scroll up/down |
Shift+I/K | Half-page up/down |
q or Escape | Exit scroll mode |
A CLI for cross-pane communication. Any tool that can run bash can use it — Claude Code, Codex, Gemini CLI, or a plain shell script.
| Command | Description |
|---|---|
tmux-bridge list | Show all panes with target, process, label |
tmux-bridge read <target> [lines] | Read last N lines from a pane |
tmux-bridge type <target> <text> | Type text into a pane (no Enter) |
tmux-bridge keys <target> <key>... | Send keys (Enter, Escape, C-c, etc.) |
tmux-bridge name <target> <label> | Label a pane for easy addressing |
tmux-bridge resolve <label> | Look up a pane by label |
tmux-bridge id | Print this pane's ID |
See the smux skill for full documentation on agent-to-agent workflows.
smux update
smux uninstall
Install the smux skill to teach your agents how to use tmux-bridge:
npx skills add ShawnPana/smux
Works with Claude Code, Codex, Cursor, Copilot, and 40+ other agents.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub shawnpana/smuxProvides tmux-cli skill, to allow Claude-Code to interact with CLI scripts or other code-agents in tmux panes, using the `tmux-cli` command
Skill for operating cmux terminal multiplexer. Pane splitting, sub-agent spawning/monitoring/result collection, command sending, screen reading, and notifications.
TMUX session awareness and process management for running services in dedicated panes
Terminal multiplexer plugin for team-based collaborative development and coordinated tmux session management.
Tmux session awareness and pane interaction
cmux terminal automation skills for Claude Code — workspace layouts, session snapshot/restore, surface organizer, and more.