good-boy4069/dsh-vision-guard0

dsh-vision-guard

Transparent image guard + vision analysis for DeepSeek Harness: text-only models read pasted images without the 400 session deadlock.

AI Analysis

核心用途是为不支持多模态的纯文本模型补充图片读取能力。适合经常需要向 Agent 粘贴截图,且需要限制每日视觉调用额度以防超支的用户。

Package
dsh-vision-guard
Version
0.1.0
License
MIT
Last updated
Aug 15, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:good-boy4069/dsh-vision-guard

Configuration

All fields optional (defaults shown). The vision route must point to a model that accepts image input:

FieldDefaultMeaning
visionProvider / visionModelopencode-go / minimax-m3The vision route. Point it at an image-capable model on your subscription
ocrTimeoutMs45000Per-image OCR timeout
budgetPerDay200Daily OCR cap (runaway-cost guard), state stored under $DSH_HOME
cacheMaxEntries500OCR result cache size cap (LRU eviction)
maxOcrTokens2048Vision call output cap
stateFile~/vision-guard-state.jsonBudget state file (~ = dsh home)
ocrPromptverbatim transcriptionCustom instruction
passthrough[]Raw-image whitelist: [{provider, model}] — only add routes you have tested to accept images

vision_analyze side: the OCR engine is a required per-call argument (engine), chosen by the model per task — local = local tesseract (free, characters only), vision = the configured vision model. There is no localOcr config key.