返回目錄

agent-vision-toolkit

維護狀態: 活躍

anionex/agent-vision-toolkit

為純文本模型"看圖“設計更好的視覺工具箱和技能,支援多圖理解,圖片問答,前端UI還原、GUI 自動化等,並可選無縫接入多個主流agent,直接識別貼上圖片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

前往 GitHub專案首頁
$ git clone https://github.com/Anionex/agent-vision-toolkit.git

1,187

星數

45

Fork

Python

語言

MIT

授權條款

2026-08-01

建立於

2026-08-27

最近推送

MIT 授權的視覺工具箱,讓純文字 agent 具備看圖能力;透過 dsh-vision-toolkit Profile Bundle 原生接入 DeepSeek Harness,CLI 與技能也相容任何可呼叫 shell 的 agent。

DSH 整合

原生執行環境

作者聲明

安全稽核

未稽核

最後核實

2026-08-21

授權條款

MIT

01它能幫你完成什麼?

  • Give a text-only coding agent (e.g. DeepSeek) working vision: image Q&A, OCR of long screenshots and chat histories

    Task-aware image answers, transcribed text, and merged OCR of scrolling pages with speaker/timestamp preservation

    Developers running text-only models such as DeepSeek who need image understanding without switching to a multimodal model

  • Rebuild UI pages, infographics, icons and diagrams from screenshots or sketches into editable code

    HTML/CSS reconstructions, transparent PNG extractions, editable SVG, and structured Mermaid/Graphviz representations

    Frontend developers and designers who want agent-driven screenshot-to-code / sketch-to-interface restoration

  • Operate a GUI from screenshots: locate controls, act, and verify the resulting state

    Pixel-coordinate grounding of controls and a verify-after-each-action automation loop

    Automation engineers who need screen-element grounding (e.g. `ground`/`detect`) for GUI control with a text-only agent

02如何將外掛接入 DeepSeek Harness?

先決條件

  • A coding agent already working with a model, including a text-only model such as DeepSeek V4
  • A multimodal vision API supporting OpenAI Chat Completions, OpenAI Responses, or Anthropic Messages, plus its base URL, API key, and model name
  • Python 3.11+ for `glance`; optional `pillow` for `ground`/`detect`/`crop` and the long-screenshot OCR playbook, `pillow` + `numpy` for `trace`

安裝步驟

  1. 01

    Point it at a vision API — write three env vars (`VISION_API_KEY`, `VISION_BASE_URL`, `VISION_MODEL`) to `~/.config/agent-vision-toolkit/env` (`chmod 600`)

  2. 02

    Put the CLIs on your PATH: `git clone https://github.com/Anionex/agent-vision-toolkit.git` then `export PATH="$PWD/agent-vision-toolkit/bin:$PATH"` (add to your shell profile to persist)

    $ git clone https://github.com/Anionex/agent-vision-toolkit.git

  3. 03

    Install the skill so your agent knows the tools exist: `npx skills add Anionex/agent-vision-toolkit --skill vision-skills -a codex -g --copy -y`, or copy `skills/vision-skills/` into your agent's skills directory (e.g. `~/.codex/skills/`) and restart the agent

    $ npx skills add Anionex/agent-vision-toolkit --skill vision-skills -a codex -g --copy -y

  4. 04

    Optional seamless integration: follow AGENT_INSTALL.md to install the transparent local proxy (Codex / Claude Code) or single-file native extension/plugin (Pi, Oh My Pi, OpenCode); for native DSH support use the linked `dsh-vision-toolkit` package (clone with `--recurse-submodules` or run `git submodule update --init --recursive`)

    $ git submodule update --init --recursive

驗證整合成功

  • After installing the optional integration and restarting the agent, paste an image directly or let the model call its built-in image tool

03DSH 整合程度與能力邊界

DSH 整合原生執行環境

