插件目录 / UI & Skins / dsh-plugin-collapsible-steps
dsh-plugin-collapsible-steps
已验证 · 实测可装 mervyn-teo
功能简介
UI & Skins 类别的 DeepSeek Harness 插件。
可用 — 实测通过,早期项目
UI & Skins 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-plugin-collapsible-steps
English | 中文
A DeepSeek Harness (DSH) Web
plugin that folds every run of consecutive collapsible-card steps between
messages into a single + N steps row. Click the row to collapse the run
(hiding all but the most recent step) or expand it back. The shipped
conversation cards and markdown answers are left untouched — the rows are
annotated, never replaced.
What it does
- Adds a Collapse steps / Expand steps control to the session header, and a
- N stepsrow before every run of consecutive step nodes. - Collapsing a row hides that run's rows (
display: none, so no empty gaps
are left behind) except the most recent one, which stays below the+ N stepstext; clicking+expands the run back. - A "step" is any collapsible-card row —
tool-call,workflow-run,command,command-input,compaction,context(context injection),manual-compaction,model-retry, and an assistant message'sThink
(reasoning) disclosure. The final text answer, user/steering messages, and
turn notices act as group boundaries. - The regular tool cards, reasoning sections, and markdown answer rendering
all remain the shipped DSH ones. - A Collapsible steps card under Settings → Plugins controls whether runs
are collapsed by default.
Settings
The plugin registers a collapsible-steps settings namespace with one option:
collapseByDefault(boolean, defaulttrue) — collapse runs of steps by
default. Turn it off to keep runs expanded until you collapse them manually.
How it works
The slot system gives a plugin no way to wrap the shipped conversation cards,
so instead of replacing the step renderers this plugin annotates the shipped
DOM: it reads the conversation node order through the session hook, computes
the runs of consecutive steps, and inserts the bracket headers directly into
the existing flow (the node rows themselves are never moved, so the shipped
view keeps reconciling normally).
Files
| File | Purpose |
|---|---|
lib/client.js |
Browser half — the header control, bracket insertion, collapse state, and the settings card. |
lib/index.js |
Host half — registers the collapsible-steps settings namespace. |
lib/invariant.js |
Invariant registration. |
cordis.patch.yml |
Composition patch that inserts the plugin row and its default config. |
package.json |
Package metadata (dsh.bundle + dsh.client manifest). |
Install
dsh plugin --profile web add github:mervyn-teo/dsh-plugin-collapsible-steps
Then restart dsh web — host bundles load at boot.
Requirements
- DSH with the base conversation UI (
@deepseek-ai/dsh-client-ui-conversation)
mounted — the plugin inserts brackets into its chat flow.
License
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-plugin-collapsible-steps」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:mervyn-teo/dsh-plugin-collapsible-steps Headless(CLI)profile:
dsh plugin --profile headless add github:mervyn-teo/dsh-plugin-collapsible-steps 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。