← back

cmux skills

Install into Claude Code with one paste.

How to install

1 Click Copy prompt on any skill below
2 Paste into Claude Code
3 The agent reads the skill file and creates it in your project. Done.
cmux workspace manager

Manage multiple Claude Code agents from one terminal. Named workspaces, surface management, spawn script, session mapping hook, socket API.

Includes: quick reference · spawn-workspace.sh · session-map hook · socket API docs

Read https://cmux-artemzhutov.netlify.app/skills/cmux.md and create a skill from it...
What's inside

3 core commands

CommandWhat it does
cmux list-workspacesSee all agents running
cmux read-screen --workspace ws:NPeek without interrupting
cmux send --workspace ws:N "msg"Talk to any agent

Workspace management

# Create named workspace (no focus steal)
CURRENT=$(cmux current-workspace 2>&1 | awk '{print $1}')
NEW_UUID=$(cmux new-workspace --command "claude 'prompt'" 2>&1 | awk '{print $2}')
cmux rename-workspace --workspace "$NEW_UUID" "name" 2>&1
cmux select-workspace --workspace "$CURRENT" 2>&1

spawn-workspace.sh - one command to create a named workspace with optional infinite loop and auto-handoff:

bash .claude/skills/cmux/scripts/spawn-workspace.sh "research" \
  --prompt "Research topic X"

# With auto-handoff at 60% context
bash .claude/skills/cmux/scripts/spawn-workspace.sh "long-task" \
  --prompt "Do the thing" --loop 60

Session mapping hook - tracks which Claude session is in which workspace via /tmp/cmux-session-map.json.

Socket API - programmatic control via /tmp/cmux.sock:

MethodPurpose
workspace.listList all workspaces
workspace.createCreate new workspace
surface.send_textSend text to terminal
set-statusSidebar status pill
set-progressProgress bar (0.0-1.0)
notification.createPush notification

Full API docs: cmux.dev/docs/api