/kde-agent-workspace:bind-agent-workspace-to-outputfrom kde-agent-workspace
Bind the agent's KDE Plasma virtual desktop to a specific display output (e.g. a second monitor), or move agent windows onto an output, so the agent works on its own screen while the user keeps theirs. Uses per-output virtual desktops on Plasma 6.7+, and a dedicated-output fallback on older Plasma. Use when the user has more than one display and wants the agent's workspace on one of them.
Ships in kde-agent-workspace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
KAGENT="${CLAUDE_PLUGIN_ROOT}/scripts/kagent.py"
"$KAGENT" outputs
Returns per_output_desktops (plasma, supported, enabled) and outputs[] (names like
eDP-1 for a laptop panel, HDMI-A-1, DP-2). One output only → say binding needs a
second display and stop. An agent desktop must exist (create-agent-workspace).
Ask which output the agent gets if it isn't obvious. Usually it's the non-primary or external one.
Plasma 6.7 (June 2026, KWin MR !8602) added independent virtual desktops per output.
It is off by default: kwinrc [Windows] PerOutputVirtualDesktops=true, also
exposed in System Settings → Virtual Desktops.
"$KAGENT" bind-output HDMI-A-1 # fails if the setting is off
"$KAGENT" bind-output HDMI-A-1 --enable-per-output # turns it on, reconfigures KWin, then binds
Ask before --enable-per-output. It changes how desktop switching behaves on every
screen, not just the agent's. Binding makes the agent desktop current on that output
only; the user's other screens stay where they are. After this, agent windows on that
desktop are actually visible, so capture frames are fresh without --peek. The user
can also watch the agent work.
Per-output setup has not yet been exercised live by this plugin. Its first live run was
on 6.6, which lacks the feature. The calls used are
workspace.setCurrentDesktopForScreen(desktop, output) and
workspace.currentDesktopForScreen(output) from the 6.7 scripting API. If the output
shows a JS error, report it rather than working around it.
Before 6.7 a virtual desktop always spans every output. Switching desktops switches all screens together. There is no way to bind a desktop to one screen. The closest equivalents:
"$KAGENT" bind-output HDMI-A-1 # move agent windows onto that output (visible only while the agent desktop is current)
"$KAGENT" bind-output HDMI-A-1 --pin # also pin them to all desktops: that screen always shows the agent's windows
--pin effectively makes the monitor the agent's workspace whatever desktop is current.
The trade-off: those windows also overlay that monitor on the user's desktops. Explain
the trade-off and let the user choose.
"$KAGENT" windows # handles
"$KAGENT" move '<handle>' --output DP-2
"$KAGENT" move '<handle>' --to-agent --output DP-2
"$KAGENT" launch --output DP-2 -- myapp # launch straight onto that output
The chosen output is saved as output in ~/.config/kde-agent-workspace/config.json.
Re-run bind-output after reconnecting a monitor. Output names stay stable per
connector, but bindings do not survive the output disappearing.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/complementary-pluginsList and install plugins that complement kde-agent-workspace: agent-browsers. Use on "what goes with this plugin", "related plugins"./create-agent-workspaceCreate a dedicated KDE Plasma virtual desktop for AI agents to work on, named "Claude" or "AI Agents" (the user's choice), and remember it as the agent desktop. Idempotent — adopts an existing desktop of that name. Also renames or removes it. Use when the user wants Claude to have its own workspace, or before testing apps in an agent workspace when none exists./list-workspacesShow the user's KDE Plasma virtual desktops ("workspaces") — names, order, which is current, how many windows each holds, the connected outputs, whether an agent desktop already exists, and whether this Plasma version supports per-output desktops. Use when the user asks what workspaces/virtual desktops they have, before creating an agent desktop, or before any other skill in this plugin./test-app-in-agent-workspaceRun, test and troubleshoot a real GUI or terminal application on Ubuntu/KDE Plasma inside the agent's own virtual desktop, so Claude can operate it without taking over the user's screen — launch it there, drive it via AT-SPI accessibility (clicks, text entry, reading values), capture window screenshots, and read its logs. Use when Claude needs to verify an app actually works, reproduce a GUI bug, or test a desktop build on the user's machine./use-sandboxTest or debug GUI and terminal apps in a headless sandbox KWin (private D-Bus, never on the user's screen or focus). Use on "use the sandbox", "test it in the sandbox", "don't disturb my desktop".kde-agent-workspace@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin kde-agent-workspace