Introduction¶
DeepSeek Harness (DSH) adopts a plugin-based architecture, where the sidebar typically loads a large number of panel icons (plugins, automation tasks, context insights, etc.). In the default layout, these icons occupy a fixed height, causing the “Workspace” (session list) to be squeezed and the visual focus to shift downward.
The dsh-sidebar-tidy plugin restores the sidebar’s cleanliness and the visibility of core functions by collecting panel icons into a collapsible entry at the bottom of the sidebar. This places “New Session” at the top and keeps the “Workspace” centered.
Core Features¶
- Collection & Layout: Collects panel icons into a folding entry at the bottom of the sidebar, placing “New Session” at the top and centering the Workspace.
- Interaction Methods: Provides three expansion modes (Hover to Expand, Hover “More”, Click to Expand) and supports keyboard operations.
- Status Indicator: In collapsed mode, if a hidden panel is currently selected, an indicator dot will appear in the top right corner of the entry icon.
- Customization: Supports toggling entries individually in the settings to move them out of or keep them within the collapsed area.
- Compatibility: Follows DSH language settings and native theme styles.
Installation & Activation¶
This plugin is installed via manual linking. Please place the repository in a local directory and follow these steps:
- Place Repository: Put the plugin source code in any directory, e.g.,
~/dsh-plugins/dsh-sidebar-tidy. - Link to node_modules:
- Windows:
mklink /J "%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-sidebar-tidy" "C:\path\to\dsh-sidebar-tidy"
* macOS / Linux:
ln -s ~/dsh-plugins/dsh-sidebar-tidy ~/.dsh/profiles/desktop/node_modules/dsh-sidebar-tidy
- Configure package.json:
Add the dependency and bundle to~/.dsh/profiles/<profile>/package.json:
{
"dependencies": {
"dsh-sidebar-tidy": "link:<source_directory>"
},
"dsh.profile.bundles": [
"dsh-sidebar-tidy"
]
}
- Activation: Refresh the page to activate (desktop profile usually does not require restart; if the environment is specific, restart DSH).
Usage¶
After installation, enter the DSH settings page.
- Switch Expansion Mode:
In the “Sidebar Tidy” (侧栏收纳) settings section, select the interaction mode:- Hover to Expand (Default): Expands when the mouse moves into the “⋯ More” row, and collapses after about 220ms when the mouse moves away.
- Hover “More”: Only expands when the pointer is near the “More” text or icon; sweeping over other positions in the row does not expand it.
- Click to Expand: Click the row to toggle expand/collapse state. Supports “Remember Expanded State”.
- Manage Collapsed Content:
At the bottom of the same settings page, you can view all current panel icons. Toggle the buttons on the right individually to move the corresponding entry out of the collapsed area, returning it to below “New Session” and above the “Workspace” so it is no longer part of the folding group.
Technical Implementation & Limitations¶
- Dependency Mechanism: The plugin uses the CSS
orderattribute to adjust DOM element order anddisplay: contentsto break down the shell of the icon group, achieving line-by-line sorting and folding. - Compatibility Range: Only handles
sidebar.panellistpanel icons; does not affect settings rows or other sidebar elements. - Potential Risks: Relies on
display: contents. If the upstream DSH adds new containing block or clipping styles (such astransform,filter,overflow) to the panel group, the “Move Out” feature may fail. - Cleanup Mechanism: Automatically removes inserted stylesheets, event listeners, and localStorage keys upon uninstallation.
Conclusion¶
dsh-sidebar-tidy is a lightweight tool designed to solve the problem of a crowded workspace caused by excessive DSH sidebar icons. By collapsing non-core panels, it helps developers maintain a clean interface and focus on session and context management.
- Maintainer: hfbcwhy7gh-cpu
- License: MIT
- GitHub: https://github.com/hfbcwhy7gh-cpu/dsh-sidebar-tidy
- Directory Page: https://www.skillhub.cn/plugins/hfbcwhy7gh-cpu/dsh-sidebar-tidy