How ysr666/dsh-vision-router works
DSH Vision Router adds image understanding and pixel-level tools to text-oriented DeepSeek Harness agents. An image turn enters through the Host plugin, is routed to a vision provider, and returns results for continued tool-driven work; local image tools can process pixels without a model. The repository also exposes settings, diagnostics, capability benchmarking, and maintenance features. The graph combines README-documented product flows with relationships visible in sampled source and the SOURCE INDEX; unsampled modules are represented only where the README supports their capability.
Main entry points: index.js Turn Runtime · entry.js Plugin Entry · core-primitives.js Pixel Tools · vision-routing-runtime.js Vision Routing
Components 20
Host Integration
- Plugin Entry
src/entry.js - Turn Runtime
src/index.js - Host Compatibility
src/lib/dsh-contract-compat.js
Vision Runtime
- Vision Routing
src/lib/vision-routing-runtime.js - Provider Transport
src/lib/vision-provider-transport.ts - Vision Resilience
src/lib/vision-resilience.js - Turn Guidance
src/lib/depth-guidance.js
Image Tools
- Pixel Tools
src/lib/core-primitives.js - Screenshot Tool
src/lib/desktop-screenshot-tool.js - OCR and Capture
src/lib/tesseract-exec-compat.js - Vision Artifacts
src/lib/vision-artifact-store.js
Settings and Operations
- Settings UI
src/lib/web/index.js - Remote Settings
src/lib/remote-settings-bridge.js - Diagnostics
src/lib/vision-diagnostics-routes.js - Capability Benchmark
src/lib/vision-capability-benchmark-service.js - Maintenance Routes
src/lib/maintenance-routes.js
Other components
- DSH Agent
- DSH Host
- Vision Provider
- Local Tools
Connections 19
- DSH Agent → DSH Host: sends image turn
README.md - DSH Host → Plugin Entry: loads plugin
src/entry.js - Plugin Entry → Turn Runtime: composes runtime
src/entry.js - Plugin Entry → Host Compatibility: exports compatibility
src/entry.js - Turn Runtime → Vision Routing: routes image turns
- Vision Routing → Vision Provider: sends image request
README.md - Vision Provider → Turn Runtime: returns vision result
README.md - Turn Runtime → Turn Guidance: renders guidance
src/index.js - Turn Runtime → Pixel Tools: downscales images
src/index.js - DSH Agent → Pixel Tools: calls image tools
README.md - Pixel Tools → Local Tools: processes pixels
README.md - DSH Agent → Screenshot Tool: requests screenshot
README.md - DSH Agent → OCR and Capture: requests OCR
README.md - Turn Runtime → Vision Artifacts: stores artifacts
- DSH Host → Settings UI: opens settings
README.md - Settings UI → Remote Settings: loads remote settings
- DSH Host → Diagnostics: requests diagnostics
- Diagnostics → Capability Benchmark: collects capability data
- DSH Host → Maintenance Routes: requests updates
src/lib/maintenance-routes.js