Skip to content

a179-sanae/dsh-auto-collapse

30Last commit Aug 16, 2026

dsh-auto-collapse DSH plugin

dsh-auto-collapse is a pure front-end DOM plugin for the DeepSeek Harness Web chat interface. It collapses workflow steps into compact single-line summaries, hiding tool calls and reasoning blocks to declutter the view. The plugin is reversible, restores original DOM on unload, and handles streaming updates gracefully.

How to install the dsh-auto-collapse DSH plugin

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

Copying does not run this command. Review the repository and version before installing the dsh-auto-collapse DSH plugin.

dsh-auto-collapse DSH plugin data source

dsh-auto-collapse DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-auto-collapse DSH plugin can do

  • Auto-collapses each completed turn into a single line showing elapsed time, with click to expand the full workflow.
  • Secondary collapse: tool-call groups and think blocks fold into chip lines ('Running {command}', 'Ran command', 'Thought'), expandable on click.
  • Tertiary think merge: consecutive thinking blocks merged into a single expandable line titled 'Think · first sentence'.
  • Streaming-friendly: re-coordinates on in-place text additions, React node swaps, and out-of-order historical mounts.
  • Reversible: unloading (HMR stop) fully restores all collapsed/hidden/rewritten states.
  • Uses DSH native tokens and icons for visual alignment (16px icon box, 14px glyph, 24px line height).

Where the dsh-auto-collapse DSH plugin fits

  • Reduce visual clutter in long chat sessions by hiding verbose tool calls and reasoning steps.
  • Focus on the assistant's final responses while still being able to inspect the workflow when needed.
  • Simplify screen sharing or recording by showing only the model's output by default.
  • Quickly skim through past conversation turns without scrolling through large blocks of intermediate content.

Who the dsh-auto-collapse DSH plugin is for

  • DeepSeek Harness Web users who want a cleaner chat interface.
  • Developers and power users who frequently interact with long agentic workflows in DSH.

dsh-auto-collapse DSH plugin limitations

  • Only works with the DeepSeek Harness Web client (profile web).
  • Requires a hard refresh (Ctrl+Shift+R) after installation for the plugin to take effect.
  • Depends on the specific DOM structure of DSH Web; may break with DSH version updates.

dsh-auto-collapse DSH plugin: from the repository README

Quoted from the a179-sanae/dsh-auto-collapse README, the upstream source of the dsh-auto-collapse DSH plugin. Copyright remains with the original authors.

> DeepSeek Harness Web 客户端插件:把会话里的工具卡片与 Think 推理块自动折叠成一行摘要,让界面只保留模型说的话。 > > English: [README.en.md](./README.en.md) ## 这是什么 `dsh-auto-collapse` 是一个纯前端 DOM 插件,挂在 DeepSeek Harness Web 聊天界面上,把工作流程折叠成一行行摘要——工具调用、推理过程不再占据整屏,呈现接近 VSCode Codex 桌面端的折叠体验,**同时将“Deep diving” 修改为 “Deep sleeping”**。它不改动消息内容,只控制工作流程的显示状态: - **回合完成自动收起**(一级):每个回合完成后,工作过程收成一行 `已处理 X秒`,只留模型最终正文;点击展开完整工作流程(上下文注入 → 思考 → 工具调用 → 过程正文 → 最终正文)。 - **二级折叠行**:展开一级后,工具调用组与思考块各自折叠成一行 chip(`正在运行 {命令}` / `运行了命令` / `已思考`),点击展开/收起;相邻工具组合并,正文输出是硬边界(不会跨正文合并)。 - **三级思考合并**:展开 `已思考` 后,连续思考合并为一个三级思考行(标题 `Think · 第一句`),点击展开合并内容块;原始四级行不出现。 - **原生视觉对齐**:图标盒 16px / glyph 14px / 行高 24px / 行距 16px,颜色使用 DSH 原生 token(`--dsw-alias-label-*`),思考与命令图标取自 DSH 原生图标(`IconThinkOutline14` / `IconApiOutline14`)。 - **流式友好**:同一个 `assistant-step` 原地补正文、React 换节点和历史乱序挂载都会重新协调;running 状态带文字流光与三点跳动,`prefers-reduced-motion` 下停止动画。 - **完整工作类型**:除 tool-call 外,顶层 `command` / `manual-compaction`、context 和纯图片 final 都按同一回合语义处理。 - **可逆**:卸载(HMR stop)时完整还原所有折叠/隐藏/改写。 ## 效果预览 ![折叠效果](assets/screenshot.png) ## 安装 ```bash dsh plugin --profile web add "github:a179-sanae/dsh-auto-collapse#main" ``` 安装后重启 DSH web 服务(或触发插件 HMR),页面 `Ctrl+Shift+R` 硬刷新即可生效。无需任何配置。 ## 开

Read the full READMERepository license: MIT

dsh-auto-collapse DSH plugin questions

How do I install dsh-auto-collapse?

Run `dsh plugin --profile web add "github:a179-sanae/dsh-auto-collapse#main"` in your terminal, then restart the DSH web service or trigger plugin HMR. After that, hard refresh the page with Ctrl+Shift+R to activate the plugin.

Does this plugin modify the message content?

No, it only controls the display state of workflow steps. It never modifies the actual message content. The plugin is purely visual and reversible.

How can I uninstall or disable the plugin?

You can uninstall it via `dsh plugin --profile web remove dsh-auto-collapse`. The plugin is designed to be reversible: on unload (HMR stop), it fully restores all collapsed, hidden, or rewritten states to the original DOM.

Does it work with streaming responses?

Yes, it is streaming-friendly. It re-coordinates on in-place text additions, React node swaps, and out-of-order historical mounts. Running states even show a shimmer animation with three dots.

Can I configure the plugin?

No configuration is needed. The plugin works out of the box after installation. There are no settings to adjust.