Native DSH Profile Bundle via the linked `dsh-vision-toolkit` package (tracked as a Git submodule); the standalone CLIs and `vision-skills` skill also run in any shell-capable agent

  • glance — intent-aware image Q&A and OCR

    an image file plus a question (or `--ocr`)task-aware answers or transcribed text, focused on the current step's intent instead of a generic description

    sends the image and focus hint to the configured external multimodal vision API
  • ground / detect — pixel-coordinate localization

    an image plus a target description (optionally `--region`)bounding boxes in original pixel coordinates; numbered element inventories with exact visible text

    sends the image to the configured external multimodal vision API
  • trace / crop — deterministic SVG fitting and region cropping

    a flat, high-contrast graphic (or a pixel box for `crop`)editable SVG primitives (`<circle>`, `<line>`, `<polyline>`, `<polygon>`) fitted locally; cropped region files for reuse

    writes output files (SVG / cropped images) to disk
  • Seamless integration — transparent local proxy / native extensions

    agent requests containing pasted images or built-in image tool callsimages replaced with task-aware text descriptions before reaching the text-only upstream, with no extra prompting

    runs a local proxy at 127.0.0.1:19100 and forwards requests (including the original Authorization header) to your existing upstream

04適合誰?何時不該用?

適合

  • Developers running text-only models such as DeepSeek who need image understanding without switching to a multimodal model
  • Frontend developers and designers who want agent-driven screenshot-to-code / sketch-to-interface restoration
  • Automation engineers who need screen-element grounding (e.g. `ground`/`detect`) for GUI control with a text-only agent

不適合

  • This is an image-to-text layer — it doesn't hand vision tokens directly to the text model, and overall visual-task quality is determined jointly by the primary LLM and the multimodal LLM.

05相容性、維護與安全提醒

  • This is an image-to-text layer — it doesn't hand vision tokens directly to the text model, and overall visual-task quality is determined jointly by the primary LLM and the multimodal LLM.
  • Requires an external multimodal API (OpenAI Chat Completions / Responses / Anthropic Messages) with its own base URL, API key, and model name; images leave your machine to that endpoint.
  • The proxy's cache lives only inside its process and is cleared on restart.
2026-08-012026-08-19v0.2.0

MIT · actively maintained (latest release v0.2.0, 2026-08-14)

06常見問題

如何把 agent-vision-toolkit 接入 DeepSeek Harness?

透過配套的 `dsh-vision-toolkit` 套件——它是 DSH Web 與 Headless 設定的原生 Profile Bundle,提供 10 個結構化視覺工具,並附 DSH Credentials、託管隔離執行環境與 Agent 級漸進式工具揭露。它以 Git submodule 形式追蹤:複製時加 `--recurse-submodules`,或在既有儲存庫執行 `git submodule update --init --recursive`。

DSH 整合是原生還是走 MCP?

原生——`dsh-vision-toolkit` 以 Profile Bundle 形式在 DSH 內原生執行,不透過 MCP。另外,基礎工具箱的 CLI 可被任何能呼叫 shell 的 agent 直接使用,不需要任何整合。

需要哪些前置條件?

一個已能搭配模型運作的編程 agent(DeepSeek V4 這類純文字模型即可),以及一個支援 OpenAI Chat Completions / Responses / Anthropic Messages 的多模態視覺 API(含 base URL、API key 與模型名稱)。`glance` 需要 Python 3.11+;`ground`/`detect`/`crop` 需要 `pillow`;`trace` 需要 `pillow` + `numpy`。

我的圖片和資料會傳到哪裡?

圖片內容與任務聚焦提示會傳送到你在 `VISION_BASE_URL` 設定的多模態視覺 API。選用的本機代理執行於 127.0.0.1:19100,僅原封不動轉發你原有的上游 Authorization 標頭,不會另外儲存上游 API key。

有哪些限制要注意?

它是圖像轉文字層——視覺 token 不會直接進入文字模型;視覺任務品質由主模型與多模態模型共同決定;代理快取只存在於處理程序記憶體中,重新啟動即清空。

08資料與來源

  • 作者聲明github.com1b8d4573bd27…

    The new [`dsh-vision-toolkit`](https://github.com/Anionex/dsh-vision-toolkit) linked package brings this toolkit into DS…

  • 作者聲明github.com1b8d4573bd27…

    It provides 10 structured visual tools for intent-aware image Q&A, grounding, detection, tracing, cropping, pixel diff,…

  • 作者聲明github.com1b8d4573bd27…

    The package is tracked here as a Git submodule and maintained independently at [`Anionex/dsh-vision-toolkit`](https://gi…

此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-21。發現錯誤?提交更正。

🏆

最佳 DeepSeek Harness 外掛

從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。