DeepSeek Harness plugin

dsh-minimal-vision

Lightweight vision assist preset and CLI for DeepSeek Harness.

Jump to install

Source facts

Repository
Flora233333/dsh-minimal-vision
Latest update
Aug 18, 2026
Category
Vision & Multimodal
GitHub stars
6
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/Flora233333/dsh-minimal-vision
Plugin: dsh-minimal-vision
Author: Flora233333

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

<h1 align="center">dsh-minimal-vision</h1>

<p align="center"><strong>保持极简模式的上下文边界,同时获得按需视觉能力</strong></p>

<p align="center"> <strong>中文</strong> · <a href="./README.en.md">English</a> </p>

<p align="center"> 🎬 <strong>介绍视频:</strong><a href="https://www.bilibili.com/video/BV1odbi6rE69"><strong>[开源] DSH 极简模式视觉插件 👀 轻量化+干净</strong></a> </p>

<p align="center"> <img src="./docs/assets/visual-in-minimal-mode.png" alt="先看,再答:极简模式视觉辅助" width="820"> </p>

> 该视觉插件不是新的聊天模型,也不是第三个常驻工具。它只在需要时,通过隐藏上下文和 Bash 进入 Agent 工作流。

为什么基于极简模式?

极简模式的优势不只是工具少,更重要的是首轮请求拥有干净、稳定的 system prompt 和工具面。测试中观察到要触发 DS 的灰测行为水平依赖这个起点;额外 system prompt、聊天工具或视觉模型注册都可能改变它。

本插件不改写极简模式的 system prompt,也不注册新的聊天模型。视觉说明、图片路径和文档路径作为一条默认折叠的 context 与用户消息一起进入,原有两个工具保持不变,在尽量保留极简模式行为的同时提供识图能力。

设计约束实现方式
保持原始工具面继续只向模型暴露 <code>persistent-bash</code> 和 <code>str_replace_editor</code>
避免污染 system prompt用折叠 context 提供附件路径和调用说明
视觉按需触发Agent 判断需要视觉证据时,通过 Bash 调用 <code>dsh-vision</code>
分离文档处理PDF、Word、PPT 的读取、导出、裁剪、拼图和编辑仍由 Agent 完成

<p align="center"> <img src="./docs/assets/clean-context-workflow.png" alt="极简、全开:视觉能力按需进入工作流" width="760"> </p>

🧭 工作流程

1. 用户在 <code>vision-assist</code> 模式中拖入图片或文档。 2. 图片由 <code>sharp</code> 自动纠正方向、铺平透明背景,并将长边限制为 1600 px;PDF、DOC、DOCX、PPT、PPTX 原样保存。 3. 插件把本地附件路径放入隐藏 context,用户消息气泡保持干净。 4. Agent 自行判断如何用 Bash 读取或导出文档,并在需要视觉证据时调用视觉模型。

支持 PNG、JPEG、WebP、GIF、PDF、DOC、DOCX、PPT 和 PPTX;一次最多处理 4 张图片。“测试连接”只发送最小纯文本请求,不上传附件。Vision 配置独立存在,不会出现在聊天模型列表。

附件在发送时写入 <code>$DSH_HOME/cache/dsh-tool-vision/</code> 本地缓存,隐藏 context 只包含本地路径。文档本身不会直接发送到视觉接口;只有 Agent 调用 <code>dsh-vision</code> 时指定的图片才会发送给已配置的视觉服务。

📦 安装

> ⚠️ 兼容性提示:当前版本暂未适配原生 Windows PowerShell,仅支持 Bash 环境;已在 Ubuntu 和 WSL2 下通过测试。Windows 用户请暂时在 WSL2 内安装并运行 DSH 与本插件,原生 Windows PowerShell 支持即将推出。

~~~bash 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 protocolOpenAI Completions 或 Gemini
Base URL视觉模型服务商提供的接口地址
Model视觉模型 ID
API Key由 DSH 凭据服务保存为 <code>VISION_API_KEY</code>

插件没有写死服务商地址。CLI 每次读取 <code>$DSH_HOME/settings.yaml</code> 和 <code>$DSH_HOME/.credentials.yaml</code>;环境变量 <code>VISION_API_KEY</code> 优先级更高。

手动调用

~~~bash "${DSH_HOME:-$HOME/.dsh}/bin/dsh-vision" \ analyze --task custom --instructions "描述图中可见内容" -- /path/to/image.png ~~~

内置任务:<code>custom</code>、<code>slide_review</code>、<code>figure_semantics</code>、<code>caption_grounding</code>、<code>flowchart_extract</code>。PPT/PPTX/PDF 需要先由 Agent 导出为图片。

开发

~~~bash npm install npm run check npm test ~~~

请勿提交 <code>node_modules/</code>、<code>.playwright-cli/</code>、<code>.env</code> 或任何 DSH 凭据文件。