DeepSeek Harness Screenshot Annotation Plugin dsh-shot: Box Selection and Annotation

Preface

In the development workflow of DeepSeek Harness (DSH), it is a common requirement to explain logic or annotate code snippets via screenshots. The dsh-shot plugin integrates screenshot capabilities directly into the Composer editor, allowing users to select regions, annotate, and hide the DSH window during capture on an in-window overlay.

What is it

dsh-shot is a client-side plugin maintained by 19north. It provides users with an in-window screenshot and annotation workflow by adding a camera button to the Composer editor. The captured result is placed into the draft of the current conversation as an image attachment.

Core Features

  • Selection & Adjustment: Drag a rectangular selection on the opened overlay, supporting resizing via edge handles or moving via internal dragging.
  • Annotation Tools: Supports three annotation modes—rectangle, arrow, and text—with an 8-color palette.
  • Window Hidden Capture: Provides a “Hide this window” option to hide the DSH window before capture and restore it afterwards.
  • Interaction Fine-tuning: Supports fine-tuning the selection with arrow keys (Shift key for precise 10-pixel movement) and supports undo operations.

Installation & Activation

Installing this plugin requires specifying a DSH Profile.

dsh plugin --profile <profile> add dsh-shot

After installation, the plugin is automatically added to dsh.profile.bundles. You need to restart the DSH application for the plugin to take effect.

Usage

  1. Start Capture: Click the camera button next to + in the editor, and select “Direct capture” or “Hide this window” from the menu.
  2. Select Region: Drag the mouse on the in-window overlay to box-select the area you wish to capture.
  3. Adjust Selection:
    • Drag the eight handles (corners and edge midpoints) on the selection border to resize.
    • Drag the inside of the selection to move it.
    • Use arrow keys to fine-tune the selection; hold Shift for precise 10-pixel movement.
    • Right-click or click the selection again to reset it.
  4. Add Annotation: Use the rectangle, arrow, or text tools to annotate. For the text tool, click to place, Enter to confirm, and Esc to cancel.
  5. Confirm: After confirming (or pressing Enter), the screenshot will be placed in the draft as an image attachment.

Notes

  • Platform Limitation: Only supports the Windows platform.
  • Overlay Mechanism: The overlay is located inside the DSH window rather than being fullscreen; the captured image will be scaled to fit the window, which may result in black bars.
  • Window Hiding: In “Hide this window” mode, the DSH window will briefly disappear (approx. 0.3-1.2 seconds).
  • Empty Frame Issue: The capture script may occasionally return an empty frame; manual retry is required.
  • Version Requirement: Requires DeepSeek Harness 0.1.7 or higher.

Summary

dsh-shot provides DSH users with a lightweight screenshot and annotation solution without the need to switch to external screenshot tools. For developers who frequently insert screenshot explanations into conversations, this plugin effectively improves communication efficiency. For more details and source code, please refer to its GitHub repository.

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

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

Xiaoye