Flora233333/dsh-minimal-vision 预览 preview

Flora233333/dsh-minimal-vision

DSH极简模式视觉辅助:在保持灰测DeepSeek体验所需的首轮干净上下文的同时,通过隐藏上下文和按需Bash工作流提供视觉分析。

Project Overview项目介绍

dsh-minimal-vision is a native vision plugin built exclusively for DeepSeek Harness (DSH). It adds on-demand visual language model capability to DSH’s minimal mode without changing the mode’s original clean system prompt or tool set. Unlike other vision plugins, it does not register a new chat model or alter core DSH behavior, instead inserting visual file paths and instructions as collapsed context alongside the user’s message. It supports all common image formats (PNG, JPEG, WebP, GIF) as well as PDF, DOC, DOCX, PPT, and PPTX, and can process up to 4 images per user request.

To use the plugin, after installation and startup, you select the “vision-assist” mode in DSH and drag and drop your images or documents into the chat window. The plugin automatically preprocesses images: it corrects orientation, flattens transparent backgrounds, and resizes the longest edge to 1600 pixels. All attachments are cached locally in $DSH_HOME/cache/dsh-tool-vision/, and only the local path is added to the hidden context, keeping the user’s message bubble clean. The DSH Agent will decide on its own when to call the dsh-vision script via Bash to analyze the requested image. This plugin is for DSH users who want to retain the clean behavior of minimal mode while adding vision capability.

The plugin is released under the open source MIT license. It currently does not support native Windows PowerShell, and only works in Bash environments; it has been fully tested on Ubuntu and WSL2, so native Windows users must run it inside WSL2 for now. To install, you clone the repository, run npm install to install dependencies, then add the plugin to your DSH profile via the dsh plugin --profile web add . command, then start DSH with dsh web. After first run, you configure your vision API settings in DSH’s settings menu, supporting both OpenAI Completions and Gemini API protocols.

这是专为DeepSeek Harness(DSH)开发的原生视觉插件,旨在为DSH的极简模式添加按需视觉识别能力,同时不改变极简模式原本干净的上下文边界和工具集。它不会注册新的聊天模型,也不会修改原有的系统提示词,而是将视觉相关信息作为默认折叠的上下文加入,仅在需要时通过Bash调用视觉模型。它支持PNG、JPEG、WebP、GIF等常见图片格式以及PDF、Word、PPT等办公文档,单次最多可处理4张图片。

用户使用时,只需在启动DSH后选择“视觉辅助模式”,拖入需要处理的图片或文档即可。插件会自动预处理图片,纠正方向、压缩长边至1600像素、平铺透明背景,再将附件存入本地缓存后把路径放入隐藏上下文,不会污染用户的消息气泡。DSH Agent会自行判断是否需要调用视觉能力读取图片内容,适合需要保持DSH极简模式纯净性同时获得识图能力的用户。

本插件采用MIT许可证开源,目前暂未适配原生Windows PowerShell,仅支持Bash环境,已在Ubuntu和WSL2下通过测试,原生Windows用户需要在WSL2中运行。安装需先克隆仓库,执行npm安装依赖,再通过DSH CLI添加本插件,启动后在设置中配置支持OpenAI或Gemini协议的视觉API信息。附件缓存存在DSH主目录的缓存文件夹,仅调用时才上传指定图片到API。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Flora233333/dsh-minimal-vision

把 Flora233333/dsh-minimal-vision 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

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 完成

极简、全开:视觉能力按需进入工作流

🧭 工作流程

  1. 用户在 vision-assist 模式中拖入图片或文档。
  2. 图片由 sharp 自动纠正方向、铺平透明背景,并将长边限制为 1600 px;PDF、DOC、DOCX、PPT、PPTX 原样保存。
  3. 插件把本地附件路径放入隐藏 context,用户消息气泡保持干净。
  4. 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 凭据文件。

← 上一个 Prev dsh-doctor 下一个 Next dsh-session-fork →