rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
co-Elly/dsh-plugin-vision
๐๏ธ Give your DeepSeek Harness the gift of sight โ enables pure-text LLMs to analyze images via Zhipu's free GLM-4V-Flash vision model
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:co-Elly/dsh-plugin-vision
่ฏฅๅฝไปคๆๅไปๅบๅฝๅ้ป่ฎคๅๆฏ๏ผๅฐๆ ็ปๅฎๅฝๅ commit ็ๅฎๆด้ช่ฏ็ปๆใ
PROJECT README
dsh-plugin-vision is a plugin for DeepSeek Harness that enables pure-text LLMs to analyze images.
When your underlying language model doesn't support native image input (e.g., DeepSeek-V3 text-only), this plugin bridges the gap by calling Zhipu AI's GLM-4V-Flash โ a free vision model โ to analyze images and return text descriptions.
User pastes image โ Agent calls vision_analyze โ GLM-4V-Flash analyzes โ Text description returned
cordis.ymlgit clone https://github.com/co-Elly/dsh-plugin-vision.git
cd dsh-plugin-vision
pnpm install
pnpm build
Then in your DSH project's cordis.yml:
plugins:
- name: /path/to/dsh-plugin-vision/dist/cordis.js
config:
apiKey: "your-zhipu-api-key"
pnpm add dsh-plugin-vision
glm-4v-flash model is free โ no payment neededexport ZHIPU_API_KEY="your-api-key"
plugins:
- name: dsh-plugin-vision/cordis
config:
apiKey: "your-api-key" # or use $ZHIPU_API_KEY
baseUrl: "https://api.z.ai/api/paas/v4/chat/completions" # default
model: "glm-4v-flash" # default
Once registered, the agent automatically gets the vision_analyze tool:
vision_analyze({
image_path: "/path/to/screenshot.png",
question: "What is shown in this chart?"
})
| Parameter | Type | Required | Description |
|---|---|---|---|
image_path |
string | โ | Image file path or HTTP(S) URL |
question |
string | โ | Question about the image (default: "่ฏทๆ่ฟฐ่ฟๅผ ๅพ็็ๅ ๅฎน") |
{
"description": "A bar chart showing monthly revenue..."
}
This plugin follows DSH's Capability Seam pattern:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ dsh-plugin-vision โ
โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโค
โ vision.ts โ vision-glm.ts โ tool-vision.ts โ
โ (Service โ (Provider: โ (Consumer: โ
โ Definition)โ GLM-4V-Flash) โ vision_analyze)โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโค
โ Defines โ Calls Zhipu โ Exposes tool โ
โ ctx.vision โ API to analyze โ to the model โ
โ interface โ images โ โ
โโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโ
| File | Role | Description |
|---|---|---|
src/vision.ts |
Service Definition | Types and interfaces for the vision capability |
src/vision-glm.ts |
Provider | GLM-4V-Flash implementation (Zhipu AI) |
src/tool-vision.ts |
Consumer | vision_analyze tool registration |
src/cordis.ts |
Plugin Entry | Cordis plugin that wires everything together |
src/index.ts |
Exports | Public API exports |
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
Built with โค๏ธ for the DeepSeek Harness community
CLASSIFICATION EVIDENCE
็ณป็ปไผๅ ่ฏปๅ GitHub Topics๏ผๅไธ็ซๅ ๅ็ฑป่ฏๅ ธๅ่ฏๆ น่งๅๆฏๅฏนใๅฝๅๅฝไธญ๏ผ deepseek-harnessใ