Anionex/dsh-vision-toolkit
[dsh]为纯文本模型设计更强大的视觉工具箱:一行安装使用、粘贴图片直接识别、多张图片问答、截图到前端UI 还原等|DeepSeek Harness-native integration for agent-vision-toolkit: image Q&A, long-screenshot OCR, UI restoration, grounding, pixel diff, Artifacts, and Web UI.
What it solves
Text-only large language models (like the ones inside DeepSeek Harness) cannot see images, which forces users to manually describe screenshots or switch to a separate multimodal model. This plugin removes that gap by giving those text-only agents a working pair of eyes: paste an image directly into the conversation and the agent can answer questions about it, find elements, read long screenshots, crop regions, convert graphics to SVG, rebuild UI pages from a screenshot or sketch, and even operate a GUI by looking at the screen.
How it works
The plugin adds a layer of vision tools plus a Skill (a set of playbooks) to a DeepSeek Harness Profile. When a user pastes an image or asks for a visual task, the text-only model calls one of 10 tools:
- vision_glance — answer "what is happening in this image?"
- vision_ground — return pixel coordinates for a requested object (e.g., "where is the login button?") and optionally a boxed preview
- vision_detect — list numbered elements like buttons and icons with coordinates
- vision_crop — extract a region as PNG or JPEG
- vision_trace — convert a shape into an editable SVG
- vision_pixel_diff — compare an implementation against a reference and output difference percentage, ranked regions, heatmap, and JSON
- vision_long_screenshot_ocr — read an entire long scrolling screenshot and output Markdown
- vision_extract_foreground — remove the background to produce a transparent PNG
- vision_dominant_colors — return a color palette or ranked candidates
- vision_html_screenshot — render a local HTML page at a viewport, or the full page with fullPage=true
A key design choice: instead of asking a vision model for a generic caption, the plugin passes a "focus hint" — the user's question or the agent's stated reason for looking — so the description emphasizes only what matters for the current task. The bundled vision-skills Skill contains playbooks teaching the agent which tool to use, in what order, and how to verify results.
Installation is one command (dsh plugin --profile web add @anionex/dsh-vision-toolkit or the headless/desktop variants). The first start prepares an isolated Python runtime (3.11+ or a bundled standalone Python) and installs dependencies like Pillow, NumPy, and vtracer in the background. The user then configures a vision provider in Settings and can paste images and make requests.
Who it's for
Users of DeepSeek Harness (DSH) who want a multimodal-like interaction: paste a screenshot and ask about it, or complete higher-value tasks such as turning a sketch into a working front-end page, converting a screenshot into HTML, extracting chat messages from a long screenshot, or operating a GUI. The README explicitly targets two audiences: people who want quick image Q&A, and people who need complex visual workflows beyond Q&A.
Highlights
- One-command install into Web, Headless, or Desktop profiles; the plugin manages its own isolated runtime so no manual Python setup is required.
- Pasting an image in DSH Web automatically routes the text-only model to its (Vision Toolkit) variant, keeping workspace paths and thumbnails intact.
- Task-aware descriptions via focus hints — the model reports evidence like "where the error is" or "where the button is" instead of a generic caption.
- Ten composable tools with original-pixel coordinates (x1,y1,x2,y2) so grounding output feeds directly into cropping, tracing, or later automation.
- Bundled vision-skills Skill contains five battle-tested playbooks: long-screenshot OCR, UI rebuild, graphic restoration, sketch-to-code, and GUI operation.
- Transparent routing by default; users can disable it in advanced settings.
Related
- Project
- Project
- Dispatch
- Project
- Project