deepseek-harness 原生插件
rison114514/dsh-image-understanding · 技能
deepseek-harness 原生插件:让纯文本模型(如 DeepSeek)经 agent/pre-step 劫持 + resolveModelInfo 包装自动识别上传图片(qwen-vl)
★ 2GitHub 星标
0分支
2026-08-25最近更新
JavaScript开发语言
—许可证
主要功能
- 包装 ctx.llm.resolveModelInfo,让 deepseek 系纯文本模型"声称"支持 image,骗过 Gate 1
- 不再弹出"当前模型不支持图片"
- 一句话核心差别旧版是"在 WorkBuddy 外部挂一个钩子进程去拦截消息",新版是"在 deepseek-harness 内部作为原生插件、从消息序列化之前就接管图片"——更内聚、无外部进程依赖、不依赖解析 stdin 的隐式字段。
- 在 agent/pre-step seam(serialize 之前)把 ImageBlock 经 attachments.readImage() 取字节 → 百炼 qwen-vl 识别 → 替换为 【图片识别】… 文本块,DeepSeek 全程只见纯文本(Gate 2)
- 仅模拟 deepseek 系纯文本模型
使用条件
- 一个阿里云百炼 API Key(OpenAI 兼容模式,申请)
- 仅对 deepseek 系纯文本模型自动生效
安装命令
dsh plugin --profile web add github:rison114514/dsh-image-understanding