/kde-agent-workspace:create-agent-workspacefrom kde-agent-workspace
Create 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.
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" status # see what exists first
If status already shows an agent_desktop, there is nothing to create. Say so and stop.
Otherwise ask the user which name they want, offering exactly the two conventions plus free text:
Do not pick for them. The name is the visible label in the pager and Overview.
"$KAGENT" create --name "Claude" # appended as the last desktop
"$KAGENT" create --name "AI Agents" --position 0 # or at a chosen position
Returns {"created": true|false, "desktop": {...}, "config_file": ...}. created: false
means a desktop with that name already existed and was adopted. The choice is stored
in ~/.config/kde-agent-workspace/config.json (desktop_name, desktop_id), and every
other command resolves the agent desktop from it.
Creating a desktop does not switch the user's view. Tell the user where it is (position N in the pager, Meta+Ctrl+Left/Right default navigation, or Overview with Meta+W).
For screenshots of agent windows later, install the helper once:
"$KAGENT" setup-capture
It copies the system Python interpreter to
~/.local/share/kde-agent-workspace/bin/kagent-capture. It also writes
~/.local/share/applications/kagent-capture.desktop, which declares
X-KDE-DBUS-Restricted-Interfaces=org.kde.KWin.ScreenShot2. KWin only serves its
screenshot API to executables declared this way. Tell the user this in one sentence
before running it; remove-capture undoes it.
"$KAGENT" rename --name "AI Agents"
"$KAGENT" remove # KWin moves its windows to a neighbouring desktop
Confirm with the user before remove.
qdbus6 org.kde.KWin /VirtualDesktopManager createDesktop <position> "Claude"
qdbus6 org.kde.KWin /VirtualDesktopManager setDesktopName <id> "AI Agents"
qdbus6 org.kde.KWin /VirtualDesktopManager removeDesktop <id>
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/bind-agent-workspace-to-outputBind 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./complementary-pluginsList and install plugins that complement kde-agent-workspace: agent-browsers. Use on "what goes with this plugin", "related plugins"./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.Other plugins' skills for the same job
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