Introduction¶
DSH extends client capabilities in a plugin-based manner, but the Web interface of DeepSeek Harness still lacks convenience for some common chat operations: modifying the previous question, regenerating the answer, and comparing multiple versions within the same turn. dsh-webchatlike is a client plugin aimed at bringing the chat experience of DeepSeek’s web version or app into DeepSeek Harness—allowing you to edit questions, regenerate replies, and switch versions directly on messages, just like chatting on deepseek.com.
What This Is¶
- Plugin name:
dsh-webchatlike - Maintainer:
cindyguyuehu123 - Category: Client
- License: MIT
- Version declared in
package.json:0.1.0 - GitHub: https://github.com/cindyguyuehu123/dsh-webchatlike
It is designed for DSH’s web interface, providing message-level operation entries and version display.
Core Features¶
In-Place Editing of User Messages¶
After hovering over a user message, you can edit it in place and resend it.
Regenerating Assistant Replies¶
After hovering over any assistant reply, you can regenerate it.
Version Paging¶
On each message that has been regenerated or edited and resent, a deepseek.com-style <i/N> version pager appears. Use the left and right arrows to switch versions, which automatically align to the same turn. Each conversation remembers the last viewed version.
Forking the Entire Tree¶
You can fork the entire tree into a completely independent copy. The copy’s root title is marked with (copy) or (copy 2), etc.
Sidebar and Session Deletion¶
The sidebar collapses version forks into the original conversation, with one conversation per row. The left-side session menu supports deleting sessions and session logs on disk; deletion requires a patch, and running sessions are rejected.
Installation and Enabling¶
1. Apply Source Code Patches First¶
This plugin requires 2 source code patches:
ui-conversationuser-actions slot: 5 filesui-workspaceversion folding: 4 files
Before installation, you need to execute the patch script, install dependencies, and build:
/path/to/dsh-webchatlike/apply-patches.sh
pnpm install
pnpm run build:lib:client && pnpm run build:web
Without applying the patches, the plugin can still load, but the edit button and sidebar folding will not appear. cordis.patch.yml is only responsible for loading the plugin itself.
2. Install the Plugin¶
When installed as a bundle, use:
dsh plugin --profile web add <this repository's git address or npm package name>
package.json declares dsh.bundle, and the patch is ./cordis.patch.yml. The placeholder in the command needs to be replaced with the actual git address or npm package name.
For manual installation, add the package to the dependencies in ~/.dsh/profiles/web/package.json, and execute the following in the profile directory:
pnpm install
3. Enable¶
After applying patches, building, and installing, the plugin loads via cordis.patch.yml. Upon entering the web interface, you can see the regenerate, edit, and version paging entries next to messages.
Typical Usage¶
- Hover over any assistant reply to trigger regeneration.
- Hover over any user message to edit it in place and resend it.
- After multiple regenerations or edits and resends in the same turn,
<2/5>appears next to the reply; use the left and right arrows to switch versions. - Delete sessions from the menu at the end of the left-side session list row. Deletion requires confirmation; running sessions are rejected.
Note: The first message cannot be regenerated or edited because there is no clean fork boundary before the first turn.
Use Cases and Notes¶
This is suitable for those who need to repeatedly modify questions, regenerate answers, and compare multiple versions on DSH’s web interface. When using it, note:
- Two source code patches are required:
ui-conversationuser-actions slot (5 files) andui-workspaceversion folding (4 files). - Without applying the patches, the plugin can load, but the edit button and sidebar folding will not appear.
- Session deletion requires a patch, and running sessions are rejected.
- The plugin runs with the current DSH process permissions; before installation, check the source code and license. The license is MIT.
Links¶
GitHub: https://github.com/cindyguyuehu123/dsh-webchatlike