Introduction¶
On Windows, putting screenshots into Obsidian is usually done by manually dragging attachments and adding tags, or just relying on organizing them later in the evening. dsh-screenshot-capture can chain “new clipboard image → floating window → OCR → merge notes by day”, but the titles usually only contain #文档 / #图片. Categories still require manual memory and filling. dsh-screenshot-classify adds local rule-based classification and optional summaries to the same collection chain, writing the category into the title upon entry, so that evening organization can also rely on the entry judgment. The maintainer is passing11, and the plugin is categorized as “Workflow” in the DSH community directory.
The following sections introduce positioning, capabilities, installation and configuration, usage, and precautions; facts are based on GitHub README.
What is it¶
dsh-screenshot-classify is a DeepSeek Harness (DSH) plugin: it listens to the clipboard, pops up a system-level WinForms floating window near the mouse, supports comments, highlighting, category dropdown, and “Save Document / Save Image”. When saving a document, it writes a placeholder to the note first, then performs OCR via the host multimodal model (zero-configuration is the main path), then uses local rules to classify the content into one of 18 categories, and generates a one-line summary for #文档 classes; notes are merged into the Obsidian inbox by day, and can be organized into the knowledge base directory in the evening using built-in tools. It is a branch rewrite of dsh-screenshot-capture. Both cannot be enabled at the same time (the same clipboard would be monitored twice and two windows would pop up).
Core Features¶
Collection and Floating Window¶
When a new screenshot or copied image is detected, a small top-most window pops up near the mouse. Shortcuts: 1 Save Document, 2 Save Image, Esc Ignore. You can check “Highlight”, and the content is written to the note as # **重点**. The category dropdown defaults to “Auto” (wait for OCR then rule judgment), or you can specify the category on the spot and skip auto-judgment.
Save Document: Image is stored and a placeholder is written immediately → OCR → Classification → Summary → Backfill. Save Image: No OCR is run, just stored and tried to classify (confidence is often low when there is no text, will be marked as weak judgment). The plugin provides deduplication (32×32 grayscale fingerprint), clipboard helper backoff restart, and mechanisms for backoff and temporary files when note backfill fails. See README for details.
Automatic Classification (18 Categories)¶
Categories include: Chat logs, payment bills, shopping, game screenshots, Q&A communities, social media, video playback, study materials, documents/receipts, social dating, maps/travel, code development, 2D/ACGN, memes/stickers, political news, daily life, wordplay/memes, photography. Judgment is purely local rules, using the same scoring logic as dsh-photo-organizer (package name, phrases, regex, screenshot shape, text length, etc.); when judgment is inaccurate, the title tag is not forced to change, but > 分类: …(弱) is added under the OCR block. When confidence is lower than classifyMinConfidence (default 0.55), it is also marked as weak.
Note title example shape: ## 14:30 #文档 #学习资料, the second #Tag is the category, which is convenient for filtering in Obsidian.
Document Summary¶
summarizeMode defaults to rules: extracts a sentence locally from OCR text; optional host uses the host text model to write a sentence in plain language, or off to disable. Only effective for #文档 saved successfully; falls back and warns on failure, does not block the screenshot process.
Evening Organization¶
Use tools like screenshot_inbox_organize to classify retained entries into the knowledge base, write indexes and daily summaries, and archive. When no category is manually specified, the category judged upon entry is used (different from the original capture plugin’s “evening manual classification” behavior).
Web Configuration¶
A “Screenshot Classification” page appears in DSH settings (depends on DSH configForms, README states applicable to DSH 0.1.7~0.2.x). Configuration can also be written manually: %USERPROFILE%\.dsh-screenshot-classify\config.json; and it also falls back to reading settings under the original dsh-screenshot-capture namespace.
Environment Requirements¶
- Windows (PowerShell 5.1 + WinForms)
- DSH 0.1.7~0.2.x (Earlier versions may still work for capture, but the settings page won’t appear)
- Host must have
llm+attachmentsloaded, and the current model declaresinputModalitiescontainingtextandimage; if not met, it can fallback to Tongyi Qianwen (API key optional in this case) - Local Obsidian vault or any markdown directory (
vaultPathis required)
Installation and Enablement¶
The plugin runs with the current DSH process permissions; before installation, it is recommended to check source code and license on GitHub (package.json current version is 0.3.1). Community directory page: https://www.skillhub.cn/plugins/passing11/dsh-screenshot-classify.
- Install using official commands (choose one):
# Method 1: Install directly from GitHub (Recommended)
dsh plugin --profile desktop add github:passing11/dsh-screenshot-classify
# Method 2: Local directory (for development)
dsh plugin --profile desktop add /path/to/dsh-screenshot-classify
# Method 3: Install after packing
npm pack
dsh plugin --profile desktop add ./dsh-screenshot-classify-0.3.1.tgz
-
Restart DSH (not just refresh the page).
-
DSH Settings → “Screenshot Classification” → Fill in Obsidian vault path
vaultPath. -
Disable
dsh-screenshot-captureto avoid double windows and duplicate entry:
dsh plugin --profile desktop remove dsh-screenshot-capture
Can also be closed in DSH Settings → Plugins. Old capture configuration items (path, OCR mode, window position, etc.) will be read as fallbacks by this plugin, generally no need to refill.
Typical Configuration and Usage¶
Common Configuration Items¶
Settings page groups: General / OCR / Classification / Summary / Dialog / Archive. Keys directly related to classification and summary are as follows (see README for full table):
| Key | Default | Description |
|---|---|---|
classifyEnabled |
true |
If disabled, behavior is closer to the original capture plugin |
classifyMinConfidence |
0.55 |
Mark as weak judgment if below this value |
summarizeMode |
rules |
off / rules / host |
summarizeMaxChars |
120 |
Summary length upper limit |
ocrMode |
host |
host / qwen / off |
dialogTheme |
c1 |
Four floating window themes c1~c4 |
Inbox and Organization Tools¶
After entry, daily notes are merged under inboxFolder (default 收件箱) by date; attachments are in attachmentsFolder (default attachments). View status and list, do evening organization:
screenshot_status
screenshot_inbox_list
screenshot_inbox_organize keep=["14:30","14:32"]
First run screenshot_inbox_list to see daily items (time, type, category, OCR, summary), then call screenshot_inbox_organize on the time blocks to keep.
Taking a screenshot and going through the floating window is the fastest way to verify if the installation is normal.
Applicable Scenarios and Notes¶
Who is it for: Users already using DSH desktop on Windows who want screenshots in Obsidian and hope categories and summaries are completed at the entry stage; willing to accept errors in local rule-based classification, and correct via weak marking and manual dropdown.
Must Note:
- Do not enable
dsh-screenshot-capturein parallel. - Plugin relies on local DSH and model capabilities; when OCR falls back to Tongyi Qianwen, you need to prepare the key yourself.
- Automatic classification does not call cloud large models for classification, but
summarizeMode: hostand thehostmode of OCR will consume the host model quota. - Community directory skillhub.cn is an independent ecosystem site with no official affiliation with DeepSeek / HF; please review code and permission scope before installing third-party plugins.
Turning off classifyEnabled can revert to behavior close to the original capture, facilitating A/B comparison.
Conclusion¶
dsh-screenshot-classify retains “screenshot and save”, host OCR, daily merge and evening organization, while using local rules to tag notes with #类目 tags and supplementing a line of summary for document classes, reducing the cost of manually sorting the inbox later. Directory and source code:
- Community directory: https://www.skillhub.cn/plugins/passing11/dsh-screenshot-classify
- GitHub: https://github.com/passing11/dsh-screenshot-classify