dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
把消息之间连续的工具调用与思考步骤折叠成单个可展开的括号条目。
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.
- N steps row before every run of consecutive step nodes.display: none, so no empty gaps
are left behind) except the most recent one, which stays below the
+ N steps text; clicking + expands the run back.tool-call, workflow-run,
command, command-input, compaction, context (context injection),
manual-compaction, model-retry, and an assistant message's Think
(reasoning) disclosure. The final text answer, user/steering messages, and
turn notices act as group boundaries.The plugin registers a collapsible-steps settings namespace with one option:
collapseByDefault (boolean, default true) — collapse runs of steps by
default. Turn it off to keep runs expanded until you collapse them manually.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).
| 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). |
dsh plugin --profile web add github:mervyn-teo/dsh-plugin-collapsible-steps
Then restart dsh web — host bundles load at boot.
@deepseek-ai/dsh-client-ui-conversation)
mounted — the plugin inserts brackets into its chat flow.