dsh-project-groups: Reorganize DSH Sidebar Workspace with Project Tags

Preface

In DeepSeek Harness (DSH), the official sidebar “Workspace” organizes sessions by directory ownership: the immutable cwd in the Header must equal the path of some workspace, and membership is computed on every read rather than stored separately as “project ownership”. This model suits a development style where directories are fixed in advance; if you prefer full permissions without splitting work by directory, you will encounter several hard constraints—there is no RPC to move sessions between workspaces, and cwd is frozen by design; creating a new workspace forces you to choose a directory, and the title is often just the folder name. The sidebar therefore struggles to answer “which project does this conversation belong to”.

Below we introduce the community plugin dsh-project-groups (maintainer ThinkofRain1213, category: client). It takes over the official workspace browsing area in a 1:1 manner on the DSH 0.2.1 shell, lifting grouping away from directories and turning it into a purely front-end project tag; it also associates each project with working documents, formatting specifications, and related links. When the plugin is turned off, injections and listeners are destroyed with the plugin fiber, the official @deepseek-ai/dsh-client-ui-workspace is re-enabled, and behavior returns to the original.

What is this

dsh-project-groups is a client plugin written for DSH. Its core positioning can be summarized in four things:

  1. Take over the sidebar “Workspace” browsing area, replacing the official grouping by workspace with project grouping;
  2. Give each project a working document, and inject the current formatting specification into the session;
  3. Register related links (such as a GitHub upstream) and inject them along with the session;
  4. In the settings page, display the text that the plugin actually writes into the runtime context at this moment, as well as the chunk differences under various states.

Projects have no directory field—they are just labels attached to sessions; sessions still land in the plugin-configured “underlying workspace”. See the GitHub repository for source code and documentation, and the community directory page: skillhub.cn/plugins/ThinkofRain1213/dsh-project-groups. The DSH ecosystem emphasizes “everything is a plugin”; directories such as SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer.

Core features

The plugin runs a behavioral copy of the official workspace browser under its own bundle id, and disables the official ui-workspace row via cordis.patch.yml—a single slot cannot be double-occupied, otherwise it is a hard startup error. On top of that it layers:

  • Project rows and an “Ungrouped” bucket, replacing the official grouping by workspace;
  • Drag-and-drop classification: sessions can be dragged between projects, or dragged back to “Ungrouped”;
  • Project create / rename / delete / drag-sort (titles unique);
  • New session landing point: project row “+”, “Ungrouped” “+”, and the top bar button all land in the underlying workspace;
  • Search: result rows display the project they belong to, rather than the workspace;
  • Related links: when editing a project you can register upstream links, alongside “related directories”; wrong format only shows a hint without blocking save.

After turning off the plugin, the disable in the patch no longer takes effect, the official sidebar row is restored, and the UI and behavior should match the state without installation (the README suggests using this as one of the verification methods).

Working documents and document specifications

Each project corresponds to an md working document, uniformly stored under $DSH_HOME/project-groups/; uploaded specifications are placed in specs/ in the same directory. The path cannot be customized; it remains the same when moving to another machine.

The settings page “Document specifications” has three global sources:

Option Meaning
None Does not enforce format updates: if there is no established format, write freely; if there is, write on top of it
Default Use the plugin’s built-in specification (changes with package upgrades)
Custom Upload your own md specification; you can upload / switch / delete individually

There is also “Adjust document specifications per project”: when enabled, when creating and editing a project you can choose Follow global / None / Default / Each uploaded specification.

The identity of a specification is its content hash, not the file name. Overwriting a same-named specification or a plugin upgrade changing the built-in specification will both be recognized as “the specification has changed”. If the document is found to still be written according to the old specification, the injection requires the model to ask the user via ask_user_question:

① Rewrite according to the new specification   ② Ignore this time   ③ Ignore until the specification changes again

When choosing ①, follow spec/REWRITE-FLOW.md in the repository; the constraint is that no information may be lost due to format migration. Injection does not happen at every step, but is submitted at the first turn of the session, after compaction, and when values that affect rendering actually change, so “ignore this time” is not recorded and will not repeatedly bother the user.

Injection preview

The settings page directly displays the complete text that the plugin would inject now; the content comes from the real renderer rather than sample copy, and explains the differences between forms such as “empty / one / multiple” by segment. This makes it easy to verify the project documents, specifications, and related links actually seen on the model side.

Installation and enabling

The plugin requires DSH 0.2.1-rc.2 (the README states that the plugin runs on the 0.2.1 shell, and the vendor source code is synced from that version). Before installing, please confirm your local DSH version, and read the MIT license under the premise of trusting the maintainer’s source code. The plugin runs with the current dsh process privileges; installation extends the client bundle and Host logic, so please assess the risk yourself.

The official installation command (from the README):

dsh plugin add dsh-project-groups

Afterwards, restart DSH. cordis.patch.yml inserts the plugin bundle and disables the official workspace UI row.

Verification points:

  1. The sidebar tree, search, view options, and dialogs should look consistent with the original DSH, except that the grouping dimension becomes projects;
  2. After turning off the plugin in the plugin manager, the official row is re-enabled, and the behavior fully returns to the original.

Typical usage

  1. After installing and restarting, manage ownership with project rows in the sidebar: create projects, drag sessions to classify, and leave unattributed ones in “Ungrouped”.
  2. In the settings page, choose the global document specification (None / Default / Custom); enable “Adjust document specifications per project” when necessary.
  3. When editing a project, fill in related links (such as a GitHub repository URL) to facilitate context injection; format validation only prompts and does not rewrite the content.
  4. Open the injection preview in the settings page to confirm the project documents and specification snippets that the current session will receive.
  5. When the specification changes and the old document structure does not match, choose one from “Rewrite / Ignore / Ignore until change” as asked by the model.

Please create new sessions from the “+” of a project or “Ungrouped” or the top bar entry; they all land in the plugin-configured underlying workspace, rather than splitting into multiple workspaces by directory.

Applicable scenarios and notes

Better suited for:

  • Using full permissions, not dividing daily conversations by directory, but still wanting the sidebar to organize sessions by “project”;
  • Needing a structured working document per project, and wanting the model to ask before migrating when the specification evolves;
  • Wanting to write project and upstream repository links into the runtime context, and verify the injected content in the settings.

Points to note:

  • It relies on a bundle patch to replace the official UI module; when a major DSH version upgrades, the plugin needs to be aligned with the harness line version (the README states the vendor copy currently comes from 0.2.1-rc.2; upgrading DSH may mean re-syncing vendor).
  • Working documents and specification paths are fixed under $DSH_HOME/project-groups/; backups or migration of DSH configuration need to consider them together.
  • Community directory page star counts and other metadata are subject to the site’s display; the repository README focuses on features and installation, and does not use marketing data as evidence.

Conclusion

dsh-project-groups changes the DSH sidebar from “directory as grouping” to “project as tag”, and adds working documents, evolving specifications, related links, and injection previews. It suits usage that does not split work by directory yet needs project-level organization. Turning off the plugin restores the official workspace behavior with zero residue.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye