/ar:tmux [list] or [send --to %3 -- TEXT]from ar
Lists AI coding sessions running in tmux windows and sends text to chosen panes. Detects Claude Code, Codex, and other AI agents.
Ships in ar. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
autorun tmux list prints each AI coding session running in a tmux window,
lettered A, B, C, with its pane id (%3), target (session:window.pane),
harness, directory, purpose and state. It only reads.
autorun tmux send --to <targets> -- <text> types the text into the panes
named by pane id, then presses Enter in a second call, then reads each pane
back.
The user's request is the task. With no request beyond the skill name, list the sessions and ask what to do.
<safety_rules>
autorun tmux list, tmux list-panes,
tmux capture-pane -p and tmux display-message -p change nothing.autorun tmux send prints these for every
target before it types; read them.tmux kill-session, tmux kill-server) to
restart one harness: the other windows in it are other work. Exit or
interrupt that harness in its own pane, then start it again there.autorun tmux send does this.
By hand: tmux send-keys -t <target> -l -- '<text>', then
tmux send-keys -t <target> Enter.autorun tmux send reports text still sitting on the
input line as typed, not submitted, and a pane it could not read back as
sent, not confirmed. It resends neither, because a second Enter can
submit a half-edited line. Report it to the user and ask.</safety_rules>
List:
autorun tmux list # table
autorun tmux list --json # the same data as JSON
Show the user the letter, pane id, target, harness, directory and status of each session, and ask which sessions should receive what text.
After the user confirms, send to the pane ids that listing showed. A pane
id names the same pane until it closes; send refuses a letter, because
letters shift when a window opens or closes, and refuses a pane id that is
gone, printing the current listing:
autorun tmux send --to %3 -- continue
autorun tmux send --to %3,%7 -- git status
autorun tmux send --to awaiting-input -- continue
Read the output: one line per target naming its session, window, pane,
pane id, directory and harness, then [ok], [refused] or [FAIL] per
target. The exit status is 1 when any target was refused or failed, or
nothing was sent.
Capture each pane (its target from the list) and tell the user what it shows:
tmux capture-pane -p -t <target> | tail -20
--to | Types into |
|---|---|
%3 | the pane with id %3 (the Pane column of the list) |
%3,%7 | panes %3 and %7 |
all | every session listed |
awaiting-input (awaiting is accepted) | sessions listed at their plain input prompt, not mid-turn |
Every send reads the pane just before typing. A pane showing a permission
dialog, plan approval or question menu (status dialog), a pane mid-turn,
and a pane with text already on its input line are refused: nothing is typed
into them, the output names each by letter and target with the reason
([refused] B work:2.0: not sent: ...), and the exit status is 1. Enter in a
dialog answers it, so a dialog session needs the user in that pane; tell
them, never answer it with send.
autorun reads only Claude Code's prompts. Every other harness shows status
unknown: awaiting-input skips it and all refuses it, because its
dialogs cannot be told from its input prompt. Name such a session by its
pane id to send to it, after the user has looked at it.
With no --to, or no text after --, send types nothing and exits 1.
Each pane that runs an AI coding harness is its own session in the list,
with target session:window.pane. A window split into a shell and a
harness lists only the harness pane; a window with two harness panes lists
both, each with its own letter. send types into the pane the target
names, whichever pane of the window is active. Letters follow tmux's order:
sessions by name, windows by index, panes by index. A pane is a session only
while the harness is its foreground process: a harness a shell runs in the
background, behind an editor, is not listed, since typed keys reach the editor.
autorun tmux send types text and Enter only. To interrupt a Claude Code
turn, ask first, then send tmux send-keys -t <target> Escape and
capture the pane. Commands to resume each harness in place after it exits are
in the tmux-automation skill, part of the separate autorun-skills plugin;
if it is not listed, it is installed with autorun --install autorun-skills
(Claude Code marketplace: claude plugin install autorun-skills@autorun).
autorun is not on PATHA Claude Code install made through the marketplace alone has no autorun
command. In every command above, replace autorun tmux with
"${CLAUDE_PLUGIN_ROOT}/commands/tmux-exec", which takes the same arguments.
Only Claude Code expands that variable.
<output_contract>
Before sending: a table of the sessions with letter, target, harness, directory and status, then the question "Which sessions, and what text?"
After sending: the target lines send printed, the [ok] or [FAIL] result
for each, and what the pane capture shows.
</output_contract>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/commitUse before writing any git commit message or reviewing one, and when the user asks for "commit requirements", "commit message guidelines", or "/ar:commit". Carries the 17-step pre-commit analysis, the concrete-subject rules that ban vague verbs and session-internal jargon, and the checks that keep a message reviewable from the repository alone./philosophyUse when the user asks for the "system design philosophy", "design principles", or "/ar:philosophy", and before major feature work, an architecture decision, or a pull-request review. Lists the 17 universal system design principles, ordered from most fundamental to most specific, with concrete examples where a principle is easy to misread./plannewUse when the user asks to "make a plan", "plan this out", or "/ar:plannew", or starts multi-step work that needs tracked steps. Creates a structured plan with checkbox steps, the evidence each step must produce, and the wait process between them./planprocessUse when the user asks to "execute the plan", "run the plan", or "/ar:planprocess". Executes an approved plan step by step with the wait process, task tracking, and verification before each completion claim./planrefineUse when the user asks to "refine the plan", "critique the plan", or "/ar:planrefine". Critiques an existing plan against the actual code, records a change ledger, and iterates until a full pass finds no new material issue./planupdateUse when the user asks to "update the plan", "sync the plan with the code", or "/ar:planupdate". Reconciles an existing plan with the current codebase and marks what already shipped.npx claudepluginhub ahundt/autorun --plugin arOther plugins' skills for the same job