Introduction¶
The DeepSeek Harness (DSH) sidebar lists all workspaces and their sessions by default. As the number of workspaces grows, the list becomes long, and switching between workspaces requires extensive scrolling. This plugin changes how the sidebar is displayed: it keeps only the sessions of the current workspace visible and provides a popup to switch to other workspaces, reducing the need for scrolling.
Plugin Overview¶
dsh-workspace-switcher is a DSH client plugin developed by maintainer Xiashano1. Its core value is: in multi-workspace scenarios, it transforms the originally lengthy sidebar into a switcher that only displays the current workspace.
Core Features¶
The plugin provides the following capabilities:
- Show current workspace only: The sidebar no longer displays sessions from other workspaces, preventing an overly long list
- Popup switching: Click the selector to open a workspace list popup and select one to switch to
- Search: Filter workspaces by name or path
- Keyboard navigation: Use ↑↓ to select a workspace, Enter to confirm, Esc to close
- Drag-and-drop reordering: Hold the three-line handle on the left and drag; crossing the midpoint swaps positions. Order is persisted
- Context menu: Rename (with duplicate check), copy path, delete workspace (with confirmation)
- New session: Click
+to create a new session in the current workspace - Bidirectional sync: When switching via the native DSH dropdown, the plugin automatically follows
Installation & Enablement¶
Option 1: npm (Recommended)¶
cd $DSH_HOME/profiles/web
npm install dsh-workspace-switcher
Option 2: Download tgz¶
curl -L -o dsh-workspace-switcher.tgz \
https://github.com/Xiashano1/dsh-workspace-switcher/releases/latest/download/dsh-workspace-switcher-2.6.0.tgz
cd $DSH_HOME/profiles/web
npm install /path/to/dsh-workspace-switcher.tgz
Option 3: Manual copy (without npm)¶
tar -xzf dsh-workspace-switcher-2.6.0.tgz
cp -r package $DSH_HOME/profiles/web/node_modules/dsh-workspace-switcher
Registration¶
Add the following to $DSH_HOME/profiles/web/cordis.patch.yml:
- insert:
- id: dsh-workspace-switcher
name: 'dsh-workspace-switcher'
config:
enabled: true
Restart DSH for changes to take effect.
Configuration¶
| Option | Type | Default | Description |
|---|---|---|---|
enabled |
boolean | true |
Whether to enable the plugin. Set to false to temporarily disable it and restore the native sidebar |
Usage¶
- Click the selector: Open the workspace list popup
- Type in the popup: Search workspaces (by name/path)
- Select a workspace: Switch to it and open its first existing session
- Click
+: Create a new session in the current workspace - Hold the three-line handle on the left and drag: Reorder (crossing the midpoint swaps positions; saved automatically)
- Right-click a workspace: Rename / Copy path / Delete
Reordering Feel¶
While dragging:
- The original position stays empty (not faded out, still occupies space)
- A full-row copy follows the cursor at full opacity
- When the cursor crosses the midpoint of another row, that row immediately slides to your position
- Other rows use FLIP animation to smoothly make way
Compatibility & Known Limitations¶
Depends on DSH Internal Implementation¶
The plugin relies on DSH’s internal DOM structure conventions and may break after a DSH upgrade. Verified version: DSH 0.2.2-rc.3.
Behavior When Broken¶
The plugin will not crash or break native functionality. When it fails, it will:
1. Show a notification banner in the bottom-left corner: “Workspace switcher is not active”
2. List specifically which DOM element is missing
3. Leave the native sidebar completely unaffected
Troubleshooting¶
Append ?dws-debug=1 to the DSH page URL, then run the following in the console:
window.__DSW_DIAG__()
Temporary Disable¶
Set enabled: false in cordis.patch.yml and restart DSH.
What It Does NOT Do¶
- Does not delete any sessions or files
- Does not modify the native sidebar’s search/sort/new-session features
- Does not modify DSH configuration (other than the
cordis.patch.ymlregistration)
Ecosystem Notes¶
DSH’s philosophy is “everything is a plugin.” The community directory (skillhub.cn) has no official affiliation with DeepSeek or High-Flyer.
Maintenance & Updates¶
The plugin may break due to DSH upgrades. See CHANGELOG.md and MAINTAINING.md for details.
References¶
- GitHub: https://github.com/Xiashano1/dsh-workspace-switcher
- Plugin directory page: https://www.skillhub.cn/plugins/Xiashano1/dsh-workspace-switcher