dsh-plugin-verified-search
f0909172434
Verified current-source search workflow for DeepSeek Harness
PROJECT TOPICS
PROJECT README
English | 简体中文
Offline OCR for DeepSeek Harness, powered by Apple's macOS Vision framework. The plugin adds an ocr_image tool that lets any text model extract text from screenshots, scans, and document images without an API key or network request.
VNRecognizeTextRequest at accurate recognition level.swiftc available on PATH.0.1.0-rc.5 or a compatible developer-preview build.This plugin intentionally fails on Linux and Windows because Apple Vision is not available there.
Install directly from GitHub into any profile that should expose OCR:
dsh plugin --profile web add github:leozou320-ai/dsh-macos-vision-ocr
Restart the profile after installation. To remove it:
dsh plugin --profile web remove dsh-macos-vision-ocr
Ask the agent to read an image, or call the tool explicitly:
{
"file_path": "./scan.png",
"languages": ["zh-Hans", "en-US"]
}
The result contains the canonical image path, recognized text, selected languages, and a truncated flag.
Edit this package's row in a later Harness patch layer when you need different defaults:
- id: dsh-macos-vision-ocr
config:
cacheDir: /absolute/path/to/cache
languages: [en-US]
maxOutputBytes: 2000000
| Key | Default | Description |
|---|---|---|
cacheDir |
$DSH_HOME/cache/ocr |
Swift source and compiled helper cache. |
languages |
zh-Hans, zh-Hant, en-US |
Languages used when a tool call omits them. |
maxOutputBytes |
1000000 |
Maximum captured OCR stdout per call. |
swiftc once and then executes the cached native helper through Harness's subprocess service.node --check host.mjs
node --test
npm pack --dry-run
For a local install test:
dsh plugin --profile web add ./path/to/dsh-macos-vision-ocr
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。