dsh-sidebar-shrink
Manifest validMoves rarely used sidebar panels into the More menu and remembers the choice across reloads; adds a panel manager dialog and a fold-all button for workspace groups.
dsh-sidebar-shrink
插件一个个装进来,侧边栏一行一行长下去;可每天真正点开的,翻来覆去也就那几行。
其余的并不冗余,只是很久没被想起——却依然排在每一次滚动的路上。
dsh-sidebar-shrink 不删它们,只让它们退到「更多」里待着。

它做什么
- 面板收起会记住:把不常用的面板(灵枢、上下文洞察、技能中心……)从侧栏挪进「更多」,刷新、重启都还在「更多」里,入口一个不丢。
- 「侧栏管理…」:在「更多」菜单顶部开一个面板列表,用开关直接决定去留,不必去追浮现的图钉。「插件市场」是 shell 的固定项,标为「常驻」不可关。
- 一键折叠全部工作区:工作区标题栏多一个按钮,把展开的分组一次收干净,状态同样落盘。
- 不改 shell 任何实现:它只点用户本来就能点的控件,把结果记下来。所以升级 DSH 不会把它冲掉,也不会和其他插件抢渲染。

安装
从 awesome-dsh-plugin 列表
条目在 awesome-dsh-plugin 的 ui 分类下,收录后可直接用列表里的 dsh plugin add 命令安装。
本地目录
插件 → 添加插件 → 选本地目录 dsh-sidebar-shrink
命令行
dsh plugin add git+https://github.com/IvesCheung/dsh-sidebar-shrink.git
无 install 的挂载
profile 的依赖树不适合重装时,用链接 + patch 行也能挂:
node -e "require('fs').symlinkSync('C:/path/to/dsh-sidebar-shrink','C:/Users/<you>/.dsh/profiles/web/node_modules/dsh-sidebar-shrink','junction')"
然后在同目录 cordis.patch.yml 末尾加:
- insert:
- id: sidebar-shrink
name: dsh-sidebar-shrink
config: {}
patchReload: live 时刷新页面即生效。
用法
- 「更多」→ 侧栏管理…,用开关关掉不常用的面板;或直接悬停某个面板行点图钉。
- 工作区标题栏点 折叠全部工作区,一次收干净。
- 想反悔:重新展开分组、或从「更多」里点回面板即自动恢复;浮层里的 恢复默认 清空全部记录。
平台
Windows / macOS / Linux 同一套代码:只用 DOM、localStorage 和原生事件,无 process、无路径拼接、无平台分支。挂载点全部是 shell 自己的 data-sidebar-scrollport、data-row-key、data-sidebar-workspace-header 与 aria-label。
已实测:Windows 桌面版 + jsdom 端到端夹具。macOS 未在真机跑过。
已知限制
- 面板以显示名为键记录,切换界面语言后需要重新收一次。
- 只在宽侧栏(带文字的那一栏)有意义,窄栏本来只有图标。
- 若上游改动 unpin 控件的
aria-label文案,需要同步UNPIN_PREFIXES。
开发
npm i jsdom --no-save
node test/dom-fixture.mjs # 收起即记 / 刷新自动收 / 重新固定清除
node test/workspace-fixture.mjs # 折叠全部 / 状态落盘 / 无分组时隐藏
node test/manager-fixture.mjs # 槽位注册 / 浮层 / 插件市场锁定
实现细节与夹具实测输出见 docs/DETAIL.md。
License
MIT © IvesCheung
Comments
Loading…
From the same category
by anywhere-labs
为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 36.7k
↓ 103/wk
MIT
TypeScript
Nov 24, 2026
dsh plugin --profile web add dsh-plugin-desktopby zhu1090093659
DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop
★ 10.6k
↓ 105/wk
Apache-2.0
TypeScript
Nov 24, 2026
dsh plugin --profile web add dsh-webA collection of independent Web UI plugins and skins, including task boards, Git graphs, mobile access, and live token stats.
★ 10.4k
↓ 105/wk
Apache-2.0
TypeScript
dsh plugin --profile web add dsh-webby PC2005-cloud
DSH 桌面宠物:一行命令装好即用的透明动画小桌宠,支持多开、大小位置随心配置;还内置 DIY 素材链,能用 AI 视频自造专属宠物
★ 6.7k
↓ 68.7k/wk
MIT
TypeScript
Nov 17, 2026
dsh plugin --profile web add dsh-petby bowenliang123
The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,
★ 5.5k
↓ 115.8k/wk
Apache-2.0
TypeScript
Nov 24, 2026
dsh plugin --profile web add dsh-contextby omdsh-dev
开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git,
★ 5.3k
↓ 79.5k/wk
MIT
TypeScript
Nov 21, 2026
dsh plugin --profile web add dsh-better-sidebar