dsh-prompt-edit: Inline Editing Historical User Messages in DSH Web

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:

  1. In-place edit
    Directly modify any past user prompt within the chat without leaving the current interface.

  2. 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.

  3. Keeps attachments
    Images and file attachments are preserved with the new branch after editing, eliminating the need to re-upload.

  4. Auto-archive
    The old session branch replaced by the new branch is moved to the archive, keeping the sidebar clean.

  5. DSH-native
    Styles follow the current dark/light theme tokens.

  6. IME-safe
    Prevents accidental submission during IME composition (e.g., Pinyin, Hanzi selection).

  7. 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

  1. Locate the user message you want to change in the Web chat.
  2. Click the pencil icon next to that message.
  3. Modify the text in the editor; if the message contains images or files, the editing process will attempt to preserve these attachments.
  4. 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:

  1. Truncates the current session history before the edited turn.
  2. Spawns a clean child session using the updated prompt and attachments.
  3. 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 dsh process. 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 web installation 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.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye