
Security News
vlt 1.5.0 Adds Agent Skills Management
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.
A visual working memory for DeepSeek Harness agents: snapshot, map (numbered region registry), read (Q&A + verbatim text extraction), and zoom (targeted region inspection) backed by an OpenAI-compatible multimodal endpoint, with a visual-memory skill for
dsh-vision 是 DeepSeek Harness 的视觉辅助插件:接入任意 OpenAI 兼容的多模态模型(如 Qwen-VL、GLM-4V),为无图像理解能力的主模型(如 DeepSeek)提供视觉能力。
核心机制是视觉工作记忆(Visual Working Memory):图片先被视觉模型转换为编号元素清单并缓存,主模型以编号引用元素、按需定向放大检查,全程不接触坐标细节。用户上传图片或提供文件路径,插件负责将图像转换为主模型可推理的结构化信息。
element 7 精确引用,替代模糊描述vision_zoom ref "7" 直接解析坐标,无需重复标注map/read/zoom 任务可分别指定模型(如转写使用免费模型,标注使用高性能模型),兼顾质量与成本dsh plugin --profile <profile> add dsh-vision
# 或本地目录(开发)
dsh plugin --profile <profile> add link:/path/to/dsh-vision
准备一个 OpenAI 兼容的多模态端点(DeepSeek 官方 API 不支持图像输入,需独立视觉模型):
$env:VISION_API_KEY = "sk-..."
$env:VISION_BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1" # 阿里云百炼
$env:VISION_MODEL = "qwen-vl-max-latest"
重启 dsh(dsh web 或 dsh --profile cc-tui),在对话中上传图片或提供文件路径,自然提问即可:
看看这张图里有什么 [附件: 报错截图.png]
登录按钮是可用还是置灰的? [附件: 同一张截图]
把这张长截图里的聊天记录逐字提取出来
这两张设计稿有什么区别 [附件 x2]
标注、定位、放大检查等中间步骤由插件工具自动完成,无需显式指令。
用户提供的图片
│
▼
┌────────────────┐ ┌───────────────────────────────────────────┐
│ 元素标注 │ │ 视觉工作记忆 │
│ vision_map │───►│ "7 号元素" = [x1:812, y1:341, x2:902, …] │
└────────────────┘ └──────────────┬────────────────────────────┘
│ 按 ID 解析
▼
┌────────────────────┐
│ 区域检查 │
│ vision_zoom │
└────────────────────┘
裁剪区域单独上传,读取小字与状态
┌────────────────┐
│ 图像阅读 │ 整图问答 / 逐字转写(长图自动分片合并)
│ vision_read │
└────────────────┘
vision_map):视觉模型识别图像中的可交互与信息性元素,插件按阅读顺序分配连续 ID,存入视觉工作记忆vision_zoom):目标区域本地裁剪(可选放大)后单独上传,在小区域内达到原始分辨率识别效果vision_read):整图问答与逐字文字提取;超长图片自动分片,逐条转写后按精确行匹配合并| 工具 | 主要参数 | 说明 |
|---|---|---|
vision_map | image*, focus, region, maxItems | 生成编号元素清单并写入视觉工作记忆;focus 按种类过滤(如 "buttons"),region 限定标注范围(坐标映射回原图) |
vision_read | images*, mode* (ask/transcribe), question | ask 模式回答针对性问题(多图单次调用对比);transcribe 模式逐字提取全部可见文本,长图自动分片合并 |
vision_zoom | image*, question*, ref/region(二选一), scale | 定向检查单个元素;ref 引用标注结果(如 "7" 或 "7@imageId"),region 指定原始像素盒;scale 2-8 倍最近邻放大 |
* 为必填参数。
随包注册的 visual-memory 技能提供工作流指导:标注优先、按编号引用、充分性规则(信息不足时要求定向检查而非推测)、禁止编造视觉细节。
| 变量 | 必填 | 说明 |
|---|---|---|
VISION_API_KEY | ✅ | 视觉模型 API Key |
VISION_BASE_URL | ✅ | OpenAI 兼容端点(百炼、智谱、SiliconFlow、OpenRouter 等) |
VISION_MODEL | ✅ | 主视觉模型 |
VISION_MODEL_MAP | vision_map 任务专用模型(空则使用主模型) | |
VISION_MODEL_READ | vision_read 任务专用模型 | |
VISION_MODEL_ZOOM | vision_zoom 任务专用模型 | |
VISION_LANG | 视觉输出语言:zh / en(默认 zh) |
编辑 ~/.dsh/profiles/<profile>/cordis.patch.yml:
- id: dsh-vision
config:
apiKey: 'sk-...'
baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1'
model: 'qwen-vl-max-latest'
lang: zh
timeoutMs: 180000 # 单次请求超时
maxEdge: 2048 # 上传长边像素上限,超出自动均值池降采样
修改后重启生效。配置缺失时工具返回明确错误提示,不会静默失败。
INSPECT 提示),而非给出未经证实的答案;技能同时约束主模型不得引用未经工具确认的视觉细节max_tokens(避免截断),grounding 与转写任务使用 temperature 0,响应做宽容解析(围栏代码、键别名、正则回退)与后处理(边界裁剪、IoU 去重、阅读顺序排序)设计决策基于已发表研究:编号标注(Set-of-Mark)、由粗到细检索(V*/SEAL)、声明验证(Woodpecker)、长图分片(Monkey / LLaVA-UHD)、归一化坐标(OS-Atlas)。论文列表与工程实践来源见 REFERENCES.md。本插件为独立的 TypeScript 实现,未复用任何现有项目的代码或提示词。非佬,拿ai做的玩具,凑个热闹。
FAQs
A visual working memory for DeepSeek Harness agents: snapshot, map (numbered region registry), read (Q&A + verbatim text extraction), and zoom (targeted region inspection) backed by an OpenAI-compatible multimodal endpoint, with a visual-memory skill for
The npm package dsh-vision receives a total of 104 weekly downloads. As such, dsh-vision popularity was classified as not popular.
We found that dsh-vision demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.

Security News
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.