Preface¶
Running an agent in the DeepSeek Harness (DSH) Web client, a single turn often involves context injection, thought blocks, tool calls, and intermediate text. By default, all of this content is fully expanded, which can quickly fill the interface with workflow details in long conversations, forcing the user to scroll down to see the model’s final response.
The official interface displays status prompts like Deep diving..., but it does not condense the entire workflow into a summary line. dsh-auto-collapse is a pure frontend DOM plugin that attaches to the DSH Web chat interface. It automatically collapses tool cards and Think reasoning blocks, delivering a collapsing experience similar to the VSCode Codex desktop client, while also supporting the customization of the status prompt to a configurable Deep sleeping.... This document introduces its purpose, capabilities, and installation method.
What This Is¶
dsh-auto-collapse is maintained by a179-sanae and is open-source on GitHub (MIT license, current version 0.1.4). It does not alter message content; it only controls the display state of the workflow process. Uninstalling it (via HMR stop) fully restores all collapsing, hiding, and text rewrites.
The plugin attaches to the DSH Web chat interface and uses DOM operations to condense each turn’s workflow into a single summary line. Clicking this line expands the complete workflow. The goal is to keep the interface focused primarily on what the model says.
Core Features¶
Three-Level Collapsing Structure¶
- Level 1: Auto-collapse upon turn completion. After each turn finishes, the workflow process collapses into a single line:
Processed in X seconds, leaving only the model’s final text. Clicking this line expands the full workflow (Context Injection → Thinking → Tool Calls → Intermediate Text → Final Text). - Level 2: Independent collapse for tools and thoughts. After expanding Level 1, tool call groups and thought blocks each collapse into a single chip (
Running {command}/Command executed/Thought processed). Clicking expands or collapses them. Adjacent tool groups are merged; intermediate text output is a hard boundary and is never merged across text segments. - Level 3: Thought merging. After expanding
Thought processed, consecutive thoughts are merged into a single Level-3 thought line (with the titleThink · [first sentence]). Clicking expands the merged content block; the original Level-4 lines are hidden.
Visuals and Interactions¶
- Icon box: 16px, glyph: 14px, line height: 24px, line spacing: 16px. Colors use native DSH tokens (
--dsw-alias-label-*). Thought and command icons are taken from DSH’s native icons (IconThinkOutline14/IconApiOutline14). - Click-driven expand (fade-in + 4px upward shift, with height expansion for merged thought text) and collapse (mirror fade-out) both take 180ms. Animations are triggered only by user clicks; stream coordinator decisions remain instantaneous.
- The running state features a smooth breathing text animation; animations are disabled under
prefers-reduced-motion, and transition animations are also disabled.
Streaming and Compatibility¶
The same assistant-step element is coordinated when text is appended in-place, React replaces nodes, or historical messages are mounted out of order. Besides tool-call, top-level command / manual-compaction, context, and pure image final elements are all processed using the same turn-based semantics.
Configurable Status Prompt¶
In Settings → Plugins → Plugin Configuration, you can edit the “Status Prompt”. The default is Deep sleeping.... Saving with the field blank restores the official Deep diving....
Installation and Enabling¶
The plugin is published as an npm package. It’s recommended to use the pre-built version:
dsh plugin --profile web add "dsh-auto-collapse"
To install from GitHub (for the development version or to follow the main branch):
dsh plugin --profile web add "github:a179-sanae/dsh-auto-collapse#main"
After installation, restart the DSH web service (or trigger plugin HMR) and perform a hard refresh on the page (Ctrl+Shift+R) for the plugin to take effect. No configuration is required.
Typical Usage¶
After installation and a refresh, the plugin is automatically active; no additional commands are needed.
View the collapsing effect: After a turn completes, the workflow process collapses into a single line Processed in X seconds, leaving the model’s final text on the interface. Clicking this line expands the full workflow.
Adjust the status prompt: Open the DSH Web client’s Settings → Plugins → Plugin Configuration and edit the “Status Prompt”. The default is Deep sleeping...; to revert to the official text, save the field blank to restore Deep diving....
Uninstall and restore: Remove the plugin via dsh plugin and trigger an HMR stop. All collapsing, hiding, and text rewrites will be completely restored.
Use Cases and Considerations¶
Who is this for?
- Those who frequently run multi-step agent tasks on DSH Web and want the interface to focus on the model’s final output.
- Users accustomed to the collapsing experience in VSCode Codex desktop and who want similar interactions on the web.
- Those needing reversible UI enhancements without modifying the underlying message data.
Before use, please note:
- The plugin runs with the permissions of the current
dshprocess. Before installation, you should review the source code and the MIT license. - This is a pure frontend DOM plugin that depends on the DOM structure and React rendering behavior of the DSH Web client. If the interface structure changes after a major DSH version upgrade, the plugin may need time to be updated for compatibility.
- The community directory SkillHub is an independent site and has no official affiliation with DeepSeek or High-Flyer.
Summary¶
dsh-auto-collapse condenses the tool calls and thought blocks in a DSH Web session into an expandable one-line summary, making long conversation interfaces cleaner while preserving the ability to view the complete workflow. It can be enabled with a single installation command, and the status prompt is configurable as needed.