cmux-workspace
Was er macht
Dieser Skill hält die Arbeit eines Agenten im cmux-Arbeitsbereich, in dem er gestartet wurde. Er ist für Menschen gedacht, die in cmux mehrere Agenten oder Aufgaben gleichzeitig laufen lassen.
Wann du ihn nutzt
- ✓Wenn ein Agent Fenster nur in seinem eigenen cmux-Arbeitsbereich öffnen oder ändern soll.
- ✓Wenn du cmux automatisieren willst, ohne die Ansicht zu wechseln, die du gerade betrachtest.
- ✓Wenn du mehr als einen Agenten in cmux nutzt und nicht willst, dass sie sich gegenseitig stören.
Link zum Skill
https://github.com/manaflow-ai/cmux/blob/main/skills/cmux-workspace/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Führe bitte diese Aufgabe in meinem aktuellen cmux-Arbeitsbereich aus und wechsle nicht von dem weg, was ich gerade ansehe.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent liest die Arbeitsbereichs- und Surface-IDs, die ihm übergeben wurden, zielt nur auf diese und vermeidet Aktionen, die ändern würden, welchen Arbeitsbereich du siehst.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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:-}"
Häufige Fragen
Holt der Agent meinen Fokus in einen anderen Arbeitsbereich?
Nicht, außer du bittest ausdrücklich darum. Fokuswechsel gelten wie Klicks und werden standardmäßig vermieden.
Was passiert, wenn der Agent seinen Arbeitsbereich nicht findet?
Er weicht auf den aktuell fokussierten Kontext aus und sagt dir, dass er das tut.
Funktioniert das nur in der cmux-App?
Ja. Er deckt cmux-Arbeitsbereiche, Fenster und Surfaces sowie die Befehlszeilenwerkzeuge ab, die sie steuern.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 29k
- Platz im Ranking
- #9803
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
cmux-browser
29kLässt deinen Agenten Websites in cmux öffnen und Browser-Fenster lesen, anklicken und Daten daraus holen, ohne dir den Fokus von deiner Arbeit zu nehmen.
cmux-capture
29kLässt deinen Agenten einen Screenshot oder eine kurze Aufnahme eines cmux-Fensters machen, damit du eine visuelle Änderung oder einen Fehler mit echten Belegen zeigen kannst.
cmux-cloud-vm
29kLässt deinen Agenten Befehle ausführen, Coding-Agenten starten und Arbeitsbereiche auf deinen cmux-Cloud-Rechnern anzeigen, wobei die Arbeit nach dem Schließen von Fenstern weiterläuft.
cmux-cua
29kLässt deinen Agenten echte macOS-Apps über die Computer-Use-Engine von cmux bedienen, indem er den Accessibility-Baum liest und in deinem Auftrag klickt, tippt und scrollt.
Ähnliche Skills
knowledge-automation
394kHilft deinem Agenten, einen wiederkehrenden Auftrag einzurichten, der regelmäßig neue Inhalte in deinen Knowledge-Vault bringt, und danach zu prüfen, ob er läuft.
knowledge-source-ingest
394kHilft deinem Agenten, den Knowledge-Vault mit neuen Einträgen aus Chat-Kanälen, Feeds oder Postfächern aktuell zu halten, ohne bereits Vorhandenes erneut hinzuzufügen.
benchmark
280kHilft deinem Agenten, die Geschwindigkeit und Performance von Code zu messen. Nützlich, um Tempo sicherzustellen und Bremsen zu finden.