่ฟ”ๅ›ž็›ฎๅฝ•
ๆจกๅž‹ไธŽ MCP ๆ’ไปถ

dsh-plugin-vision

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

Stars
0
Forks
0
Issues
0
ๆ›ดๆ–ฐ
3 ไธชๆœˆๅ‰

PROJECT TOPICS

้กน็›ฎๆ ‡็ญพ

INSTALL REFERENCE

ๅฎ‰่ฃ…ๅ‚่€ƒ

ๆœช้ชŒ่ฏ
dsh plugin --profile web add github:co-Elly/dsh-plugin-vision

่ฏฅๅ‘ฝไปคๆŒ‡ๅ‘ไป“ๅบ“ๅฝ“ๅ‰้ป˜่ฎคๅˆ†ๆ”ฏ๏ผ›ๅฐšๆ— ็ป‘ๅฎšๅฝ“ๅ‰ commit ็š„ๅฎŒๆ•ด้ชŒ่ฏ็ป“ๆžœใ€‚

PROJECT README

README

๐Ÿ‘๏ธ dsh-plugin-vision

Give your DeepSeek Harness the gift of sight.

License: MIT DeepSeek Harness Stars

English | ไธญๆ–‡


๐Ÿค” What is this?

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

โœจ Features

  • ๐Ÿ–ผ๏ธ Analyze local image files (PNG/JPEG/WebP/GIF)
  • ๐ŸŒ Analyze HTTP(S) URL images
  • ๐Ÿ”ค Automatic base64 encoding for local files
  • ๐Ÿ†“ Uses Zhipu's free vision model โ€” no payment required
  • ๐Ÿ”Œ Follows DSH Capability Seam architecture
  • ๐Ÿงฉ Drop-in Cordis plugin โ€” works with cordis.yml

๐Ÿ“ฆ Installation

Option 1: Clone and link

git 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"

Option 2: npm (coming soon)

pnpm add dsh-plugin-vision

โš™๏ธ Configuration

Get a free API Key

  1. Visit Zhipu Open Platform
  2. Register and log in
  3. Create an API Key in the API Keys page
  4. The glm-4v-flash model is free โ€” no payment needed

Environment variables

export ZHIPU_API_KEY="your-api-key"

cordis.yml

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

๐Ÿš€ Usage

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?"
})

Parameters

Parameter Type Required Description
image_path string โœ… Image file path or HTTP(S) URL
question string โŒ Question about the image (default: "่ฏทๆ่ฟฐ่ฟ™ๅผ ๅ›พ็‰‡็š„ๅ†…ๅฎน")

Returns

{
  "description": "A bar chart showing monthly revenue..."
}

๐Ÿ—๏ธ Architecture

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         โ”‚                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Files

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

๐Ÿ—บ๏ธ Roadmap

  • [x] Core vision capability (Service Definition / Provider / Consumer)
  • [x] GLM-4V-Flash provider (free)
  • [x] Local file support (base64 encoding)
  • [x] HTTP(S) URL support
  • [x] Cordis plugin integration
  • [ ] OpenAI-compatible provider (GPT-4o, Claude 3, etc.)
  • [ ] Local vision model support (moondream2, LLaVA)
  • [ ] Batch image analysis
  • [ ] Image language detection and auto-prompting
  • [ ] Video frame extraction and analysis
  • [ ] OCR-specific provider with layout analysis

๐Ÿค Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

๐Ÿ“„ License

MIT


Built with โค๏ธ for the DeepSeek Harness community

CLASSIFICATION EVIDENCE

ๅˆ†็ฑปไพๆฎ

้กน็›ฎ็ฑปๅž‹ๆ’ไปถ
ๅŠŸ่ƒฝๅˆ†็ฑปๆจกๅž‹ไธŽ MCP
่ง„ๅˆ™็ฝฎไฟกๅบฆไธญ

็ณป็ปŸไผ˜ๅ…ˆ่ฏปๅ– GitHub Topics๏ผŒๅ†ไธŽ็ซ™ๅ†…ๅˆ†็ฑป่ฏๅ…ธๅ’Œ่ฏๆ น่ง„ๅˆ™ๆฏ”ๅฏนใ€‚ๅฝ“ๅ‰ๅ‘ฝไธญ๏ผš deepseek-harnessใ€‚