From cmux
Coordinate with peer Claude sessions via the `cmux` CLI. Use when $CMUX_SESSION is set in the environment (you are running inside a cmux-wrapped session), or when the user references "another session / another terminal / claude-N" and asks you to talk to it. Lets you list peer sessions and inject messages into them as if the user had typed there. NOTE: this plugin only ships the skill — the `cmux` CLI binary must be installed separately (see Prerequisite below).
How this skill is triggered — by the user, by Claude, or both
Slash command
/cmux:cmuxThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are running inside a `cmux`-wrapped session iff `$CMUX_SESSION` is set in
You are running inside a cmux-wrapped session iff $CMUX_SESSION is set in
your shell environment. The value is your own session name (e.g. claude-1).
Other peer sessions live as unix sockets under ~/.cmux/<name>.sock.
Before any other step, verify the CLI is installed:
command -v cmux
If this returns nothing (i.e. cmux: command not found when you try to use
it), the plugin is installed but the CLI is not. Stop and tell the user:
The
cmuxCLI is not installed. Install it with:curl -sSL https://raw.githubusercontent.com/echoulen/cmux/main/install.sh | bashThen make sure
~/.local/binis on your PATH and re-run the request.
Do not attempt to install it yourself, fall back to ad-hoc pty hacks, or guess at peer-session bytes through other means.
$CMUX_SESSION is set and the user asks you to coordinate with, hand off
to, notify, or relay a message to another session.[from <name>] ... — that is a
message a peer session injected via cmux send. You may reply by sending
back to that peer.cmux list # list active peer session names
cmux send <name> <message> # inject "<message>\r" into <name>'s pty
cmux send invoked from inside a wrapped session auto-prefixes the message
with [from $CMUX_SESSION] — the receiver sees the source. You don't need
to add the prefix yourself.
cmux list to see who is alive.cmux send <target> "<message>" — keep the message short and actionable;
the peer agent sees it as if the user had just typed it and pressed Enter.# Tell claude-2 you finished the build:
cmux send claude-2 "build is green; please run e2e tests next"
# Ask peer to look at a file:
cmux send claude-3 "please review /tmp/diff.patch and report blockers"
# Discover peers first when unsure:
cmux list
cmux send only injects input. You will not see the peer's reply
unless the user relays it.$CMUX_SESSION is unset, this skill does not apply — you are not inside
a cmux session and should not assume peers exist.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub echoulen/cmux --plugin cmux