- Inicio
- Plugins
- Visión, voz y multimodal
- dsh-mindseye
dsh-mindseye
kanchengw/dsh-mindseye
Vision plugin for text-only DeepSeek Harness models: native image paste, layered evidence memory and cache, and intent-driven tool selection.
Instalar
dsh plugin --profile web add github:kanchengw/dsh-mindseyeREADME
MindsEye

Let DeepSeek see images natively — model-driven vision tools for DeepSeek Harness
Current version: 0.2.2
MindsEye is a vision plugin for DeepSeek Harness (dsh). Pasted images stay visible in the conversation while DeepSeek keeps reasoning and the vision model does the seeing. The plugin exposes task-specific vision tools that the model selects by intent; each tool maps to a fixed intent and model route, returns structured JSON, and reduces repeated calls through caching and evidence reuse.
Core Experience
- Paste and see: takes over the
deepseek-officialroute so images enter the conversation natively; when takeover is unavailable it automatically falls back to path-based paste, so new images always get through - Model picks the tool, plugin routes the model:
mindseye_read_image,mindseye_ocr,mindseye_ground, andmindseye_colorseach carry a fixed intent; the model chooses by the user's question and the plugin maps the tool to the matching model chain - Generated images appear in the conversation:
mindseye_generate_imagedelegates to a dedicated image generation model and returns the result as a dsh attachment, without auto-saving to the project or running automatic verification - Automatic mounting on image turns: vision tools are registered when an image message arrives; text-only turns keep only one activation entry so tools do not occupy model context permanently
- Batch reads in one call: multiple images are read together, with exponential split fallback on batch 4xx so a failure affects only the failed image
- Old sessions stay clean: image-bearing history remains usable in fallback mode, with image blocks rewritten into attachment markers
- Every call is transparent: provider, model, latency, token usage, and fallback markers are returned for auditability
Screenshots


Implemented Features
Image Input
- Native paste/drag (takeover mode, no duplicate model selector entry)
paste-to-pathfallback: pasted images are converted to path text in text-only model scenariosmindseye_read_imagegeneral vision, supporting local paths, single attachment ids, and batch attachment ids
Tools and Routing
| Tool | Intent | Route | Batch |
|---|---|---|---|
mindseye_read_image | General visual QA | understand | Yes |
mindseye_ocr | Exact text extraction | extract | Yes |
mindseye_ground | Target pixel coordinate location | locate | No |
mindseye_colors | Whole-image palette | understand | Yes |
understand / extract / locatemodel routes are independently configurable and fall back to the general understanding model when unset- Vision tools auto-mount on image turns; text-only turns keep only
mindseye_vision_activateso tools do not permanently consume model context - Structured JSON:
images/evidence/answer/meta;metaincludes real token usage, call attempts, and fallback markers - Exact cache: image sha256 + normalized query + region + baseUrl + model + prompt version; a hit skips the vision model call
Image Generation
mindseye_generate_image(subject, context?): the text model delegates image generation to a dedicated modelrequestis read automatically from the latest user message by the plugin; the model neither provides nor rewrites it.subjectis required and extracted by the model from the conversation;contextis optional and only carries style or constraint background- Generated results are displayed in the conversation as dsh attachments with a
(token_usage=..., widthxheight, size)audit line - Supports OpenAI-compatible
/images/generations;b64_jsonand downloadable URLs are validated before being stored as attachments; nothing is auto-saved to the project path and no vision tool is called back to verify
Providers
- OpenAI-compatible Chat Completions and Responses protocols
- Multi-route fallback chains with automatic failover
- Multi-image batch calls with exponential fallback (batch 4xx retries by halving;
locatedoes not support batch)
Memory
- Image-level hard facts are persisted by sha256, with evidence evicted by capacity LRU (default 1000 entries)
- Soft memory uses BM25 retrieval of historical Q&A injected as context, evicted by capacity (default 1000 entries)
mindseye_memory_put / get / search / diffare exposed as dsh tools; calls are visible in the session and audited
Data Handling and Security
- Native attachments first: image-capable models keep native dsh attachments; MindsEye associates images by attachment id and does not ask the user to choose local files manually
- Automatic temporary path fallback: when the current model is confirmed text-only and
paste-to-pathis enabled, freshly pasted PNG, JPEG, WebP, or GIF files (up to 25 MiB each) are validated, stored in an isolated system temp directory, and returned as a path. Temp files use0600mode - External vision calls: image bytes and question text are sent only to the vision provider's Base URL when a MindsEye tool executes; configure only services you trust
- Credentials and cache: API keys resolve from environment variables, dsh Credentials, or plugin settings and are sent as Bearer auth to the matching provider only. The exact cache lives only in the current dsh process memory (max 500 entries), is never persisted, and clears on process exit
- Execution boundary: the plugin never starts shells, child processes, or executes downloaded code. The normal web paste fallback only reads the temporary image just created by the plugin; tools also accept dsh attachment ids
dsh Web Settings Card
understand / extract / locateroutes can be added as needed; unset routes fall back to the default model- Base URL, API key (masked with eye toggle), model id, protocol (explicit), and common Max Tokens values
- Model takeover is enabled by default: changes take effect after restart, and a failed startup restores the official adapter with path-paste fallback
Installation
npx @deepseek-ai/dsh plugin --profile web add dsh-mindseye
Restart dsh web to paste images natively. "Model takeover" is enabled by default and can be adjusted under Settings → Plugins → MindsEye.
On first use, configure one general vision model (Base URL, API key, model id) in the MindsEye settings card; unconfigured OCR / locate routes fall back to the general model automatically.
Development
pnpm install
pnpm test
pnpm typecheck
pnpm build
Plugins relacionados
modlens
liustack/modlens
dsh-vision-router
ysr666/dsh-vision-router
dsh-vision-toolkit
anionex/dsh-vision-toolkit
picturereader
jing-hy/picturereader