The Web interface of DeepSeek Harness (DSH) generates a large volume of logs when debugging agents. These logs occupy significant screen space during and after Turn execution, making the interface difficult to read. The dsh-reasoning-fold plugin introduces a Codex-style folding mechanism that compresses continuous action streams into summary rows, improving the cleanliness of the Web interface while maintaining log traceability.
Plugin Overview¶
This is a folding plugin designed for the DSH Web interface, maintained by Iwwww. It liberates the Web interface from cluttered log piles by collapsing completed actions and reasoning processes.
Core Features¶
- Keep Recent Actions Visible: Running Turns display only the most recent 3 actions, with the remaining actions folded under a summary row.
- Fold Completed States: Completed Turns collapse into a duration row (e.g., “Worked 42s · 17 earlier actions”).
- Precise Folding Types: Only folds lines of type
tool-call,context,model-retry, andreasoning; error or unknown node types remain unchanged. - Preserve Assistant Text: When folding reasoning bodies, the assistant’s original text content is not hidden; if a step contains both text and reasoning, only the reasoning line is folded.
- Preserve Scroll Position: Folding operations do not read or modify the page’s scroll position.
Installation and Activation¶
Run the following command in the terminal to install the plugin:
dsh plugin --profile web add dsh-reasoning-fold
After installation, refresh the page to activate it.
Usage¶
After installation, find the Fold steps option in the General settings of the Web interface. You can choose Off, 1, 3, 5, or 10. The default value is 3.
Notes¶
- The plugin does not interfere with DeepSeek Harness’s built-in folding functionality.
- Hidden units use the
display: nonestyle and do not handle anchor jumps. - The runtime environment requires Node 22 or newer.
- The plugin runs with the permissions of the current dsh process; it is recommended to review the source code and license before installation.
Conclusion¶
With dsh-reasoning-fold, developers can significantly improve the readability of the Web interface while maintaining log traceability. Related documentation and source code can be found on GitHub.