dsh-minimal-vision
Manifest valid★ 6DSH Minimal Mode Vision Assistance: preserve the clean first-turn context behind the gray-test DeepSeek experience while adding on-demand visual analysis through hidden context and on-demand Bash workflows
dsh-minimal-vision
保持极简模式的上下文边界,同时获得按需视觉能力
中文 · English
🎬 介绍视频:[开源] DSH 极简模式视觉插件 👀 轻量化+干净
该视觉插件不是新的聊天模型,也不是第三个常驻工具。它只在需要时,通过隐藏上下文和 Bash 进入 Agent 工作流。
为什么基于极简模式?
极简模式的优势不只是工具少,更重要的是首轮请求拥有干净、稳定的 system prompt 和工具面。测试中观察到要触发 DS 的灰测行为水平依赖这个起点;额外 system prompt、聊天工具或视觉模型注册都可能改变它。
本插件不改写极简模式的 system prompt,也不注册新的聊天模型。视觉说明、图片路径和文档路径作为一条默认折叠的 context 与用户消息一起进入,原有两个工具保持不变,在尽量保留极简模式行为的同时提供识图能力。
| 设计约束 | 实现方式 |
|---|---|
| 保持原始工具面 | 继续只向模型暴露 persistent-bash 和 str_replace_editor |
| 避免污染 system prompt | 用折叠 context 提供附件路径和调用说明 |
| 视觉按需触发 | Agent 判断需要视觉证据时,通过 Bash 调用 dsh-vision |
| 分离文档处理 | PDF、Word、PPT 的读取、导出、裁剪、拼图和编辑仍由 Agent 完成 |
🧭 工作流程
- 用户在
vision-assist模式中拖入图片或文档。 - 图片由
sharp自动纠正方向、铺平透明背景,并将长边限制为 1600 px;PDF、DOC、DOCX、PPT、PPTX 原样保存。 - 插件把本地附件路径放入隐藏 context,用户消息气泡保持干净。
- Agent 自行判断如何用 Bash 读取或导出文档,并在需要视觉证据时调用视觉模型。
支持 PNG、JPEG、WebP、GIF、PDF、DOC、DOCX、PPT 和 PPTX;一次最多处理 4 张图片。“测试连接”只发送最小纯文本请求,不上传附件。Vision 配置独立存在,不会出现在聊天模型列表。
附件在发送时写入 $DSH_HOME/cache/dsh-tool-vision/ 本地缓存,隐藏 context 只包含本地路径。文档本身不会直接发送到视觉接口;只有 Agent 调用 dsh-vision 时指定的图片才会发送给已配置的视觉服务。
📦 安装
⚠️ 兼容性提示:当前版本暂未适配原生 Windows PowerShell,仅支持 Bash 环境;已在 Ubuntu 和 WSL2 下通过测试。Windows 用户请暂时在 WSL2 内安装并运行 DSH 与本插件,原生 Windows PowerShell 支持即将推出。
git clone https://github.com/Flora233333/dsh-minimal-vision.git
cd dsh-minimal-vision
npm install
dsh plugin --profile web add .
dsh web
启动后选择“视觉辅助模式”,并在“设置 -> Vision”中完成配置。
配置
| 字段 | 说明 |
|---|---|
| API protocol | OpenAI Completions 或 Gemini |
| Base URL | 视觉模型服务商提供的接口地址 |
| Model | 视觉模型 ID |
| API Key | 由 DSH 凭据服务保存为 VISION_API_KEY |
插件没有写死服务商地址。CLI 每次读取 $DSH_HOME/settings.yaml 和 $DSH_HOME/.credentials.yaml;环境变量 VISION_API_KEY 优先级更高。
手动调用
"${DSH_HOME:-$HOME/.dsh}/bin/dsh-vision" \
analyze --task custom --instructions "描述图中可见内容" -- /path/to/image.png
内置任务:custom、slide_review、figure_semantics、caption_grounding、flowchart_extract。PPT/PPTX/PDF 需要先由 Agent 导出为图片。
开发
npm install
npm run check
npm test
请勿提交 node_modules/、.playwright-cli/、.env 或任何 DSH 凭据文件。
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
| 0.1.1 | — | — |
| 0.3.1 | — | — |
| 0.3.2 | — | — |
| 0.3.3 | — | — |
| 0.3.4 | — | — |
| 0.3.5 | — | — |
| 0.3.6 | — | — |
| 0.3.7 | — | — |
| 0.3.8 | — | — |
| 0.3.9 | — | — |
| 0.3.10 | — | — |
| 0.5.0 | — | — |
| 0.6.0 | — | — |
| 0.6.1 | — | — |
| 0.6.2 | — | — |
| 0.6.3 | — | — |
| 0.6.4 | — | — |
| 0.7.0 | — | — |
| 0.7.1 | — | — |
Comments
Loading…
Similar plugins
by Anionex
[dsh]为纯文本模型设计更强大的视觉工具箱:一行安装使用、粘贴图片直接识别、多张图片问答、截图到前端UI 还原等|DeepSeek Harness-native integration for agent-vision-toolkit: image Q&A, long-screenshot OCR, UI restoration, grounding, pixel diff, Artifacts
★ 920
↓ 6k/wk
MIT
TypeScript
Oct 27, 2026
dsh plugin --profile web add @anionex/dsh-vision-toolkitby ysr666
Eyes for text-only DeepSeek Harness agents: built-in free vision chain (no key) + pixel-level vision tools (Q&A, grounding, crop, pixel diff, colors, OCR, SVG trace, cutout, screenshots). One-command
★ 1.2k
↓ 16.8k/wk
MIT
JavaScript
Nov 1, 2026
dsh plugin --profile web add dsh-vision-routerby zdt3476
Minimal theme for dsh that removes shadows, glass blur, and brand tinting while tightening radii, plus UI extras: sidebar archive tabs with type-to-filter, model and reasoning-effort controls under th
★ 1
MIT
TypeScript
Oct 29, 2026
dsh plugin --profile web add dsh-simplify-themeby FuzzySoul
为DSH(DeepSeek Harness)量身打造的视觉插件,现已支持agent调用图片显示/Vision plugin for DSH(DeepSeek Harness),support Proactive Image Display.
★ 8
MIT
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-free-visionby 123twtd
DeepSeek Harness (dsh) 模型视觉开关插件:为自定义模型声明图像输入能力(写入 llm-pi-ai 配置),适配 0.1.x
★ 0
JavaScript
Sep 3, 2026
dsh plugin --profile web add dsh-vision-toggleby baifagg
DeepSeek Harness (dsh) Web GUI plugin: highlight running sessions and pin busy workspaces to the top of the sidebar. Theme-adaptive, zero-config.
★ 1
MIT
JavaScript
Oct 14, 2026
dsh plugin --profile web add dsh-plugin-busy-workspace