Back to directory

dsh-auto-collapse

Curated pickMaintenance: Active

a179-sanae/dsh-auto-collapse

Pure front-end DOM plugin: auto-folds tool-call cards and think blocks into one-line summaries per turn in the DSH web chat, multi-level expand/collapse, streaming-friendly, fully reversible on HMR unload

View on GitHub
$ dsh plugin --profile web add "dsh-auto-collapse"

53

stars

9

forks

JavaScript

Language

MIT

License

2026-08-14

Created

2026-08-30

Last push

MIT-licensed DSH web plugin that collapses tool calls and reasoning into one-line summaries per turn, with multi-level expand/collapse and zero message modification.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-09-01

License

MIT

01What can it help you accomplish?

  • Collapse tool-call cards and Think reasoning blocks into compact per-turn summaries inside the DeepSeek Harness web chat

    A clean DSH web chat that shows only the model's final text, with tool calls and reasoning folded into one-line summaries and multi-level expand/collapse

    DeepSeek Harness web users who want a VSCode Codex-style collapsed view of tool/thought activity instead of a full-screen stream

  • Re-skin the in-flight status prompt from "Deep diving" to a configurable phrase

    The running status label changed to a configurable string (default `Deep sleeping...`), restorable to the official `Deep diving...`

    DSH web users who want to personalize the per-turn processing status text

02How to install into DeepSeek Harness

Prerequisites

  • DeepSeek Harness web service running — the install command targets `--profile web`

Installation steps

  1. 01

    Install from npm (recommended): `dsh plugin --profile web add "dsh-auto-collapse"`

    $ dsh plugin --profile web add "dsh-auto-collapse"

  2. 02

    Or install from GitHub to track `main`: `dsh plugin --profile web add "github:a179-sanae/dsh-auto-collapse#main"`

    $ dsh plugin --profile web add "github:a179-sanae/dsh-auto-collapse#main"

  3. 03

    Restart the DSH web service (or trigger plugin HMR), then hard-refresh the page with `Ctrl+Shift+R`. No configuration required.

Verify the integration

Not specified by the author

03DSH integration and capability boundaries

DSH integrationNative runtime

DSH web plugin installed via the official dsh CLI (`dsh plugin --profile web add`)

  • Per-turn auto-collapse (level 1)

    DSH web chat turns (tool calls + reasoning)one-line `已处理 X秒` summary with only the model's final text; click to expand the full workflow

  • Tool/thought fold rows (level 2)

    expanded level-1 turntool-call groups and think blocks each folded into a one-line chip (`正在运行 {命令}` / `运行了命令` / `已思考`), expandable on click; adjacent tool groups merge

  • Merged think rows (level 3)

    expanded `已思考` blockconsecutive think blocks merged into one level-3 think row (title `Think · 第一句`), expandable; original level-4 rows do not appear

  • Streaming-friendly re-coordination

    live streaming `assistant-step`re-coordinates on in-place text fill, React node swaps and out-of-order history mounts within the same `assistant-step`

  • Configurable status prompt

    Settings → Plugins → Plugin configeditable status prompt, default `Deep sleeping...`; empty save restores official `Deep diving...`

  • Native visual alignment

    DSH native design tokens and icons16px icon box / 14px glyph / 24px line height / 16px line gap, DSH native tokens (`--dsw-alias-label-*`), native icons (`IconThinkOutline14` / `IconApiOutline14`)

  • Fully reversible on unload

    plugin HMR stop / unloadon HMR stop, all folds / hides / rewrites are fully restored

  • Full work-type coverage

    any DSH web work itembesides tool-call, top-level `command` / `manual-compaction`, context and image-only finals handled by the same turn semantics

04Who is it for? When not to use it?

Good for

  • DeepSeek Harness web users who want a VSCode Codex-style collapsed view of tool/thought activity instead of a full-screen stream
  • DSH web users who want to personalize the per-turn processing status text

05Compatibility, maintenance and safety notes

  • The plugin only controls display state — it does not modify message content, server state, or persisted history; it is a pure front-end DOM plugin bound to the DSH Web chat UI.
  • Animations (180ms expand/collapse) are disabled under `prefers-reduced-motion`; only user clicks trigger animation, the streaming coordinator stays instant.
2026-08-142026-08-30v0.1.5

MIT · listed in the DSH plugin marketplace · latest release v0.1.5 (2026-08-29), last push 2026-08-30

06Frequently asked questions

How do I install dsh-auto-collapse for DeepSeek Harness?

Run `dsh plugin --profile web add "dsh-auto-collapse"` (npm, recommended) or `dsh plugin --profile web add "github:a179-sanae/dsh-auto-collapse#main"` to track `main`. Then restart the DSH web service (or trigger plugin HMR) and hard-refresh with `Ctrl+Shift+R`. No config needed.

Does it change my messages or chat history?

No. It is a pure front-end DOM plugin that only controls display state — it does not modify message content, server state, or persisted history. Unloading (HMR stop) fully restores every fold, hide, and rewrite.

Can I change the "Deep diving..." status text?

Yes. In Settings → Plugins → Plugin config you can edit the status prompt; the default is `Deep sleeping...`. Saving it empty restores the official `Deep diving...`.

How do the multi-level folds work?

Level 1 collapses each turn into a one-line `已处理 X秒` summary; level 2 folds tool-call groups and think blocks into one-line chips (`正在运行 {命令}` / `运行了命令` / `已思考`); level 3 merges consecutive think blocks into a single `Think · 第一句` row.

Does it work with streaming output?

Yes. It re-coordinates on in-place text fills, React node swaps, and out-of-order history mounts within the same `assistant-step`, with a smooth breathing animation on running state (disabled under `prefers-reduced-motion`).

08Data and sources

  • Author-claimedgithub.com6fb1e37a1103…

    DeepSeek Harness Web 客户端插件:把会话里的工具卡片与 Think 推理块自动折叠成一行摘要,让界面只保留模型说的话。

  • Author-claimedgithub.com6fb1e37a1103…

    纯前端 DOM 插件,挂在 DeepSeek Harness Web 聊天界面上

  • Author-claimedgithub.com6fb1e37a1103…

    dsh plugin --profile web add "dsh-auto-collapse"

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-09-01. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.