cmux-workspace
Fungsinya
Skill ini menjaga pekerjaan agent tetap berada di workspace cmux tempat ia dimulai. Skill ini untuk orang yang menjalankan beberapa agent atau tugas di cmux secara bersamaan.
Kapan dipakai
- ✓Saat agent harus membuka atau mengubah panel hanya di workspace cmux miliknya sendiri.
- ✓Saat Anda ingin mengotomatisasi cmux tanpa mengganti tampilan yang sedang Anda lihat.
- ✓Saat Anda menjalankan lebih dari satu agent di cmux dan tidak ingin mereka saling mengganggu.
Link skill
https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-workspace/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Tolong jalankan tugas ini di workspace cmux saya saat ini dan jangan pindah dari apa yang sedang saya lihat.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca ID workspace dan surface yang diberikan kepadanya, hanya menargetkan ID tersebut, dan menghindari tindakan yang mengubah workspace mana yang Anda lihat.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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:-}"
Pertanyaan umum
Apakah agent akan memindahkan fokus saya ke workspace lain?
Tidak, kecuali Anda memintanya secara eksplisit. Perubahan fokus diperlakukan seperti klik dan dihindari secara default.
Apa yang terjadi jika agent tidak menemukan workspace-nya?
Agent memakai konteks yang sedang difokuskan dan memberi tahu Anda bahwa ia melakukannya.
Apakah ini hanya berfungsi di dalam aplikasi cmux?
Ya. Skill ini mencakup workspace, panel, dan surface cmux serta alat baris perintah yang mengendalikannya.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 29k
- Peringkat
- #9803
- Lisensi
- —
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
cmux-browser
29kMemungkinkan agent Anda membuka situs web di cmux dan membaca, mengklik, serta mengekstrak informasi dari panel peramban tanpa mengambil fokus dari pekerjaan Anda.
cmux-capture
29kMemungkinkan agent Anda mengambil tangkapan layar atau rekaman singkat dari jendela cmux, sehingga Anda bisa menunjukkan perubahan visual atau bug dengan bukti nyata.
cmux-cloud-vm
29kMemungkinkan agent Anda menjalankan perintah, memulai agent coding, dan menampilkan workspace di mesin cmux Cloud Anda, dengan pekerjaan tetap berjalan setelah panel ditutup.
cmux-cua
29kMemungkinkan agent Anda mengoperasikan aplikasi macOS sungguhan melalui mesin Computer Use cmux, dengan membaca pohon aksesibilitas serta mengklik, mengetik, dan menggulir atas nama Anda.
Skill serupa
knowledge-automation
394kMembantu agent Anda mengatur tugas terjadwal yang memasukkan konten baru ke Knowledge vault Anda secara rutin, lalu memastikan tugas itu berjalan.
knowledge-source-ingest
394kMembantu agent Anda menjaga Knowledge vault tetap mutakhir dengan item baru dari chat, feed, atau kotak surat, tanpa menambahkan ulang yang sudah ada.
benchmark
280kMembantu agent Anda mengukur kecepatan dan performa kode. Berguna untuk memastikan semuanya cepat dan menemukan penyebab kelambatan.