Introduction

When using DeepSeek Harness (DSH) in conversations, it is often necessary to annotate assistant replies in real time so that the model can later respond to specific excerpts. Traditional annotation methods usually require manually copy-pasting or switching context after the reply, which is not smooth. The dsh-inline-comments plugin is designed to solve this problem by allowing users to select text directly in the conversation flow and add comments, then send these comments together with the message body to the model.

What is this

This plugin is maintained by zenvertao and belongs to the “memory” category of tools. Its core logic is: select content from an assistant reply, trigger the annotation editor, and after saving, generate highlights and numbering. When sending the message, the comment content is placed before the body in a specified format (separated by ---), after which the model responds item by item. Comments are automatically cleared after sending.

Core Features

Inline Interaction
Select assistant reply text, and a floating “+ Add comment” button appears. Click it to open the editor; press Enter to save, and Shift+Enter for a line break.

Status Feedback
After saving, the annotated text is highlighted, and a numbered bubble appears in the upper right corner. A “N comments” capsule appears above the input box.

Capsule Management
Hover over the capsule to view details, with support for deleting a single item or clearing all.

Send Logic
When sending, the comment section (whose format includes [i] Original: ... / Comment: ...) is placed before the body, separated by ---, and the model responds item by item. Comments are automatically cleared after sending.

Persistence and Cleanup
Supports persisting across refreshes to the host JSON file (default path is ~/.dsh/dsh-inline-comments.). Browser localStorage is only used as a fast same-page mirror. Comments are automatically cleared after sending, leaving no residue.

Reliability and Compatibility
It records the context before and after the selected text to ensure accurate locating. If the original text has changed and cannot be found, the capsule and details are marked as “Original changed”. Supports safe merging across multiple windows/devices (merging by comment id, with deletions carrying timestamps).

Installation and Enablement

Use the official installation command to add the plugin:

dsh plugin --profile web add dsh-inline-comments

Typical Usage

  1. Select a piece of text in an assistant reply with the mouse.
  2. Click the floating “+ Add comment” button.
  3. Enter your comment and press Enter to save.
  4. (Optional) Select other text to continue adding comments; manage or delete them from the capsule.
  5. Press Enter directly (or click Send) — the body will include the comments, and the model will respond item by item.

Use Cases and Notes

This plugin is suitable for scenarios where you need to annotate context instantly within a conversation flow and pass it to the model for item-by-item responses. Keep the following in mind:

  • The plugin is developed for the latest DSH version and does not aim to be compatible with all older versions.
  • If the API cannot be accessed, warnings starting with [dsh-inline-comments] will appear.
  • The test baseline is desktop version 0.1.7-rc.2.

The plugin is released under the MIT License.

Short Conclusion

dsh-inline-comments solves the need to annotate context instantly within a conversation flow and pass it to the model. For more details, refer to the plugin directory or source code.