cmux-workspace
하는 일
이 스킬은 에이전트의 작업을 시작된 cmux 작업 공간 안에 머물게 합니다. cmux에서 여러 에이전트나 작업을 동시에 실행하며, 서로 간섭하지 않기를 원하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓에이전트가 자신의 cmux 작업 공간에서만 패널을 열거나 바꿔야 할 때.
- ✓보고 있는 화면을 바꾸지 않고 cmux 작업을 자동화하고 싶을 때.
- ✓cmux에서 에이전트를 둘 이상 실행하며 서로 방해하지 않게 하고 싶은 경우.
스킬 링크
https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-workspace/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“현재 cmux 작업 공간에서 이 작업을 실행해 주세요. 제가 보고 있는 화면에서 다른 곳으로 이동하지 마세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 자신이 받은 작업 공간과 서피스 ID를 읽고 그것들만 대상으로 삼으며, 사용자가 보는 작업 공간을 바꾸는 동작은 피합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
cmux Workspace
Scope work to the cmux workspace that invoked the agent.
- Window: a macOS cmux window.
- Workspace: a sidebar entry. The UI calls it a tab; CLI/socket APIs call it a workspace.
- Pane: a split region inside a workspace.
- Surface: a tab inside a pane, terminal or browser.
- Panel: internal content type inside a surface. Prefer CLI surface commands over panel internals.
Default rule
Scope actions to the current caller workspace unless the user explicitly asks for another workspace, another window, or global state. Do not assume the visually focused workspace is the right target: an agent can run in one workspace while the user looks at another.
printf 'workspace=%s\nsurface=%s\nsocket=%s\n' \
"${CMUX_WORKSPACE_ID:-}" "${CMUX_SURFACE_ID:-}" "${CMUX_SOCKET_PATH:-}"
cmux identify --json
CMUX_WORKSPACE_ID is the default workspace anchor and CMUX_SURFACE_ID the default caller terminal anchor. If they are missing, fall back to cmux identify --json and say explicitly that you are using the currently focused context.
Non-disruptive automation
Treat layout and focus as separate concerns. select-workspace, focus-pane, focus-panel, and focus-changing tab-action verbs are user-affecting actions, like clicks. Never call them speculatively, even inside the caller's own workspace, since the user may be looking elsewhere.
Build layout additively in one shot, using commands that create a pane already populated with the right surface:
cmux new-pane --workspace "${CMUX_WORKSPACE_ID}" --type browser --direction right --url "http://127.0.0.1:8765"
cmux new-pane --workspace "${CMUX_WORKSPACE_ID}" --type terminal --direction down
cmux new-pane --workspace "${CMUX_WORKSPACE_ID}" --type terminal --direction down --command "npm run dev"
When the first command for a new terminal is known, pass --command <text> so it starts at spawn instead of a later send. Avoid create-then-move-then-focus chains. Pass --focus false wherever the verb supports it (move-surface --focus false preserves the user's attention; more commands may grow the flag, see https://github.com/manaflow-ai/cmux/issues/1418 and https://github.com/manaflow-ai/cmux/issues/2820). If a layout command rejects a valid surface: or pane: ref, report the bug and stop rather than working around it by focusing.
Right-side helper pane
For auxiliary output (preview apps, TUIs, logs, one-off shells, browser checks), reuse one helper pane to the right of the caller terminal. Inspect first with cmux identify --json, cmux list-panes, and cmux list-pane-surfaces, then:
- Helper pane exists: add a surface to it.
cmux new-surface --workspace "${CMUX_WORKSPACE_ID:-}" --pane pane:<helper> --type terminal --focus false - No helper pane: create exactly one.
cmux new-pane --workspace "${CMUX_WORKSPACE_ID:-}" --type terminal --direction right --focus false - Multiple obvious stale helper panes from this same automation, and the user asked to tidy: keep one and clean up duplicates. Never close a pane you cannot confidently identify as stale helper output.
Send commands to the new or reused surface by explicit surface ref, or pass --command <text> at creation when the first command is already known. Repeated "open it" requests create tabs inside the existing right helper pane, not more splits.
Caller terminal
The surface that invoked the agent is the safest anchor for relative operations.
cmux send "npm test\n" # focused terminal in caller workspace
cmux send --surface "${CMUX_SURFACE_ID:-}" "git status\n" # exact caller surface
cmux send-key --surface "${CMUX_SURFACE_ID:-}" enter
Do not send keystrokes, close surfaces, or change focus in another workspace unless the user named that target.
Messaging another agent
To tell another agent something, use cmux agent message, never cmux send or tmux send-keys into its terminal. Typing into an agent's terminal lands in whatever the human there is typing and can submit their half-written prompt.
cmux agent message cmux-remote-status "The relay fix is on main; rebase when free." # by workspace title
cmux agent message workspace:4 --from reviewer "Review posted on #123."
cmux agent message --reply-to <message-id> "Done." # answer a message you received
cmux agent inbox --surface "${CMUX_SURFACE_ID:-}"
자주 묻는 질문
에이전트가 제 초점을 다른 작업 공간으로 옮기나요?
사용자가 명시적으로 요청하지 않으면 그렇지 않습니다. 초점 변경은 클릭처럼 취급되어 기본적으로 피합니다.
에이전트가 자기 작업 공간을 찾지 못하면 어떻게 하나요?
현재 포커스된 맥락으로 대신 작동하며, 그렇게 한다고 사용자에게 알립니다.
cmux 앱 안에서만 작동하나요?
네, cmux 작업 공간, 패널, 서피스와 이를 제어하는 명령줄 도구를 다룹니다.
상세 정보
작성자의 원본 설명
Work inside the current cmux workspace and terminal. Use for cmux workspace, current workspace, caller surface, panes, surfaces, socket targeting, and non-interfering cmux automation.
repo: manaflow-ai/cmux
인기도
- GitHub 스타
- 29k
- 순위
- #9803
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
cmux-browser
29k에이전트가 cmux에서 웹사이트를 열고, 사용자가 하던 작업의 포커스를 빼앗지 않은 채 브라우저 패널을 읽고 클릭하며 정보를 추출하도록 돕습니다.
cmux-capture
29k에이전트가 cmux 창을 스크린샷이나 짧은 녹화로 저장해, 시각적 변경이나 버그를 실제 증거로 보여 주게 합니다.
cmux-cloud-vm
29k에이전트가 cmux Cloud 머신에서 명령을 실행하고, 코딩 에이전트를 시작하고, 워크스페이스를 보여 주도록 돕습니다. 패널을 닫아도 작업은 계속 실행됩니다.
cmux-cua
29k에이전트가 cmux Computer Use 엔진으로 실제 macOS 앱을 조작하도록 돕습니다. 접근성 트리를 읽고 사용자를 대신해 클릭, 입력, 스크롤을 수행합니다.