dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
A DeepSeek Harness plugin that lets text-only model routes "see" user-uploaded images. When a user uploads an image in a session whose model does not declare image input, the plugin intercepts it at agent/pre-step, saves the image to <cwd>/.dsh_images/, runs the external vision provider modlens, and replaces the image block with text evidence (summary + OCR + layout + semantics) before the message is persisted. The model request therefore never carries an image, while the model can still reason over the image content.
给纯文本模型路由用的图片桥接插件:用户上传图片时,在 agent/pre-step 拦截,把图片落盘到会话工作目录下的 .dsh_images/,调用 modlens 外部视觉通道识别,再把图片 block 替换为文本证据(summary + OCR 全文 + 版面 + 语义),因此模型请求里永远不会携带图片——纯文本模型也能"看到"图片内容。
Requires a working modlens setup (e.g. the modlens skill's
run.ps1/run.shlauncher, or a modlens CLI on PATH). Vision-capable model routes are never touched — they keep the native image path.
resolveModelInfo().inputModalities; routes that declare image input pass through untouched.agent/pre-step runs before the loop persists decision messages, so neither durable history nor the request ever contains the image block.agent/pre-step(step 1):决策消息在此被持久化进 session,替换发生在持久化之前,历史与请求都不含图片 block。# 1. clone anywhere (an ASCII path avoids Windows CJK-path issues)
git clone https://github.com/wendou-chen/dsh_image-modlens-bridge.git
# e.g. move to C:\Users\admin\.codex\dsh-image-modlens-bridge\
package.json:{
"dependencies": {
"dsh-image-modlens-bridge": "file:C:/Users/admin/.codex/dsh-image-modlens-bridge"
}
}
C:\Users\admin\.dsh\profiles\web), install:pnpm install
cordis.patch.yml:- insert:
- id: image-modlens-bridge
name: 'dsh-image-modlens-bridge'
| Field | Default | Meaning |
|---|---|---|
enabled |
true |
false 整体关闭 |
launcher |
C:\Users\admin\.agents\skills\modlens\scripts\run.ps1 |
modlens 启动器路径(env MODLENS_LAUNCHER 优先) |
saveDirName |
.dsh_images |
保存目录名,位于会话工作目录下 |
modlensTimeoutMs |
180000 |
modlens 超时(毫秒) |
deepseek-v4-flash).<cwd>/.dsh_images/upload-<timestamp>-<id>.<ext>验证:上传后检查 <cwd>/.dsh_images/ 是否出现图片文件;模型回复应引用图片内容(摘要/OCR 文本等),而不是提示"无法查看图片"。
image(视觉模型不会被插件处理);看 DSH 日志是否有插件报错。powershell -ExecutionPolicy Bypass -File <launcher> -i <image>,检查 modlens 配置(modlens config show / doctor)。config.enabled: false 或移除 patch 条目。MIT © 2026 wendou-chen. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。