Preface¶
In the conversation flow of DeepSeek Harness Web, the official “thinking” and “tool” nodes are usually expanded and displayed directly. As complexity increases, these process-oriented pieces of information can occupy a large amount of visual space and interfere with reading the final answer. The dsh-folded-chat plugin solves this problem through a folding mechanism, providing a cleaner interface without replacing the official chat slots.
What Is This¶
This is a DeepSeek Harness Web plugin maintained by user xingyingyuzhui. Its core purpose is to collapse “thinking” and “tool” nodes into two-level collapsible sections in the main chat view. Official tool cards and other Chat nodes remain unchanged.
Core Features¶
- Two-level collapsible structure: In the main chat view, “thinking” and “tool” nodes are collapsed into two-level collapsible sections.
- Preserve official nodes: It does not replace official chat slots; official tool cards and other Chat nodes remain unchanged.
- Multilingual support: The English UI follows the DSH locale.
- Toggle control: Supports an enable toggle. When turned off, the collapsible bar disappears and official nodes are restored.
- Default collapse settings: Supports configuring whether finished rounds should collapse the “process” layer or the “tool” layer by default.
- Smart merging: Consecutive think + tool entries with no visible assistant text in between are merged into a single process entry, rather than creating one empty collapsible bar for each step.
- Interaction logic: An in-progress group is expanded by default. A group that has been manually toggled is no longer automatically rewritten.
Installation and Enablement¶
Prerequisite: dsh web can already run on the local machine.
dsh plugin --profile web add github:xingyingyuzhui/dsh-folded-chat
After installation, restart dsh web and enable the feature in the settings interface.
Typical Usage¶
Open Settings → Plugins → Plugin Configuration → Process Folding.
The folded structure usually appears as:
* Outer layer: [Process ▸]
* Inner layer:
* [Thinking]
* [Tool Calls ▸]
* bash / read / …
* Assistant text: Always visible.
The configuration items are as follows:
| Toggle | Effect |
|---|---|
| Enable | Master switch. When turned off, the collapsible bar disappears and official nodes are restored |
| Fold Process by Default | Whether finished rounds collapse the outer layer by default |
| Fold Tools by Default | Whether finished rounds collapse tool rows by default |
Use Cases and Notes¶
This plugin is suitable for users who want to reduce visual noise in DSH Web and focus on the final output.
Note: This plugin runs with the permissions of the current dsh process. It is recommended to review the source code and license before installation.
Conclusion¶
After the above configuration, the main chat view will no longer be occupied by lengthy thinking and tool-call processes, returning to simplicity. For more details and source code, refer to the project directory or GitHub repository.