DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-panel-collapse

R

dsh-panel-collapse

Manifest valid

Adds a footer button to the DeepSeek Harness sidebar that collapses or expands the global panel list.

UI (client)hasBundlePatch

dsh-panel-collapse

A tiny DeepSeek Harness plugin that adds one button to the sidebar footer, next to the settings control, which collapses or expands the global panel list (Plugins, Scheduled tasks, Context insight, Memory, … and any other plugin that registers a sidebar panel).

Collapsing frees the vertical space the panel rows occupy, so the workspace and session list gets more room. The state is remembered per browser profile and survives restarts.

icon

Install

dsh plugin --profile <your-profile> add dsh-panel-collapse

Restart the app afterwards — DeepSeek Harness only loads a new client module generation on startup, so the button will not appear until you relaunch.

From source

git clone https://github.com/RiddanceY/dsh-panel-collapse.git
dsh plugin --profile <your-profile> add "link:/absolute/path/to/dsh-panel-collapse"

link: makes the profile point at the clone instead of copying it, so git pull is enough to update and there is nothing to reinstall.

To remove it:

dsh plugin --profile <your-profile> remove dsh-panel-collapse

--profile must come immediately after plugin; dsh plugin add x --profile y is rejected with required option '--profile' not specified.

Usage

The button sits in the sidebar footer, to the right of the existing icon buttons.

  • Expanded (default) — shows a "collapse" chevron pair; clicking hides the panel list.
  • Collapsed — shows an "expand" chevron pair; clicking brings the list back.
  • In the collapsed (rail) sidebar the button grows to 36×36 to match the host's rail buttons.
  • The current state is stored in localStorage under dsh.panel-collapse.collapsed.

How it works

The plugin is a client-side bundle only — index.js is an empty host half, all the work happens in client.js, which the app loads lazily via window.__ModuleLoader__.

  1. apply(ctx) registers the panel-collapse locale namespace (zh, en) as a context effect, so the dictionary is disposed when the plugin unloads.

  2. It registers one entry in the sidebar.footer.action list slot with id: "panel-collapse" and order: 40, which puts it after the built-in Cordis panel button.

  3. The component keeps a boolean in React.useState, mirrored into localStorage, and renders a <style> element while collapsed:

    nav:has([data-slot="sidebar.panellist"]),
    nav[aria-label="全局面板"],
    nav[aria-label="Global panels"] { display: none !important; }
    

    The first selector is the locale-independent one: every panel row hosts a sidebar.panellist outlet, so the nav that contains them is exactly the panel group. The other two are a fallback that keys off the host's own accessible names.

No host code is imported, patched or monkey-patched. The button reuses only the public --dsw-alias-* / --dsw-radius-* / --dsw-focus-ring-* theme tokens, so it follows the light and dark themes and the sidebar's wide/collapsed states.

Compatibility

DeepSeek Harness>=0.2.0-rc.2
Client slots usedsidebar.footer.action (list)
Runtime dependenciesnone (React is taken from the app's module table)

Development

The package is plain ESM with no build step. client.js is the shipped artifact.

node --check client.js
node scripts/smoke.mjs    # loads the module with a stub loader + React shim
node scripts/verify.mjs   # full static verification (manifest, locale, slot, render tree)

scripts/verify.mjs also checks the install state when the package is linked into a profile (node_modules/<name> + dsh.profile.bundles); it skips those checks otherwise. Set DSH_PROFILE_DIR to point it at a non-default profile.

These scripts are static checks. They do not prove the button looks right on screen — that still needs a human looking at the running app.

Local iteration

dsh plugin --profile <your-profile> add "link:/absolute/path/to/dsh-panel-collapse"

link: makes the profile point at this directory instead of copying it, so edits to client.js take effect on the next app restart without reinstalling.

Known limitations

  • The panel group is hidden with CSS, so the host still believes the panels are mounted. That is intentional — it keeps the toggle independent of host internals and reversible without a reload — but it means the collapse is purely visual.
  • The :has() selector requires a reasonably modern Chromium, which the desktop app is built on. The two aria-label fallbacks do not depend on it.
  • Collapsing hides all rows of the panel list, including rows added by other plugins. That is the point of the feature; there is no per-row filtering.

License

MIT

Comments

Loading…

Similar plugins

dsh-sidebar-panel-fold

by ACGsu

Fold the DeepSeek Harness sidebar's global panel list into a single row, with a popover to switch panels.

Manifest valid

★ 0

MIT

JavaScript

Oct 20, 2026

dsh plugin --profile web add dsh-sidebar-panel-fold

by kc0ed

用于提供更丰富的DeepSeek Harness底栏信息显示插件

UI & ExperienceManifest valid

★ 8

MIT

JavaScript

Sep 3, 2026

dsh plugin --profile web add @kc0ed/dsh-bottom-bar

by EnkiduGilgamesh

DeepSeek Harness plugin: a hoverable/clickable outline rail on the left of the chat column (one marker per turn, summary card on hover, click to jump).

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Aug 15, 2026

dsh plugin --profile web add dsh-codex-side-outline

by StarMoon-win

Sidebar restart button for DeepSeek Harness Desktop: one click fully quits and reopens the app.

Manifest valid

★ 0

MIT

JavaScript

Oct 19, 2026

dsh plugin --profile web add dsh-restart

by HelloQingTao

Global instructions panel for DeepSeek Harness (dsh) web — fixed, installable fork of couplingartist/dsh-global-prompt

Manifest valid

★ 0

MIT

TypeScript

Oct 13, 2026

dsh plugin --profile web add @zfgcta/dsh-global-prompt

by lywusichen

管理 DeepSeek Harness 左下侧栏按钮的插件:拖拽排序、显隐控制,隐藏按钮收进"更多"菜单,可统一按钮高度。

UI & ExperienceManifest valid

★ 3

↓ 11/wk

MIT

JavaScript

Sep 11, 2026

dsh plugin --profile web add dsh-sidebar-buttons