मुख्य सामग्री पर जाएँ
Skillpedia
ऑटोमेशन29k · #9803

cmux-workspace

यह क्या करती है

यह स्किल एजेंट के काम को उसी cmux workspace के भीतर रखती है जहाँ वह शुरू हुआ था। यह उन लोगों के लिए है जो cmux में एक साथ कई एजेंट या काम चलाते हैं।

कब इस्तेमाल करें

  • ✓जब एजेंट को सिर्फ़ अपने cmux workspace में panes खोलने या बदलने हों।
  • ✓जब आप cmux को ऑटोमेट करना चाहें, बिना उस दृश्य को बदले जिसे आप देख रहे हैं।
  • ✓जब आप cmux में एक से ज़्यादा एजेंट चलाएँ और नहीं चाहें कि वे एक-दूसरे में दखल दें।

Skill का लिंक

https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-workspace/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-workspace/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“यह काम मेरे मौजूदा cmux workspace में चलाइए और उस जगह से हटकर कुछ मत बदलिए जिसे मैं देख रहा हूँ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट को दिए गए workspace और surface IDs पढ़कर केवल उन्हें निशाना बनाता है, और ऐसे कदमों से बचता है जो आप कौन सा workspace देखते हैं यह बदल दें।

तकनीकी सामग्री (मूल 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:-}"  
अक्सर पूछे जाने वाले सवाल

क्या एजेंट मेरा फ़ोकस किसी और workspace पर ले जाएगा?

जब तक आप साफ़ न कहें, नहीं। फ़ोकस बदलाव को क्लिक माना जाता है और डिफ़ॉल्ट रूप से उससे बचा जाता है।

अगर एजेंट अपना workspace न ढूँढ पाए तो?

वह अभी फ़ोकस में मौजूद संदर्भ पर वापस जाता है और आपको बताता है कि वह ऐसा कर रहा है।

क्या यह सिर्फ़ cmux ऐप के अंदर काम करता है?

हाँ। यह cmux workspaces, panes और surfaces, और उन्हें नियंत्रित करने वाले कमांड लाइन टूल कवर करता है।

जानकारी

लेखक का मूल विवरण

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
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills