Preface¶
DeepSeek Harness (DSH) breaks capabilities into plugins, and the workspaces and sessions in the sidebar are the core of daily navigation. As the number of workspaces grows, archiving, renaming, and moving all touch the underlying data. If you only want to temporarily make certain workspaces and their sessions “invisible” in the list without modifying the workspace, session, or archive, you need a purely presentation-layer switch. Below we introduce the community plugin @adamcjm/dsh-workspace-visibility (maintainer adamcjm, category: client-side), which only filters the display in the sidebar and writes all state to a small file on the Host side.
What Is This¶
@adamcjm/dsh-workspace-visibility is a DSH client plugin: it hides selected workspaces and their owned sessions from the sidebar, and when needed reveals them all again via the view options for restoration. It is designed as Display-only—it does not call archive, unarchive, rename, move, pin, or delete; it does not modify workspace records, session logs, or archive collections. The npm package’s current version is 0.2.7 (see the repo’s package.json), license MIT, Node requirement >=20.
Plugin directory page: skillhub.cn/plugins/adamcjm/dsh-workspace-visibility. Source code and documentation: github.com/adamcjm/dsh-workspace-visibility. The DSH community directory is an independent site and has no official affiliation with DeepSeek / High-Flyer.
Core Features¶
Sidebar Hiding and Restore Entry Points¶
The plugin hooks into two places you would already be clicking:
- Workspace row → “…” menu → Hide workspace (when hidden items are already shown, the same item displays as Unhide workspace).
- Sidebar → View options → Show hidden workspaces (N): a persistent toggle used to list all hidden workspaces for restoration; the
Non the label is the current number of hidden ones.
After hiding, the workspace row and all sessions under it disappear from the sidebar; the README screenshot notes that a hint related to the hidden count is displayed at the bottom.
Where the State Is Stored and How It Syncs¶
The hidden workspace IDs and the Show hidden workspaces toggle belong to Host state, not the browser’s localStorage:
- Path:
$DSH_HOME/storages/workspace-visibility.json, written atomically by the plugin’s Host half (temp file + rename). - The browser fetches the state once at startup, then follows changes via SSE (
/workspace-visibility/stream); similar to the built-inworkspace/followpush model. - Local changes are submitted incrementally via
POST /workspace-visibility/mutate, avoiding overwrites between multiple clients. - Under the same
$DSH_HOME, DSH Desktop anddsh webare two Host processes that share this file and broadcast to each other (typically under 1 second); different$DSH_HOMEs (another machine, a custom directory, a remote Host) each keep their own state, with no cross-machine network sync. - The
desktop/webprofiles share the same state file under the sameDSH_HOME; profiles without this plugin installed (e.g., TUI-only) still show all workspaces.
Version 0.1.x used the browser’s localStorage (dsh-workspace-visibility.state.v1); after upgrading, the Host cleans up that key once and does not migrate the old hidden list, so previously hidden workspaces become visible again.
Robustness (Summary)¶
When the state file is missing, corrupted, or too large (> 1 MiB), it is treated as empty state and logged, without crashing the Host; IDs of deleted workspaces are auto-trimmed; on write failure the in-memory state is retained and an alert is raised. Browser-side sync failures are retried, and SSE auto-reconnects.
Installation and Activation¶
Requires DeepSeek Harness 0.2.0-rc.2 or newer (the README states it has been tested on 0.2.0-rc.2 and 0.2.1-rc.2).
Installing from npm is recommended (replace <profile> with your profile name):
dsh plugin --profile <profile> add @adamcjm/dsh-workspace-visibility
dsh plugin add writes the dependency and bundle entries. After completion:
- Restart the DSH app (the Host plugin tree is assembled at process startup).
- Hard refresh the page (Cmd/Ctrl+Shift+R), so the renderer loads the new client bundle.
You can also manually add the dependency "@adamcjm/dsh-workspace-visibility": "^0.1.0" to ~/.dsh/profiles/<profile>/package.json, and add @adamcjm/dsh-workspace-visibility to dsh.profile.bundles, then run pnpm install in that directory, and restart and refresh.
If the profile has enabled pnpm’s minimumReleaseAge causing newly released versions to be rejected, you can add the package name to minimumReleaseAgeExclude in that profile’s pnpm-workspace.yaml.
A pinned version can be installed from a GitHub release (the example uses the v0.1.0 tag; for daily use, pin to a tag you have verified, do not follow main):
dsh plugin --profile <profile> add https://codeload.github.com/adamcjm/dsh-workspace-visibility/tar.gz/refs/tags/v0.1.0
For local development you can use link: pointing to the checkout directory; see the “From a local checkout” section of the README.
Typical Usage¶
- Hover over a Workspace row, open the “…” menu, and select Hide workspace. That row and its sessions are removed from the sidebar.
- Open the sidebar View options (the slider icon) and turn on Show hidden workspaces (N); hidden workspaces reappear in the list, making it easy to restore display via Unhide workspace in the menu.
Throughout, no persistent data of workspaces or sessions is changed—only whether the sidebar displays them.
Use Cases and Notes¶
Who it’s for: DSH users with many sidebar workspaces who need to temporarily collapse several projects (including their sessions) without archiving or deleting data; when multiple tabs, Desktop, and dsh web share the same Host, the hidden list aligns automatically.
Please be aware before installing: The plugin runs with the permissions of the current DSH Host process and reads/writes $DSH_HOME/storages/workspace-visibility.json. You should read the source code and the MIT license before installing to confirm it meets your environment and compliance requirements. Upgrading from 0.1.x does not preserve the old hidden list in the browser.
Conclusion¶
@adamcjm/dsh-workspace-visibility uses a small JSON file on the Host side and SSE push to implement a purely presentational “hide / show workspaces” capability in the sidebar, suitable for tidying up navigation without touching the underlying data. For more information, see the plugin directory page and the GitHub repository.