DeepSHPlugins
dsh-plugin-collapsible-steps 项目预览
GITHUB / COMMUNITY PROJECT

dsh-plugin-collapsible-steps

UI 增强JavaScriptMIT

把消息之间连续的工具调用与思考步骤折叠成单个可展开的括号条目。

1 Starsmervyn-teo 更新时间 2026-08-20
访问 GitHub 仓库
dsh-plugin-collapsible-steps 项目预览

项目介绍

中文

把消息之间连续的工具调用与思考步骤折叠成单个可展开的括号条目。

English

Collapses consecutive tool-use and thinking steps between messages into a single bracketed, expandable item.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
mervyn-teo
仓库
mervyn-teo/dsh-plugin-collapsible-steps
GitHub Stars
1
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-20
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

49/ 100
维护活跃
85
文档与实用信息
74
生态关注度
9
安装便捷信号
75
项目声明信号
100

近 22 天仍在更新;关注度尚低(1)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:mervyn-teo/dsh-plugin-collapsible-steps

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

dsh-plugin-collapsible-steps

dsh-plugin-collapsible-steps banner — fold consecutive tool & thinking steps into one bracket

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 steps row 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 steps text; 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's Think (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, default true) — 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

FilePurpose
lib/client.jsBrowser half — the header control, bracket insertion, collapse state, and the settings card.
lib/index.jsHost half — registers the collapsible-steps settings namespace.
lib/invariant.jsInvariant registration.
cordis.patch.ymlComposition patch that inserts the plugin row and its default config.
package.jsonPackage 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

MIT

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目