Introduction¶
When having long conversations in DeepSeek Harness (DSH), if a previous user prompt had an error, missing conditions, or if you simply want to change the wording, the common practice is to start a new session and repeat everything, or manually copy, paste, and modify the content. If the official Web interface does not provide an entry to “edit this and continue,” historical branches can easily clutter the sidebar, and attachments need to be re-uploaded manually.
Below, we introduce the community plugin dsh-prompt-edit (maintained by perdakovich), categorized as a Client-side tool. It adds a pencil entry to each user message in the Web chat, allowing in-place editing and rewriting the conversation as a “clean branch,” while archiving the replaced old branch. The plugin is released under the MIT license. The current package version is 1.0.0, and it requires Node.js >= 20.
What is this¶
dsh-prompt-edit adds in-place prompt editing to DeepSeek Harness: click the pencil on any user message, modify the text, and submit to continue the conversation with the new content starting from that turn. The README positions it as “The pencil DSH forgot to ship: suckless prompt editing, engineered to feel like it was always there”—it supplements the missing “edit pencil” on the Web end, rather than creating a separate chat UI.
In terms of implementation, it injects into the Web client via a Cordis patch (cordis.patch.yml), relies on DSH peer packages such as session and typert, and aligns with existing dark/light theme tokens.
Core Features¶
The following capabilities are derived from the GitHub README:
-
In-place edit
Directly modify any past user prompt within the chat without leaving the current interface. -
Clean branch
Cuts the history at the target turn, forking a new session to continue; the README emphasizes that no ghost turns or corrupted log structures will occur. -
Keeps attachments
Images and file attachments are preserved with the new branch after editing, eliminating the need to re-upload. -
Auto-archive
The old session branch replaced by the new branch is moved to the archive, keeping the sidebar clean. -
DSH-native
Styles follow the current dark/light theme tokens. -
IME-safe
Prevents accidental submission during IME composition (e.g., Pinyin, Hanzi selection). -
Multilingual interface
Automatically detects the environment for English, Chinese, and Russian interfaces (en / zh / ru).
Installation and Activation¶
The plugin is designed for the Web profile. The installation command follows the README:
dsh plugin --profile web add github:perdakovich/dsh-prompt-edit
After installation, you must restart dsh web and refresh the browser page for the client-side injection to take effect.
Typical Usage¶
Edit a User Message¶
- Locate the user message you want to change in the Web chat.
- Click the pencil icon next to that message.
- Modify the text in the editor; if the message contains images or files, the editing process will attempt to preserve these attachments.
- Submit or cancel using the shortcuts below.
Edit Area Shortcuts¶
| Key | Behavior |
|---|---|
Enter |
Submit; closes editor if content is unchanged |
Shift + Enter |
New line |
Ctrl + Enter |
Quick submit |
Escape |
Cancel edit |
What Happens Behind the Scenes¶
The README summarizes the mechanism in three steps to help understand why the “old session disappears and a new session appears” in the sidebar:
- Truncates the current session history before the edited turn.
- Spawns a clean child session using the updated prompt and attachments.
- Archives the old session branch.
Therefore, this does not silently modify strings within the original session but follows a Branch + Archive model, suitable for scenarios where you want to “re-run the agent from this turn.”
Use Cases and Notes¶
Who is it for
- Developers who primarily debug prompts, add constraints, and correct typos in DSH Web, and want to restart the conversation from a specific turn.
- Multimodal conversation scenarios that require preserving original message attachments when modifying prompts.
- Users who want old branches to automatically go to the archive to minimize manual sidebar cleanup.
Please note before use
- The plugin runs with the same permissions as the current
dshprocess. Before installation, it is recommended to read the repository source code and the MIT license to ensure it meets your security and compliance requirements. - Only the
--profile webinstallation path is documented; availability for non-Web ends should be based on the repository’s instructions, which this article does not cover. - The community directory SkillHub plugin page and GitHub are independent sources of information and have no official affiliation with DeepSeek / High-Flyer. Star counts and other statistics are subject to the display at the time on each respective site.
Conclusion¶
dsh-prompt-edit turns “editing historical user messages and cleanly continuing from that turn” into a one-click pencil action in the Web: with clear branching, preserved attachments, and archived old sessions, it also accommodates IME and multi-language support. If you are iterating on agent prompts in DSH, you can install it for the Web profile using the command above. After restarting the service and refreshing the page, you can try it out.
- Directory Page: https://www.skillhub.cn/plugins/perdakovich/dsh-prompt-edit
- Source Code & Documentation: https://github.com/perdakovich/dsh-prompt-edit