Introduction¶
In DeepSeek Harness (DSH), the sidebar’s “by workspace” view often doesn’t keep up with the real rhythm of “which project you’ve actually been using recently” — neither the workspace order nor the number of visible conversations per workspace. And when you connect multiple models at once, the global HTTPS_PROXY either forces domestic Providers through the proxy or blocks overseas Providers entirely. The community plugin dsh-workspace-sort (maintainer: LostAbaddon, GitHub: LostAbaddon/dsh-workspace-sort) packs two sets of capabilities into one package: sidebar sorting by latest conversation, a configurable collapsed-conversation count, per-workspace model memory, plus Host-side proxy routing decided per Provider. The sections below cover installation, configuration, and typical usage.
What Is This¶
dsh-workspace-sort is a DSH bundle plugin (dsh.bundle.patch) that patches both the client UI and the Host network path. The current package version is 1.1.0, license MIT, Node >=20. It is classified as client-side injection (and includes a Host proxy patch); it has not yet been published to npm, so installation requires a GitHub address or (on the Web) a local directory path.
Core Features¶
Sidebar¶
Under both the “by workspace” and “by workspace tree” grouping modes:
- Workspaces are sorted in descending order by the update time of their latest regular conversation; when no such conversation exists, the workspace creation time is used. When timestamps are identical, the original relative order is preserved. The “single list” mode is left untouched and still uses DSH’s built-in sorting.
- The number of idle conversations shown when a workspace is collapsed can be changed in settings, default 5 (1–100). Running conversations, new-session placeholders, and conversations awaiting a reply are always shown and do not count toward the quota.
- When collapsed, if there are conversations not listed, “N more conversations” appears below the list; when expanded it becomes “Collapse”. When the workspace title itself is collapsed, no conversation rows are shown and this hint is not shown either.
- Optional: each workspace independently remembers the model and thinking depth — clicking “New conversation” for that workspace applies that workspace’s last selection (if never recorded, it does not interfere and still uses the global default).
- For each message the user sent, a “Modify” button is added between the timestamp and the copy button: after editing the raw Markdown and confirming, it stops the current reply, forks a new conversation, sends the rewritten content, switches to the new conversation, and archives the original conversation (not deletion; archiving is reversible, and the data remains in
~/.dsh/sessions/...).
The three sidebar-related switches are located in Settings → General → Workspace conversation sorting (between “Send behavior when busy” and “Performance and usage”), stored in the browser’s localStorage (dsh.workspace-sort.v1); workspace order is written to the Host and shared across clients within the same profile.
Proxy Routing¶
On the process’s globalThis.fetch, it decides whether to use the proxy or a direct connection based on the target hostname: for example, Gemini, OpenRouter, Agnes, etc. can be checked to go through the proxy, while DeepSeek, Kimi, MiniMax, GLM, etc. remain direct; deepseek, deepseek-official, ollama, lmstudio never go through the proxy. The proxy address and rules are configured in Settings → Proxy Routing — saved and take effect immediately, without requiring a restart; the configuration is persisted to $DSH_HOME/workspace-sort/proxy-config.json.
Installation & Activation¶
DSH plugin installation supports npm package names, GitHub repository addresses, and local directory paths. This repository is not yet published to npm, so use GitHub or a path. The plugin runs with the permissions of the current DSH process; before installing, it is recommended to review the repository source code and the MIT license yourself.
Desktop (Electron)¶
In the sidebar, go to “Plugins” → “Add Plugin”, and fill in “Package name or address”:
github:LostAbaddon/dsh-workspace-sort
After installation completes, restart the app as prompted. dsh plugin --profile desktop ... will be rejected — the desktop profile is exclusively managed by Electron.
Web (dsh web)¶
dsh plugin --profile web add github:LostAbaddon/dsh-workspace-sort
Takes effect after restarting dsh web. To uninstall, use the same source as installation:
dsh plugin --profile web remove github:LostAbaddon/dsh-workspace-sort
If ERR_PNPM_GIT_RESOLVE_FAILED occurs when installing from GitHub, it is usually due to failed HTTPS access to GitHub; you can configure a git transport rewrite per pnpm’s hints, or switch to a local absolute path as the installation source (as described in the README).
Typical Usage¶
Adjusting Sorting and Collapsing¶
- After installing and restarting, open Settings → General → Workspace conversation sorting.
- Adjust “Show N conversations per workspace” as needed, and toggle “Sort workspaces by latest conversation” and “Remember model and thinking depth per workspace”.
- If you need to keep the manually dragged workspace order fixed, turn off “Sort workspaces by latest conversation” (otherwise the next re-sort will restore the order based on timestamps).
Editing History Input¶
- Click the pencil “Modify” on a loaded message, edit the content in the edit box, and submit with
Cmd/Ctrl+Enter. - The confirmation dialog states how many conversations after this input will be removed; after confirmation, it automatically forks, sends, and archives the original conversation.
- If the message is not loaded in the current window, is the first message of the conversation, or the current reply cannot be stopped within 15 seconds, etc., the operation will be rejected and the reason will be shown in the edit box.
Configuring the Proxy¶
- Open Settings → Proxy Routing, fill in the proxy address (e.g.,
http://127.0.0.1:7890), check the Providers that should go through the proxy, and add extra host rules if necessary. - You can use “Test proxy” to perform a local
CONNECThandshake check. - Turning off the master switch routes everything direct; the configuration is retained.
Use Cases & Notes¶
- Suitable for: running multiple workspaces in parallel and wanting “recently chatted projects” to rank higher in the sidebar; needing domestic models direct and overseas models via a local proxy to coexist; wanting a per-workspace fixed default model instead of one global one.
- Notes: when “Remember model and thinking depth per workspace” is enabled, DSH’s
selectModelmay also update the global default model, and the plugin does not write back to global settings (the side effect is documented in the README). The manually arranged workspace order will be overwritten when sorting by time is enabled. Editing input relies on forking and archiving; failed attempts will clean up half-finished conversations. - The community directory page and GitHub are hosted by the maintainer and the community, and are not officially affiliated with DeepSeek / Hithink; star counts and directory metadata are subject to what each site displays at the time.
Conclusion¶
dsh-workspace-sort consolidates sidebar sorting, collapsing, per-workspace model preferences, and history input editing, together with Host-side per-Provider proxy routing, into a single plugin — most configuration is done in the settings page. For more details and issues:
- Directory page: https://www.skillhub.cn/plugins/LostAbaddon/dsh-workspace-sort
- Repository: https://github.com/LostAbaddon/dsh-workspace-sort