Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Drive your other tmux sessions from inside Claude Code. List them, read what they are doing, compose a message into one's input box, and — when you mean it — press Enter.
Zero dependencies beyond the tmux CLI and Python 3 stdlib. Nothing is
installed into the target sessions; this plugin only reads panes and sends
keystrokes, exactly as you would by hand.
| Command | What it does |
|---|---|
/tmux:ls | Every session with its status (idle / busy / queued / dialog) and last line of output. |
/tmux:create <session> [dir] | Start a new detached session in a directory and launch Claude Code in it. Refuses a name that already exists. |
/tmux:review <session> [what you want to know] | Capture the pane (default 200 lines of scrollback) and answer the question, always leading with whether it is busy, idle, or holding queued messages. |
/tmux:draft <session> <what to say> | Compose into the target's input box and stop — no Enter. Rewrites an existing draft if there is one. |
/tmux:send <session> <what to say> | Same, then Enter, then re-capture to confirm the message was delivered or queued. |
Session names are not tab-completable. Run /tmux:ls, copy a name, type it.
/tmux:ls ──> tmux-sessions.sh ──┐
/tmux:review ──> tmux-capture.sh ──┤
/tmux:create ──> tmux-create.sh ──┼──> tmux-state.py ──> {status, draft, summary}
/tmux:draft ──┐ │
/tmux:send ──┴> tmux-input.sh ──┘
Everything deterministic lives in scripts/; the command markdown only calls
them and does the composing and analysis. That split is deliberate — screen
parsing and keystroke timing are not things to re-derive per invocation.
| Script | Purpose |
|---|---|
scripts/tmux-state.py | Parse a pane into {ui, status, busy, queued, draft, ghost, summary}. Captures with -e and reads SGR, because a real draft and a dim placeholder differ only in styling. The single source of truth. |
scripts/tmux-capture.sh | <session> [-S N] — dump scrollback + screen, blank lines filtered. |
scripts/tmux-input.sh | <session> --get|--set|--send|--append|--clear — the only thing that types. |
scripts/tmux-sessions.sh | [--json] — the /tmux:ls table. |
scripts/tmux-create.sh | <name> [--cwd DIR] [--run CMD|--no-run] [--json] — the only thing that creates. Exits 3 on an existing name, 4 on a name tmux cannot address, 5 on a missing directory. |
The target is usually a Claude Code TUI, but nothing assumes it. A plain shell
session reports ui: "plain" and still works for ls, review, and send.
Every one of these was hit in practice. They are why the scripts look the way they do.
1 — A dim placeholder looks exactly like a draft.
When the input box is empty, Claude Code redisplays input you abandoned
earlier as faint text (ESC[2m). In a plain capture-pane it is byte-identical
to a real unsent draft — same position, same characters. Acting on it goes
badly in both directions: you "rewrite" a draft that was never there, or you
loop forever trying to clear a box that is already empty.
tmux-state.py therefore captures with -e and tracks the SGR faint flag.
Faint content is reported as ghost, never as draft, and has_draft stays
false. /tmux:ls marks it ~ rather than yes. Typing into such a box
replaces the placeholder outright — no clearing needed.
2 — The draft is after the last ❯, and even that is not enough.
Claude Code prints ❯ in the transcript for past user turns too, so the last
one wins. But a dialog (/model, a permission prompt) also renders menu rows
as ❯ 1. Default, and there is no input box at all. tmux-state.py anchors on
the border pair: the last two ──── rules that enclose a ❯ line. No
border pair, no input box.
3 — C-u works, but clears one visual line, not the buffer.
It does clear the Claude Code input box (and offers Ctrl+Y to paste deleted text, so it is recoverable). Two catches:
C-u leaves the first row behind.C-u kills from the start of the line to the cursor. With the cursor
parked mid-line, text to its right survives.So clearing is End then C-u, looped until has_draft is false (capped
at 40 rounds, then it fails loud rather than typing on top of leftovers).
Backspace×N was not needed, and "append only" was not needed.
4 — Send the text and the Enter separately.
send-keys -l "<text>" handles CJK fine — no dropped characters. But bundling
Enter into the same call intermittently eats the tail of the text. The scripts
always do: -l text → sleep 0.3 → send-keys Enter. Tune with
TMUX_PLUGIN_TYPE_SETTLE if your machine is slower.
npx claudepluginhub kirinchen/claude-workbench --plugin tmuxBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground