Introduction¶
When building agents or developing multiple projects in DSH, the sidebar often lists items flatly by workspace, making it difficult to group them by business line or client when there are many projects. The official workspace registry handles the registration and opening of workspaces but does not provide “folder-style” grouping itself. If you want to expand the sidebar hierarchically as “Group → Workspace → Session” without altering the official storage methods for workspaces, sessions, archives, and pinned collections, you can use the community client plugin dsh-workspace-organize (Maintainer GT-610, SkillHub Directory Page, GitHub).
What is this¶
dsh-workspace-organize organizes DSH sidebar workspaces into custom-named groups, creating a browsing path of Group → Workspace → Session. Groups are a virtual layer maintained by the plugin: workspace registration, sessions, archives, and pinned collections are still handled by official logic. Unless you perform operations like renaming, archiving, or deleting via the plugin menu, the plugin will not rewrite that official state.
The plugin is categorized as a Client plugin, affecting only the web sidebar (the desktop shell also uses web rendering, so the installation behavior is consistent with a browser). The current npm package version is 0.1.0, licensed under MIT, and requires DSH >= 0.2.1-rc.2 (defined in package.json under engines.dsh, which is checked during installation).
Core Features¶
Three-level Browsing Consistent with Official UI¶
The sidebar displays items in a Group → Workspace → Session hierarchy. Row heights, font sizes, icons, and collapsing behavior follow the official sidebar, utilizing the same --dsw-* design tokens and official components (Menu, Modal, Tooltip, Icon*, StateDot). Theme switching and the blur/transparency of right-click menus follow the shell, so the plugin does not need to maintain a separate skin.
Independent Storage for Group Data¶
Group documents are read and written by the plugin’s Host routes, stored in $DSH_HOME/storages/workspace-organize-groups.json, and do not interfere with the official workspace registry. There is a mirror in the browser’s localStorage; if offline, changes can be written to the mirror first and synced to the Host once connectivity is restored (with the Host acting as the source of truth).
Alignment with Official Behavior for Blank Sessions and Archives¶
Every “New Session” leaves a placeholder session (blank); the plugin follows official rules and does not pile up historical drafts into multiple rows with the same name as the workspace. Archived sessions are removed from the list; the View menu provides three modes: “Hide Archived / All Sessions (including Archived) / Show Only Archived Sessions,” with the selected option remembered. When viewing archived rows, the action at the end of the row is “Restore from Archive,” and the row itself is not clickable (archived sessions cannot be opened).
Group-level Batch Operations and Right-click Arbitration¶
The group menu allows archiving all sessions in a group or deleting all workspaces in a group at once, both accompanied by confirmation modals displaying the number of affected items; archived sessions and placeholder sessions are not counted. The right-click menu is declared at the contextmenu phase: if another right-click plugin has already taken over the row, this plugin will not pop up a second menu.
Persistence of Collapse States¶
Explicit expand/collapse choices are written to localStorage, preserving the tree structure after a refresh.
Replacing Official Browser Rendering in the Slot¶
The plugin registers in the sidebar.workspaces slot. The priority of GroupedBrowser is -100, which is lower than the official WorkspaceBrowser (0), thereby winning the rendering of that cell. Official entries remain registered, and sub-slots continue to exist. Business reads and writes rely on official hooks like useWorkspaces / useSessions, as well as ctx.get('uiWorkspace' | 'workspaces' | 'sessions') to call official actions; group data is synced with the Host via GET/POST /api/workspace-organize.
Installation and Activation¶
Please review the repository source code and the MIT license before installing. The plugin runs with the permissions of the current DSH process; the Host route listens on the loopback address, and write interfaces only accept same-origin browser requests.
Install from npm or GitHub (replace <profile> with your profile name):
dsh plugin --profile <profile> add dsh-workspace-organize
Or install directly from the repository:
dsh plugin --profile <profile> add github:GT-610/dsh-workspace-organize
Restart DSH after installation to allow the Host to rescan the plugin table. The repository includes committed build artifacts in dist/, so when installing from git, you do not need to whitelist build scripts (DSH blocks execution of build scripts for packages with prepare by default).
Typical Usage¶
The operations below are derived from the instruction table in the plugin’s README and are performed in the sidebar header or the menus on each row.
| Desired Effect | Operation |
|---|---|
| Create a new group | Header slider button → New Group |
| Rename / Dismiss group | Right-click on group row or ⋯ |
| Archive all sessions in group | Group row ⋯ → Archive all sessions in group… |
| Delete all workspaces in group | Group row ⋯ → Delete all workspaces in group… |
| Move workspace into group | Workspace row ⋯ → Move into group → Select group |
| Move out of group | Workspace row ⋯ → Move out of group |
| Create session in this workspace | Workspace row ⋯ or the + at the end of the row |
| Archive / Restore single session | Archive button at the end of the session row, or right-click menu |
| View archived sessions | Header slider button → All Sessions (including Archived) / Show Only Archived Sessions |
| Expand / Collapse all | Header slider button → Expand All / Collapse All |
| Search sessions by title | Header magnifying glass |
Data Boundaries and Limits¶
Writes use a temporary file plus rename for atomic disk persistence and utilize a serial write chain to avoid concurrent overwrites. The document structure is constrained by a shared validator: a maximum of 200 groups, 500 workspaces per group, and 2000 total member entries; invalid documents are rejected entirely. If the request body exceeds 2 MiB, the Host rejects it directly before parsing.
Archives and pinned collections are not owned by the plugin; the plugin only calls the official archive and restore APIs.
Use Cases and Notes¶
Suitable for developers who maintain multiple workspaces within a single DSH profile and wish to browse them grouped by project line or client name in the sidebar. If you have already installed other sidebar or right-click menu plugins, this plugin is designed to coexist with rows already taken over by them.
Community directories such as SkillHub are maintained by the community and have no official affiliation with DeepSeek or High-Flyer. Before installing third-party plugins, it is recommended to read the source code and issue list of GT-610/dsh-workspace-organize.
Conclusion¶
dsh-workspace-organize adds a layer of named grouping to the sidebar without altering the official workspace and session models, condensing the browsing path into “Group → Workspace → Session”. For installation instructions and development conventions, please refer to the repository README.
- Directory Page: https://www.skillhub.cn/plugins/GT-610/dsh-workspace-organize
- GitHub: https://github.com/GT-610/dsh-workspace-organize