본문으로 건너뛰기
Skillpedia
자동화29k · #9803

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-workspace/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