dsh-vision-router
Paste an image and it just works — eyes for text-only agents on DeepSeek Harness. Free out of the box, no key, no Python, one command.
DeepSeek keeps thinking; the built-in free vision chain and eleven pixel-level tools do the seeing. Image turns behave like ordinary tool-calling turns — grounded, measurable, repeatable.
English · 中文
💬 QQ community group: 1105463028
[!WARNING] 📌 Announcement (v1.4.4)
v1.4.4: Fixes the blank DSH rc.6 plugin settings page by declaring the client services required by settingsScope.
Contents
- Why this exists
- How it compares
- Acknowledgements
- Quick start
- Free vision key channels
- Highlights
- How it works
- Tools
- Configuration
- Install and lifecycle
- Troubleshooting
Why this exists
Most DSH vision plugins bridge images to DeepSeek as text descriptions — lossy, one-shot, and blind to pixels. This plugin keeps the original pixels on the vision model's side and DeepSeek on the reasoning side, and makes looking at an image an ordinary tool call:
- One command install. The package ships its own composition patch (
dsh.bundle.patch):dsh plugin addwires the row, the admission wrapper and the attachment limits automatically — zero manual file edits. Taking over the official DeepSeek route is an optional setting (stealth mode, off by default). - Free by default. Vision tools end with a five-model OVHcloud anonymous fallback: no account, no key, 2 requests/minute per IP per model, roughly 10 RPM in theory across independent buckets. User-provided vision models run first.
- No Python. The whole pipeline — downscale, grounding, crop, pixel diff, palette, OCR, SVG trace, cutout, HTML screenshot — runs on sharp / potrace / tesseract / system Chrome.
- Continuous multi-step image work. An image turn is a text turn that calls tools:
vision_ground→vision_crop→vision_describe→vision_pixel_diff→ fix → screenshot again. The agent keeps iterating until the work is done. - DeepSeek stays the brain. Text turns are untouched in model, cost and context. The vision model is only the eyes, called on demand; answers are cached by image content.
- Transparent to the user. Uploaded images keep rendering as images in the conversation UI; the rewrite that points the model at the vision tools happens only inside the model call, never in the session log.
How it compares
One-line take: most dsh vision plugins turn images into text descriptions for DeepSeek (description bridge — lossy); this plugin hands the image turn straight to a vision model (routing bridge — pixel-faithful), with a built-in keyless free fallback.
| Manual model switching | MCP vision bridge | dsh-vision-router | |
|---|---|---|---|
| Pixel fidelity | ✅ full (when switched) | ❌ text description only | ✅ full, on the image turn |
| Automatic | ❌ | ✅ | ✅ |
| Daily model untouched | ❌ (whole session swapped) | ✅ | ✅ |
| Provider failure recovery | ❌ | ❌ | ✅ fallback chains |
| Reusable structured queries | — | partial | ✅ JSON mode + caching |
| Free out-of-the-box | ❌ | ❌ | ✅ built-in keyless endpoint |
| Fits dsh composition | — | external server | ✅ one plugin row |
Difference from existing dsh community projects (all excellent, each with its own focus; descriptions reflect their READMEs as of 2026-08):
| Project | Approach | What this plugin adds |
|---|---|---|
| dsh-vision-sidecar | Pre-describes images with an external VLM; the description joins the session as a message to DeepSeek; LLM7.io anonymous endpoint by default (OVHcloud listed as a no-key alternative) | Description bridge; this plugin adds raw-image routing, with vision_describe covering descriptions on demand |
| dsh-vision-proxy | Wraps a provider route and transcribes images into text in the request stream | Transcription bridge; this plugin wraps no provider — it rewrites routing through agent/request waterfalls |
| dsh-vision-provider | Registers DeepSeek + Vision combined routes: images are described by the chosen vision model before reaching DeepSeek |
Two-model bridge idea; this plugin adds automatic routing, fallback chains and tools on top |
| modlens | The first dsh vision plugin; reuses local Claude Code/Codex/OpenCode/Pi logins as vision engines | Engine-reuse idea; this plugin ships its own provider chain and depends on no other local CLI |
| dsh-vision-toolkit | Ten intent-aware visual tools (Q&A/OCR/pixel verification/UI restoration), called explicitly on demand | Broader tool set; this plugin adds whole-turn auto-routing and a keyless free fallback |
| dsh-tool-vision | An inspect_image tool plus an agent/pre-step waterfall bridge (pasted images become tool hints before entering the log) |
Similar waterfall bridge; this plugin adds turn routing, fallback chains, caching and the free endpoint |
Acknowledgements
This project borrows ideas from all of the above — especially the keyless free-endpoint exploration (LLM7.io and OVHcloud anonymous tiers) by dsh-vision-sidecar. Thanks to the authors of dsh-vision-proxy, dsh-vision-provider, modlens, dsh-vision-toolkit, and dsh-tool-vision.
Quick start
1. Install the plugin
For normal npm/npx installs, installation is a single command:
npx @deepseek-ai/dsh plugin --profile web add dsh-vision-router
[!NOTE] Third-party
dsh-web-plugin-manager/dshpmv0.4.2+ is also compatible: its quality gate now correctly allows@deepseek-ai/schemasteryas a runtime dependency. The official DSH CLI above remains the recommended install path.
If you run DeepSeek Harness from a source checkout with pnpm, use the workspace script instead — dsh is not necessarily on your shell PATH:
cd deepseek-harness
pnpm dsh plugin --profile web add dsh-vision-router
If you already installed the DSH CLI globally and dsh is on PATH, the shorter dsh ... form works too. After installation, start or reload DSH Web as you normally do.
[!NOTE] If you install the plugin into a Web process that was already running long-term, let that DSH Web process reload once so the plugin bundle itself is discovered. After the plugin is loaded, adding/removing models or changing wrapper scope hot-updates without further DSH restarts.
2. Switch to a “+ Auto Vision” model group in chat
Once loaded, the plugin discovers the model groups enabled under Settings → Models and creates same-name auto-vision entries. For example:
opencode-go ← original model group, unchanged
opencode-go + Auto Vision ← choose this when sending images
[!IMPORTANT] Before sending an image, open the model selector in the lower-right corner of the chat composer and choose a group marked “+ Auto Vision”.
Vision Router deliberately does not modify the original model group. If the conversation still uses the original text-only opencode / DeepSeek route, DSH can reject the image with “the current model does not support images” before Vision Router gets a chance to handle it. That is a model-entry selection issue, not a broken vision backend.
The auto-vision group follows the live DSH model catalog. Adding models or changing wrapper scope does not require a restart.
3. Paste or upload the image
After choosing the “+ Auto Vision” group, paste or upload an image normally. By default the complete vision tool schema is stable from session start, so the agent can immediately use vision_describe, vision_ground, vision_crop, and the rest across multiple steps when needed.
The built-in anonymous OVH vision fallback is already configured, so normal image use needs no signup or API key. The lower-right chat picker selects only the brain/conversation model; vision backends do not belong there. Advanced options live under Settings → Plugins → Plugin config → 视觉路由(自动识图): each vision-backend row may select any callable generative user model already configured under Settings → Models. DSH image-capability metadata is advisory only: undeclared or text-only-labelled models remain selectable and show a warning. At runtime Vision Router always tries the provider's registered DSH adapter first — including WebSocket, RPC and private transports — and falls through on a real failure. The direct compatibility bridge is used only when an http(s) OpenAI Chat Completions endpoint is positively identified. Leaving every user row empty is valid; the OVH chain remains the final fallback. Vision HTTP is an internal transport route, not a model group users should select.
See it in action
Left: an image turn — the user sends a picture, the agent calls vision_describe through the free chain and answers. Right: the finished structured answer.
Free vision key channels
The built-in OVH fallback is anonymous by design, and OVH caps anonymous use at 2 requests/minute per IP per model. If that feels tight, every channel below offers free vision models with much higher quotas — all of them are free to register, and none charges for the free tier. Free policies rotate often; treat this table as an August 2026 snapshot and double-check each provider's console before relying on it.
| Channel | Free vision model(s) | Free quota | CN direct? | Where to get the key |
|---|---|---|---|---|
| OVHcloud AI Endpoints (access key) | Qwen2.5-VL-72B-Instruct — the same endpoint the built-in fallback uses |
400 req/min per project per model (vs 2 anonymous) | ✅ | OVH account → Public Cloud project (attach a payment method; free models are not charged) → AI Endpoints access key |
| Zhipu (bigmodel.cn) | glm-4.6v-flash · glm-4.1v-thinking-flash · glm-4v-flash — three permanently free models; chaining them triples capacity |
uncapped tokens | ✅ | open.bigmodel.cn → API keys |
| DashScope (Aliyun) | qwen3-vl-flash (limited-time free) and the Qwen-VL series |
new users: 1M tokens per model series / 90 days | ✅ | bailian.console.aliyun.com |
| Intern AI (Shanghai AI Lab) | internvl-latest · internvl3.5-latest |
30 RPM, 90M tokens/month | ✅ | chat.intern-ai.org.cn |
| Groq | meta-llama/llama-4-scout-17b-16e-instruct (native multimodal, up to 5 images) |
30 RPM / 14,400 req/day, no card | ❌ proxy | console.groq.com |
| Google AI Studio | gemini-2.5-flash · gemini-2.5-flash-lite |
10–30 RPM / 500–1,500 req/day | ❌ proxy | aistudio.google.com |
| NVIDIA NIM | meta/llama-3.2-11b-vision-instruct · nvidia/nemotron-nano-12b-v2-vl |
40 RPM, no card | ⚠️ | build.nvidia.com |
| OpenCode Zen | mimo-v2.5-free (vision + code) |
30 RPM / 500 req/day | ⚠️ | opencode.ai/zen |
| OpenRouter | google/gemma-4-26b-a4b-it:free · google/gemma-4-31b-it:free |
50 req/day on unpaid accounts | ❌ proxy | openrouter.ai |
Any of these channels can join the vision chain as an httpProviders entry (key in the matching environment variable or ~/.dsh/.credentials.yaml), and the chain tries your entries before the anonymous fallback.
[!NOTE] Free-tier policies change without notice — Cerebras retired its free tier in July 2026 (now a one-time $5 credit), SambaNova's free tier is down to 20 requests/day, and Hugging Face's is $0.10/month. Third-party “
:freerelay” aggregators are deliberately not listed: they rotate quickly, lack SLAs, and some resell quota in ways that violate upstream terms.
Highlights
- Original pixels, real answers. The vision chain reads the image at original resolution (auto-downscaled only to protect latency/quota); the agent's question travels with the image, so answers are about your question, not a generic description.
- Automatic failover with classified errors. Region blocks, ToS filtering, 402 quota, 429 rate limits (with Retry-After backoff), context overflow, network failures — the chain walks providers one by one and only reports after all of them failed, with actionable advice.
- Image memory. Vision answers are cached by attachment content hash; later text turns substitute the recorded description (marked as untrusted evidence), so DeepSeek genuinely remembers earlier images without re-spending vision calls.
- A verifiable pixel loop. Reference →
vision_html_screenshot→vision_pixel_diff(ratio + red heatmap + worst-region ranking) → fix → repeat until the mismatch converges. UI restoration becomes measurable instead of eyeballed. - Stable tool schema. All eleven deep tools are registered from session start by default, avoiding a mid-conversation tool-list expansion that can invalidate long-context KV/prefix caches.
progressiveTools: trueremains an advanced boot-time opt-in; only then doesvision_activatemount the tools on demand. Seedocs/progressive-tools-cache.md. - Selective proxy. Only the configured vision provider hosts go through your local proxy; DeepSeek stays direct.
Pixel loop in practice
Click the image to open the full-resolution original.
The agent rebuilt the UI from the reference image, then verified the final result with vision_pixel_diff: 2.54% final diff (32,939 / 1,296,000 differing pixels, threshold 16/channel).
How it works
The vision model is only the eyes; DeepSeek is always the brain. An image turn is never hijacked by a one-shot vision answer — the agent drives the tools itself and can keep operating on the image across as many steps as the task needs.
Tools
Default progressiveTools: false: all eleven deep tools stay registered from plugin startup, so text and image turns can call them immediately. If you explicitly set progressiveTools: true in the profile/composition cordis.patch.yml, progressive mode is restored: only vision_activate is exposed initially, the full tool set mounts on first use, and the vision-tools skill is registered. This is a boot-time switch; restart DSH after changing it. Built on sharp / potrace / tesseract / system Chrome — no Python:
| Tool | What it does | Artifact |
|---|---|---|
vision_describe |
Image Q&A / multi-image compare / structured-evidence JSON mode (summary + layout regions + entity inventory + verbatim transcription) | — |
vision_ground |
Locate a target → original-pixel box x1/y1/x2/y2 | annotated PNG (optional) |
vision_detect |
Numbered inventory of every element of a kind (buttons/inputs/links…) with original-pixel boxes | annotated PNG with numbered boxes |
vision_crop |
Crop and zoom into a pixel box | PNG |
vision_pixel_diff |
Per-pixel comparison: diff ratio + worst 8×8-grid regions | red heatmap PNG + JSON report |
vision_colors |
Dominant colors (hex + share) | — |
vision_ocr |
Text transcription: local tesseract (chi_sim+eng) first, vision model fallback | — |
vision_trace |
SVG vectorization (potrace posterization; icons/logos) | SVG |
vision_extract_foreground |
Cutout via border flood fill (uniform backgrounds) | transparent PNG |
vision_html_screenshot |
Screenshot a local HTML file (headless system Chrome); fullPage: true captures the whole page and reports pageHeight |
PNG |
vision_long_screenshot_ocr |
Long-screenshot transcription: overlapping chunks, tesseract first / vision model fallback, stitched Markdown | chunk PNGs + Markdown + manifest |
Formats are sniffed from magic bytes, so extensionless content-addressed attachment files work everywhere (no .png renaming needed).
Common workflows
vision_ground image="ref.png" target="the send button"
vision_detect image="page.png" target="input fields"
vision_crop image="ref.png" region="1067,841,1108,881"
vision_describe paths=["ref.png","impl.png"] question="list the differences" json=true
vision_pixel_diff original="ref.png" rebuilt="screenshot.png"
vision_ocr image="screenshot.png"
vision_colors image="ref.png" top=8
vision_trace image="icon.png" steps=4
vision_extract_foreground image="logo.png"
vision_html_screenshot source="page.html" width=1200 height=720
vision_html_screenshot source="page.html" width=1200 height=720 fullPage=true
vision_long_screenshot_ocr image="chat-log.png" chunkHeight=1200 overlap=120
Provider fallback chain
The vision tools try backends in order and surface an error only after all of them fail:
- User vision models: one per settings row, top to bottom; only models under Settings → Models that explicitly declare image input are shown;
- Advanced custom HTTP vision endpoints: legacy/advanced
httpProviders, when present, run after the user models; - Built-in anonymous OVH fallback: always last and never exposed in a model picker. The current quality-first chain is
Qwen3.5-397B-A17B→Qwen2.5-VL-72B-Instruct→Qwen3.6-27B→Mistral-Small-3.2-24B-Instruct-2506→Qwen3.5-9B. OVH anonymous limits are 2 requests/minute per IP per model. The five models have independent buckets, so spreading requests across them is about 10 RPM in theory, subject to OVH's actual rate limiting. No signup or API key is required. Want more headroom? See Free vision key channels — a free OVH access key lifts this same endpoint to 400 requests/minute.
[!IMPORTANT] This “vision chain” is the eyes used by Vision Router: each settings row selects one user vision model, while the lower-right chat picker selects the brain/conversation model. The two are deliberately separate. Text-only DeepSeek/opencode models are filtered out of the vision-backend dropdown, and the internal
Vision HTTPtransport route is no longer exposed to users.
In the legacy
routing: truemode, the whole-turn chain walks onlyprovider + fallbacks—httpProviders(including the free fallback) do not participate there. The defaultrouting: false(tools-first) tries everything.
Failures are classified (region / tos / quota / rate-limit / context / network) and the final error carries advice; 429 responses honor Retry-After once with a capped backoff. Oversized uploads are downscaled before the call (default budget 4 MP) to keep tool calls fast.
Stealth mode
Stealth mode is off by default (explicit opt-in since issue #34): with it off, the official deepseek-official route stays untouched and image turns go through the visible "DeepSeek + 自动识图" wrapper entry in the picker.
With stealth on, the plugin takes over the official deepseek-official route: the model picker looks exactly like stock (same DeepSeek group, same model names), but each entry is the auto-vision wrapper that declares image input and delegates text turns to a rebuilt native DeepSeek adapter (same llm-deepseek settings section and credentials). Old sessions keep working through the hidden deepseek-vision alias. The takeover requires the stock row to be absent — disable it in your profile patch layer (~/.dsh/profiles/<profile>/cordis.patch.yml):
- id: llm-deepseek
name: '@deepseek-ai/dsh-llm-deepseek'
disabled: true
With the stock row present, the plugin falls back to the visible wrapper entry. Conversely, with stealth off but the stock row still disabled, the plugin performs a keep-alive takeover so the DeepSeek models don't vanish (the settings card explains this); to restore the fully official route, flip the disabled above back to false and restart.
Stealth mode only affects the official DeepSeek route. Custom/third-party routes such as opencode are auto-wrapped into “+ Auto Vision” groups by default.
Auto-vision model groups and manual wrappers
autoWrapProviders is on by default. The plugin discovers the provider/model entries currently enabled under Settings → Models and registers a same-name “+ Auto Vision” model group for them. The original group is never changed: choose the auto-vision group for images, or keep using the original group for plain text. DSH llm/adapters-updated events are synced live, so adding/removing models does not require a restart.
wrappedProviders is an optional manual scope control, not a required setup step. Use it only when:
- automatic wrapping is off and you want to pick which provider/models receive an auto-vision entry; or
- automatic wrapping remains on but one provider should expose only selected models in its “+ Auto Vision” group.
The settings card uses provider + model dropdowns; an empty model means every model on that route. Add multiple rows to select multiple models. Changes apply immediately with no restart.
Web settings
The Web profile registers a 视觉路由(自动识图) card under Settings → Plugins → Plugin config. Its top callout spells out the only step most users need: return to chat → lower-right model selector → choose a “+ Auto Vision” model group → send the image. The remaining controls are advanced customization:
- Auto-create “+ Auto Vision” model groups: enabled by default; follows the live model catalog with no restart;
- Manual auto-vision scope (optional): only for disabling auto-wrap or limiting selected models;
- Vision backend chain: the real image-capable models used by
vision_describeand friends; the built-in free Qwen is normally enough, and text-only models should not be placed here; - switches for legacy whole-turn routing, vision tools, image-block rewriting and stealth mode (official DeepSeek route only);
- timeout, wrapper/chain route names, proxy and other advanced parameters;
- every field shows an overridden badge with one-click reset plus discard/save;
- a Test connection button probes the first vision provider and reports latency inline;
- artifact-producing tools render dedicated call cards with result facts and open-file buttons.
PR #8 upgrades the panel with catalog-driven model dropdowns, add/remove fallback rows, and proxy settings.
Configuration
Everything is optional; defaults work out of the box. Edit via the Web card or a profile patch:
| Field | Default | Meaning |
|---|---|---|
provider / model |
vision-http / ovh/Qwen2.5-VL-72B-Instruct |
shorthand vision backend route (adapter-backed provider + model that genuinely accepts images) |
fallbacks |
[] |
backup image models for the shorthand vision provider |
providers |
built-in free vision-http pair |
multi-provider vision backend chain { provider, model, fallbacks[] }, tried in order; do not put text-only models here |
httpProviders |
built-in OVH entry | direct OpenAI-compatible endpoints { name, baseURL, model, apiKeyEnv, maxTokens } |
autoWrapProviders |
true |
discover enabled provider/models and live-sync same-name “+ Auto Vision” groups; original groups stay unchanged |
wrappedProviders |
[{ provider: 'deepseek-official', models: [] }] |
optional manual wrapper scope { provider, models[] }, used after disabling auto-wrap or to restrict one provider to selected models; changes apply live, no restart |
routing |
false |
legacy whole-turn chain routing (one-shot answer). false = tools-first flow (recommended) |
reverseRouting |
true |
with routing: true, route text turns back to textProvider |
wrapperRoute / chainRoute |
deepseek-vision / vision-chain |
admission wrapper route name / fallback chain route name (empty disables) |
stealth |
false |
take over the official deepseek-official route (official row only; custom routes are auto-wrapped by default) |
textProvider |
deepseek-official / deepseek-v4-pro |
the model that reasons (your daily model) |
tool / progressiveTools / autoActivateOnImage |
true / false / true |
vision tools on / progressive mounting (off by default for a stable tool schema) / image-turn auto-mount when progressive mode is enabled; progressiveTools is boot-time config |
rewriteImages |
true |
rewrite image blocks in the model input (cached description or tool-hint marker); the UI log keeps images |
downscale / downscaleMaxPixels |
true / 4000000 |
pre-call downscale and its pixel budget (latency guard) |
cache / cacheTtlSeconds / cacheMaxEntries |
true / 3600 / 200 |
vision answer cache |
timeoutMs |
120000 |
per vision call deadline |
artifactsDir |
.dsh-vision-router/artifacts |
artifact directory (relative to the session workspace) |
proxy / proxyHosts |
'' / openrouter hosts |
optional proxy for vision provider hosts only |
catalogCorrections |
true |
built-in catalog-routing corrections: when the installed pi-ai catalog routes a known model to the wrong wire protocol (e.g. opencode-go/qwen3.6-plus to OpenAI chat completions while OpenCode Go only serves it on /v1/messages), the plugin answers that backend directly over the corrected protocol. Each correction disarms itself once the catalog is fixed upstream |
Requirements
- DeepSeek Harness Web profile. Normal installs can use
npx @deepseek-ai/dsh ...; source checkouts usepnpm dsh .... A baredsh ...command only works when the CLI is already on your shellPATH. - Node ≥ 22 (host side).
- No API key for the default free chain; a credential reference (
apiKeyEnv) only for paidhttpProviders. - Chrome / Chromium / Edge only for
vision_html_screenshot; every other tool works without a browser. - Tesseract is optional:
vision_ocrfalls back to the vision model when the local engine is absent.
Install and lifecycle
Install
Normal npm/npx install — one command:
npx @deepseek-ai/dsh plugin --profile web add dsh-vision-router
From a DeepSeek Harness source checkout:
pnpm dsh plugin --profile web add dsh-vision-router
Optional verification:
npx @deepseek-ai/dsh --profile web --dump-config | grep vision-router
# source checkout: pnpm dsh --profile web --dump-config | grep vision-router
When first adding the plugin to an already long-lived Web profile, let that Web process reload the plugin bundle; the host discovers the browser bundle through dsh.client at startup. After the plugin is loaded, model-catalog and wrapper-scope changes hot-update and do not require a restart.
Oh-DSH Desktop
Oh-DSH Desktop ships its own packaged DSH runtime and its own home layout: the desktop surface runs the desktop profile under ~/.ohdsh and does not load ordinary ~/.dsh profiles. The --profile web commands above therefore install into the wrong environment on that product.
Install into the desktop profile by pointing DSH_HOME at the Oh-DSH home:
DSH_HOME=~/.ohdsh npx @deepseek-ai/dsh plugin --profile desktop add dsh-vision-router
(Windows PowerShell: run $env:DSH_HOME = "$env:USERPROFILE\.ohdsh" first, then the same command.)
[!WARNING] Oh-DSH Desktop ≤ 0.1.5 bundles DSH
0.1.0-rc.5.dsh-vision-routerv1.4.1 and earlier crash that runtime at startup (configurable provider "deepseek-official" is already declared, surfacing asDSH runtime exited before readiness). Install v1.4.2+.
If a broken install already keeps the Desktop from starting, open ~/.ohdsh/profiles/desktop/package.json, remove the dsh-vision-router entry from both dependencies and dsh.profile.bundles, save, and restart the Desktop.
Oh-DSH Desktop's built-in plugin marketplace (search → prepare → isolated preview → apply, with a previous snapshot for recovery) also works once the community catalog lists this plugin; do not mix marketplace installs with the direct command above. The bundled @oh-dsh/vision (view_image) coexists with this plugin — the tool names do not collide.
Disable / re-enable
- id: vision-router
disabled: true
Set it back to false to re-enable. Unloading removes the wrapper routes, tools, skill and settings card; cached artifact files remain.
Upgrade
# normal npm/npx install — install the version you want explicitly; a bare
# `update` is silently held back for releases younger than 24h (pnpm v11)
npx @deepseek-ai/dsh plugin --profile web add dsh-vision-router@<version>
# DeepSeek Harness source checkout
pnpm dsh plugin --profile web add dsh-vision-router@<version>
Settings live in the profile's settings provider and survive upgrades. The settings card's one-click update installs the registry-confirmed version explicitly and verifies the installed manifest afterwards — it never reports success on a package-manager exit code alone.
A fresh release does not take effect (
downloaded 0/added 0): pnpm v11 holds versions younger than 24h back; install the target version explicitly as above (pnpm auto-exempts it), ornpx dsh-vision-router repairfixes the stale version-pinned profile exemption so updates take effect immediately.
Upgrading from a pre-bundle-patch install (v0.x): the package now mounts itself through its own bundle patch, so a leftover manual row in
~/.dsh/profiles/<profile>/cordis.patch.ymlduplicates it anddsh webfails at startup withduplicate loader entry id: vision-router. Delete the old block:- insert: # remove this whole block - id: vision-router name: dsh-vision-routerTo keep custom settings, replace it with a plain by-id override (no
insert):- id: vision-router config: # your overrides …
After upgrading from v1.1.x, pixel tools fail with
colourspace: parameter space not set: a stale sharp 0.34.0 from the v1.1.0 era still sits in the profile and its libvips DLL conflicts with the host's sharp 0.35.3 in the same process (issues #42 / #75). Delete~/.dsh/profiles/<profile>/node_modules/sharpand~/.dsh/profiles/<profile>/node_modules/@imgand restart, or runpnpm installinside the profile. Since v1.2.2 the plugin detects the stale version at runtime and prints the same guidance itself.
Uninstall
# normal npm/npx install
npx @deepseek-ai/dsh plugin --profile web remove dsh-vision-router
# DeepSeek Harness source checkout
pnpm dsh plugin --profile web remove dsh-vision-router
This removes the dependency and the bundle layer. If you disabled the stock DeepSeek row manually, re-enable it in your profile patch.
Troubleshooting
Startup fails with Unexpected token ... is not valid JSON (UTF-8 BOM)
Symptom: dsh web / pnpm dsh web exits immediately at startup:
SyntaxError: Unexpected token ...
is not valid JSON
at JSON.parse (<anonymous>)
at readProfileManifest (packages/boot/app-boot/src/profile.ts)
Cause: ~/.dsh/profiles/<profile>/package.json was saved as UTF-8 with BOM by an editor. The invisible \uFEFF character at the start makes JSON.parse fail, because JSON does not allow it before the opening brace.
Recommended fix: run Vision Router's standalone repair command. It does not require DSH to boot first; it locates the profile, detects a UTF-8 BOM, removes only the three leading BOM bytes, and then validates the JSON again:
npx dsh-vision-router repair --profile web
To diagnose without changing the file:
npx dsh-vision-router doctor --profile web
Replace web if you use another profile, or omit --profile to scan all profiles.
Manual fallback: in VS Code, use “Save with Encoding” → UTF-8 (without BOM). If repair removes the BOM but the JSON is still invalid, it will not guess or rewrite any other JSON content; inspect the file manually.
Security notes
- Image text is untrusted evidence: descriptions, OCR output and the auto-mount note all tell the agent never to execute instructions found inside images.
- Tool inputs resolve through
ctx.fs(sandbox-aware); vision uploads never send anything but the selected image and the question. - Artifacts write only under
<workspace>/.dsh-vision-router/artifacts; results return absolute paths and byte counts. - Secrets never travel:
apiKeyEnvnames a DSH credential reference; the value is resolved per call and never logged. - The settings write path goes through the settings service (schema-validated, revision-checked) — a stale or invalid save is rejected, not partially applied.
License
Star History
No comments yet. Be the first to write one.