Skip to main content
M

dsh-workspace-groups

maxisoft-git/dsh-workspace-groups

Named groups for workspaces in the sidebar, so sessions can be organized by project; no usage statistics and no extra panels. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Install

dsh plugin --profile web add github:maxisoft-git/dsh-workspace-groups

README

Workspace groups

English · Русский · 简体中文

License: MIT DSH >= 0.2.2-rc.1

Named, collapsible groups for workspaces in the left sidebar of the DeepSeek Harness Web GUI. The plugin takes over the sidebar's workspace region: workspaces are put into named groups, everything without a group stays under «Без группы», and membership is stored by the Host so it survives a restart, another browser and a different port. It adds no page, panel, tool or command; it has no statistics, costs or dashboards, and it never deletes a chat or a workspace folder — a chat can only be archived, and removing a workspace from the list leaves its chats on disk. Because it owns that region, the shipped browser's search, pinning and drag reordering are not reproduced while it is enabled; removing the plugin restores the shipped browser. The sidebar labels are Russian in this release and are quoted here as they appear.

What it adds

RowEffect
workspace-groups (plugin row)The Host half mounts GET, HEAD, PUT and POST /api/workspace-groups; the browser half registers the grouped browser into sidebar.workspaces at priority: -10, so it renders in place of the shipped browser.
Sidebar headerA «Группы» caption with three buttons: «Новая группа» (folder), «Добавить рабочее пространство» (plus) and the archive view menu («Показ архива»).
Group rowsCollapse chevron, folder glyph, name, member count, and a … menu with «Переименовать» and «Удалить группу…».
Workspace rowsExpand or collapse their chats, «Новый чат», and a … menu («Действия») with «Переименовать», «Переместить в группу…» and «Убрать из списка…».
Chat rowsStatus dot, title (or «Новый чат» for a draft), relative time, and a hover button: «В архив» or «Вернуть из архива».
«Без группы»The section that holds every workspace not assigned to a group.
«Архив N»A row at the bottom of the list that switches to the archived chats; the tray menu chooses «Скрывать архивные», «Показывать архивные» or «Только архивные».

It registers no model tool and no slash command; the only programmatic surface is the Host route above.

Install

DSH 0.2.2-rc.1 or newer.

In DSH. Plugins → Add plugin with the installation spec github:maxisoft-git/dsh-workspace-groups. The plugin manager installs it for the whole profile; a new session picks it up.

From a checkout. git clone https://github.com/maxisoft-git/dsh-workspace-groups.git, then install that absolute directory with Plugins → Add plugin.

The package ships the prebuilt browser half (lib/client.js), so installation needs no build step. Reload the page or start a new session to see the grouped sidebar.

Use

  1. Create a group: click the folder button «Новая группа» in the sidebar header. An inline field appears with the name «Новая группа»; Enter or a click elsewhere saves it, Escape cancels. An empty name becomes «Группа».
  2. Put a workspace into it: open the workspace's … menu («Действия») → «Переместить в группу…» → pick the group or «Без группы». The target group opens so the moved workspace stays visible.
  3. Collapse or expand a group by clicking its row or chevron. The collapsed state is saved with the group.
  4. Rename: group … → «Переименовать»; workspace … → «Переименовать» (this renames the workspace itself).
  5. Delete a group: group … → «Удалить группу…», then confirm with «Удалить группу». Its workspaces move to «Без группы».
  6. Add a workspace: the plus button «Добавить рабочее пространство» opens the shipped picker; a picked or newly created workspace opens.
  7. Archive a chat: hover its row and click «В архив». An archived chat comes back with «Вернуть из архива». If work is still running, a confirmation says which work it is and offers «Остановить и в архив». The tray menu in the header chooses what the list shows; the «Архив N» row toggles the archived view.
  8. Remove a workspace from the list: workspace … → «Убрать из списка…» → confirm «Убрать из списка». The folder and the chat history stay on disk.

The Host stores the groups as one JSON document:

{
  "version": 1,
  "groups": [
    {
      "id": "group-mwkbsb83-kpjz",
      "title": "Рабочие проекты",
      "workspaceIds": ["49972bb5-6b3b-494a-a879-0b2978d560f3"],
      "collapsed": false
    }
  ]
}

Configuration

The bundle inserts one row and reads no configuration keys.

KeyDefaultMeaningWhere it is stored
workspace-groups rowno configThe row mounts the Host route and the browser half; there is nothing to configure.cordis.patch.yml in the package

Data and network

  • No network traffic of its own. The plugin contacts no external host, has no telemetry and no background requests. The only request it makes is the browser half's same-origin call from the Web GUI page to /api/workspace-groups on the DSH server that served the page.
  • The route is local and same-origin. The route enforces its own trust fence: a socket peer must be loopback; the Host header must name this server's port on a loopback name; a cross-site fetch context is refused; a write (PUT or POST) requires an Origin that matches Host exactly. Writes must be application/json; the body is capped at 256 KiB and must arrive within 10 seconds, an oversized body drops the connection, and other methods get 405.
  • What is stored on disk. $DSH_HOME/workspace-groups.json (default ~/.dsh/workspace-groups.json): the document above — group ids, titles, the ordered workspace ids and the collapsed flag. A write goes to a unique temporary file (mode 0600, exclusive create) that is renamed into place, so an interrupted save leaves the previous file intact, and the browser queues saves so one PUT is in flight at a time.
  • A corrupt file is kept. If the file cannot be parsed, it is copied to workspace-groups.json.corrupt-<timestamp> before an empty list answers the read, so damaged data is not silently overwritten.
  • In the browser. The archive view choice is kept in this browser's localStorage under dsh.workspaceGroups.archivedFilter (hide, show or only). Nothing else is stored client-side.
  • Turning it off. Removing the bundle removes the row, the route and the grouped sidebar; the state file stays on disk and is not read again until the plugin is installed again.

Security

Details are in SECURITY.md and SECURITY-AUDIT.md; report vulnerabilities through GitHub Security Advisories.

  • The state file contains workspace ids and titles, which can name private projects. It is a plain file under $DSH_HOME with the permissions of your user account; it is not encrypted and is never uploaded.
  • The HTTP route enforces its own fence — loopback peer, Host pinned to a loopback name and this port (which is what a DNS-rebinding page cannot satisfy), no cross-site fetch context, same-origin Origin on writes, and a JSON content type, which also blocks the cross-site form path. It carries no credentials and sets no cookies.
  • The plugin does not run external code, does not spawn processes and does not read files other than its own state file.

Requirements

  • DSH 0.2.2-rc.1 or newer, and the Web GUI: the browser half declares dsh.client.platform: web and does nothing outside the browser.
  • The Host half needs the webServer service; the browser half injects slots, workspaces, sessions and uiWorkspace and does not work without them.
  • No runtime dependencies; building the browser half needs Node.js 22.19.0 or newer and the esbuild package.

Development

node scripts/build.mjs          # esbuild: src/client/index.jsx → lib/client.js
node scripts/verify-bundle.mjs  # bundle self-check

The command needs the esbuild package available in the working tree. The built file is what the package ships, so rebuild it after changing the browser half. scripts/verify-bundle.mjs is a bundle self-check (manifest, patch, locale files, icon, referenced files). Layout: src/index.js is the Host half, src/client/index.jsx the browser half, lib/client.js its built form, cordis.patch.yml the bundle patch, locale/ holds meta.title and meta.description, docs/ holds the longer design note.

License

MIT © 2026 maxisoft-git

Related plugins