Introduction¶
When writing prompts, checking logs, or pasting interface snippets into conversations within DeepSeek Harness (DSH), you often need to “take a screenshot first, then Ctrl+V.” While built-in system screenshot tools or third-party utilities are available, their hotkeys, selection areas, and clipboards often operate independently of the DSH window. The community plugin dsh-screenshot-hotkey (maintained by Dove222, repository dove222/dsh-screenshot-hotkey) integrates “Global Hotkey → Selection → System Clipboard” into the DSH plugin ecosystem: the default Alt+A triggers a selection area, which auto-copies after confirmation, and can also be saved as PNG/JPG. The plugin is categorized as a Client plugin; the current GitHub display shows 1 star. The first public release is v1.0.0, supporting Windows only.
The following sections explain “What it is → What it does → How to install → How to use → Configuration & Notes.” Facts are based on the repository README and package.json.
What is this¶
dsh-screenshot-hotkey is a pure Host plugin for DSH: it contains no browser-side code, requires no build step, and does not rely on online dependency installation. The host side launches a Windows assistant script and uses the Win32 RegisterHotKey API to register a global hotkey—allowing screenshots even when the DSH window is not in the foreground.
In the composition tree, the plugin row ID is screenshot, and the name displayed on the sidebar plugin page matches the package name. The license is MIT; the runtime environment requires Node >= 20 and dsh >= 0.2.0-rc.1, and package.json specifies the operating system as win32.
Core Features¶
The capabilities listed in the README are as follows, all verifiable against the repository documentation:
| Feature | Description |
|---|---|
| Global Hotkey | Default Alt+A, changeable to Ctrl+Shift+S, Alt+Shift+A, F9, etc. |
| Customizable Screenshot Area | Configure fixed dimensions, a selection with initial size, or drag from scratch and then fine-tune. |
| Automatic System Clipboard Write | Upon confirmation, the image goes to the clipboard for Ctrl+V use in chat, documents, etc. |
| Optional Save | If saveDirectory is configured, every screenshot can be saved as PNG simultaneously; the overlay also allows clicking “Save As” to choose PNG/JPG. |
| Operation Feedback | After screenshot, the selection can flash and display “Copied to clipboard” (configurable). |
| Cancellation | Exit via Esc or mouse right-click within the overlay. |
The plugin does exactly one thing: turns “Screenshot → Clipboard” into a global hotkey workflow within DSH.
Installation & Activation¶
This plugin is a DSH bundle package. It is recommended to install via the official plugin manager from a local path (replace the path with the actual directory after you extract or clone; the README example uses the author’s local path):
dsh plugin --profile desktop add "E:\Users\cgy52\Documents\deepseek-harness\default-workspace\dsh-screenshot-hotkey"
Restarting DSH Desktop is mandatory after installation: manifests and composition layers are cached within the process, so newly added bundles will not take effect without a restart. After restarting, dsh-screenshot-hotkey (row ID: screenshot) should be visible on the sidebar Plugins page. Once enabled, the hotkey is globally active.
To uninstall, you can disable or remove it on the plugin page and then restart; alternatively, use:
dsh plugin --profile desktop remove dsh-screenshot-hotkey
After disabling, the assistant process ends, and the global hotkey is released immediately.
Typical Usage¶
Region Screenshot (Default Flow)¶
- With the plugin enabled, press Alt+A.
- The screen darkens, entering the selection overlay.
- Drag to select the range; after releasing, you can move the selection, drag the edges to resize, or fine-tune with arrow keys (see the README shortcut table).
- Confirm / Cancel / Save As buttons appear below the selection:
- Confirm: Writes to the clipboard, shows a green border prompt, and closes the overlay.
- Cancel: Cancels the screenshot, equivalent to Esc / Right-click.
- Save As: Opens a save dialog for preview, format change (PNG/JPG), and path selection; saving also writes to the clipboard by default (unlesscopyToClipboard: falseis configured). - Ctrl+V to paste in the target application.
During dragging, the button bar hides and reappears after release to avoid lag caused by layout reflow during the drag.
Three Screenshot Size Modes¶
Fixed Size (mode: fixed): After configuring width and height, pressing the hotkey captures that size directly centered on the mouse without popping up a selection.
Initial Selection (mode: region + width/height): Pressing the hotkey immediately displays a selection of the specified size, which can be dragged or fine-tuned further.
Drag & Fine-tune: When width/height are 0, select from scratch; after releasing, real-time dimensions appear in the top-left corner. You can use Shift+Arrow keys to adjust to precise pixels before pressing Enter.
Example configuration snippet (written to the user patch, see the next section):
- id: screenshot
name: dsh-screenshot-hotkey
config:
mode: region
width: 1200
height: 800
Configuration¶
Configuration is written to %USERPROFILE%\.dsh\profiles\desktop\cordis.patch.yml. It overwrites the entire section based on the row ID screenshot (when changing a field, include all necessary fields for that section). If left blank, default values are used:
- id: screenshot
name: dsh-screenshot-hotkey
config:
enabled: true
hotkey: Alt+A
mode: region
width: 0
height: 0
copyToClipboard: true
saveDirectory: ''
language: zh
flash: true
confirmOnRelease: false
After saving, the patch is re-read via the boot transaction; if it doesn’t take effect, restart DSH. If only assets/screenshot.ps1 is modified, the README states the assistant self-checks the script approximately every 2 seconds; if the syntax is correct, it exits automatically and the host launches the new version, generally requiring no DSH restart. However, changes to cordis.patch.yml or package.json still require a restart.
Scenarios & Notes¶
Target Audience: Users on Windows who use DSH Desktop long-term, wish to keep the screenshot and pasting workflow within the DSH plugin ecosystem, and require hotkeys that can be triggered in the background.
Platform & Permissions: The plugin declares support only on Windows; the assistant uses PowerShell 5.1 + WinForms/WPF, involving fullscreen overlays, clipboard access, and global hotkeys. The plugin runs with the current DSH process permissions. Before installation, please review the source code and the MIT license yourself to ensure it meets your security policies. The DSH community plugin directory (such as the entry on SkillHub) is an independent ecosystem site and has no official affiliation with DeepSeek / High-Flyer.
Common Issues (Excerpted from README): If the hotkey does not respond, check the log for [screenshot] 已就绪 or hotkey-register-failed (change hotkey if it is occupied); fullscreen exclusive mode in some games or players may cause a black screen; the plugin will retry if the clipboard is occupied. See the “Troubleshooting” section in the repository for more symptoms and handling methods.
Conclusion¶
dsh-screenshot-hotkey connects global screenshot hotkeys, configurable selection areas, and clipboard writing on Windows into the DSH bundle, suitable for developers who need the fixed workflow of “Alt+A → Select Region → Paste.” Directory page: https://www.skillhub.cn/plugins/Dove222/dsh-screenshot-hotkey; Source code and full documentation: https://github.com/Dove222/dsh-screenshot-hotkey.