插件目录 / Developer / dsh-vision-LMstudio
dsh-vision-LMstudio
已验证 · 实测可装 TiankunDai
功能简介
让你能通过deepseek harness调用LM studio加载的本地视觉模型
可用 — 实测通过,早期项目
让你能通过deepseek harness调用LM studio加载的本地视觉模型 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-vision-LMstudio
Local LM Studio vision recognition plugin for DSH (DeepSeek Harness) Web GUI —
recognize, describe, and OCR local images or clipboard screenshots with a local
vision model. All inference happens on your own machine; images never leave it.
本插件为 DSH(DeepSeek Harness)Web GUI 提供本地 LM Studio 视觉识别能力:连接
LM Studio 的 OpenAI 兼容接口(默认 http://127.0.0.1:1234),
调用其视觉模型对本地图片与 Windows 剪贴板图片做识别、描述与 OCR,图片不出本机。
Features
- Agent tools (registered host-side, available in every session)
lmstudio_vision— recognize a local image file by absolute pathlmstudio_clipboard— recognize the current clipboard image (screenshot / copied image), no file path neededlmstudio_models— list loaded models with vision-capability labels
- Settings panel:「设置 → LM Studio 视觉识别」— configure server URL / model / default
prompt / temperature / max tokens, refresh the model list, and one-click recognize a
local image or the clipboard - Automatic model selection — without an explicit
model, picks
gemma-3/4 → other vision models → other non-embedding models in that order
(prefersgoogle/gemma-4-31b-qatfor accuracy; minicpm-class models are not recommended) - Persistent config —
~/.dsh/dsh-lmstudio-vision.json(atomic writes), shared by the
panel and the agent tools
Requirements
- DSH (DeepSeek Harness) with the web profile
- LM Studio with a vision model loaded and the local server started
(Developer → Start Server, default port 1234) - Windows for the clipboard tool (uses Windows PowerShell 5.1
Get-Clipboard -Format Image)
Install
pnpm install
pnpm build
dsh plugin --profile web add link:<path-to-this-repo>/packages/dsh-lmstudio-vision
Then restart DSH (dsh web) and refresh the page. dsh plugin appends the package
to dsh.profile.bundles automatically (the package declares dsh.bundle).
安装后重启 DSH 并刷新页面:设置页出现「LM Studio 视觉识别」面板,三个 agent 工具随宿主
常驻,任何会话都可用。
Configuration
Configurable from the settings panel or by editing ~/.dsh/dsh-lmstudio-vision.json:
{
"baseUrl": "http://127.0.0.1:1234",
"model": "",
"prompt": "请详细描述这张图片的内容。",
"temperature": 0.2,
"maxTokens": 1024
}
Repository layout
packages/dsh-lmstudio-vision/src/index.ts— host half: LM Studio engine, API routes,
agent tools, system-prompt announcementpackages/dsh-lmstudio-vision/src/client/— browser half: the settings panelpackages/dsh-lmstudio-vision/cordis.patch.yml— bundle patch plugin rowshared/tsdown.client.ts— build preset (follows the dsh-web-uiclientBundleconvention)
License
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-vision-LMstudio」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:TiankunDai/dsh-vision-LMstudio Headless(CLI)profile:
dsh plugin --profile headless add github:TiankunDai/dsh-vision-LMstudio 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。