dsh-collapsible-answer
DiscoveredDeepSeek Harness plugin: keeps a complete, concise answer visible and folds optional detail under clickable headings.
折叠回复(Collapsible Replies)
一个 DeepSeek Harness Web UI 插件:不展开时看到的是完整而精简的答案;展开时看到额外细节。
行为
- 回复开头(第一个标题之前的内容)始终显示,而且是完整的结论,不整条折叠。
##(以及#、###)标题下的内容是可跳过的细节:- 长小节(超过 240 字符或 6 行)默认折叠,点击标题展开;
- 短小节直接显示。
- 有两个及以上可折叠小节时,右上角提供「展开全部 / 收起全部」。
- 流式输出时小节自动展开,输出结束后长小节恢复折叠。
- 思考过程单独收起,点击「思考」查看。
- 小节标题是普通可选中文本:备注插件可以直接对标题文字做备注,选中后再点击不会误触折叠。
- 展开状态只记在当前页面内。
输出结构约定
Host 半向系统提示词注入一段格式约定:开头写明结果/结论(一到五行或三条以内要点),必须自成完整答案;## 小节只放可选的深度(依据、示例、边界情况、日志等),必读内容不得放进小节。该约定作用于当前 profile 下的所有会话。
安装
要求:DeepSeek Harness 的 Web profile(在 0.2.1-rc.2 上验证)。
- 把本目录放到任意位置。
- 在 Harness 中让 agent 执行
plugin_manager install_bundle,target指向本目录的绝对路径;或在 Plugins 页面安装本地包。 - 安装后 profile 的
package.json会增加一条link:依赖,dsh.profile.bundles增加本包。
卸载:
plugin_manager remove_bundle @local/dsh-collapsible-answer
实现
index.js:Host 半,注册系统提示词段。client.js:浏览器半,以优先级-1注册conversation.chat.node的assistant-step渲染器,覆盖官方渲染器。locale/*.json:插件管理页的标题与描述。icon.svg:插件图标。
兼容性
插件替换官方 assistant-step 渲染器,依赖 conversation.chat.node 槽位与 @deepseek-ai/dsh-client-ui-primitives 平台模块;升级 Harness 后若聊天行结构变化,可能需要同步更新。
License
MIT
Comments
Loading…
Similar plugins
by stars2022
Collapsible plugin for DeepSeek Harness that folds tool/output details, keeping results clean and focused.
★ 3
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-ui-conciseby jkcltc
DeepSeek Harness web UI plugin that folds settled tool calls, context and reasoning into compact horizontal chips. Pure CSS, zero build.
★ 0
MIT
JavaScript
Aug 14, 2026
dsh plugin --profile web add dsh-chat-flow-re-layoutby MarJose123
DeepSeek Harness plugin: your DeepSeek API balance and the current peak/off-peak billing window, below the message input.
★ 0
MIT
JavaScript
Oct 18, 2026
dsh plugin --profile web add dsh-simple-usage-infoby temidayoxyz
DeepSeek Harness (dsh) plugin: browse http(s) pages in the right sidebar, beside the conversation.
★ 0
MIT
TypeScript
Sep 30, 2026
dsh plugin --profile web add dsh-deep-browserby yogeek
Enable/disable DeepSeek Harness (dsh) plugins from Settings > Plugins, grouped into collapsible categories
★ 0
MIT
JavaScript
Aug 25, 2026
dsh plugin --profile web add dsh-plugin-toggleby RailgunHamster
A DeepSeek Harness plugin for selecting and routing web search providers.
★ 0
JavaScript
Oct 18, 2026
dsh plugin --profile web add dsh-web-search