DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Maclens — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
M

dsh-maclens

Maclens

将 Apple 的设备端 Vision framework(macOS)接入 DeepSeek Harness:提供 OCR、图像分类、人脸检测和文档布局分析作为本地 dsh 工具。无需网络、API 密钥或守护进程。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:Harzva/dsh-maclens#3d8c56110be0d7851332ecee2cf76707414b4a02
README兼容性版本

兼容性与来源证明

Maclens 以 dsh-maclens 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/8/29

版本

0.1.2stable
2026/8/29

相关插件

正在加载相关插件…

最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/8/29
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 vision-media 分类下经过校验的插件。

Tool Describe Image@linxin666/dsh-tool-describe-image面向模型的 describe_image 工具,用于 dsh Web GUI:通过在兼容 OpenAI 的端点调用视觉语言模型,为文本模型提供图像理解能力,以描述一张图像(本地路径、http(s) URL 或附件引用)。可热插拔 —Modlens@liustack/modlens面向仅支持文本的 LLM 的插件视觉能力,由免费的 Antigravity CLI 提供支持Deepseek Ivideodeepseek-ivideoiPolloWork HyperFrames Video Studio,以及 27 个可编辑视频模板,以原生 DeepSeek Harness 对话视图呈现。Image Gendsh-image-gen将类似 ChatGPT 的图像生成功能带到 DeepSeek Harness——支持 Gemini、OpenAI、Seedream、DashScope、本地 ComfyUI 等。

README

dsh-maclens 🍎🔍

Apple's on-device Vision framework, bridged into DeepSeek Harness (dsh) as local tools: OCR, image classification, face detection, document layout, and a combined read — 100% offline, no API key, no daemon.

🔒 PrivacyEvery pixel stays on your Mac. No network, no upload, no telemetry.
⚡ SpeedSub-second OCR on typical screenshots (Neural Engine).
🇨🇳 Languageszh-Hans + 30+ recognition languages out of the box.
🖼️ Tall imagesslice splits long screenshots so small text survives Vision's downscale.
🧩 No depsSwift CLI ships in the npm package — no build step to install.

👤 For humans — quick start (30 seconds)

# 1. Install into your dsh profile
dsh plugin --profile desktop add dsh-maclens

# 2. Restart DSH. Then just ask the model:
#    "OCR this screenshot: /Users/me/Desktop/shot.png"

The five tools the model can call:

ToolOne-liner
maclens_ocr"Read all the text in this image" — every line + confidence + box
maclens_classify"What kind of image is this?" — document, chart, photo, …
maclens_faces"Are there people in this image?" — face boxes + count
maclens_document"Parse this page" — OCR + left/right column layout
maclens_describe"Give me everything at once" — OCR + classify + faces + layout

When to pick maclens vs a VLM: maclens is a CV toolkit — it transcribes, classifies, detects but does not narrate "what this image is about". Need open-ended understanding? Pair it with a VLM bridge (e.g. modlens + qwen-vl). Need fast, free, private OCR/detection? maclens.


🤖 For agents — precise contract

TL;DR

Plugin:     dsh-maclens (npm), installs with dsh plugin add
Runtime:    macOS 14+ with Xcode Command Line Tools (Swift 6+)
Tools:      maclens_ocr | maclens_classify | maclens_faces | maclens_document | maclens_describe
Input:      absolute local image path (string) — required on every tool
Output:     one JSON object on stdout; {"error": "..."} + exit 1 on failure
Binary:     bin/maclens in the package (auto-chmod'd), else MACLENS_BIN, else PATH
No network: the CLI makes zero network requests

Install (exact commands)

# From npm — includes the prebuilt binary, no build step:
dsh plugin --profile desktop add dsh-maclens

# From a git checkout — build the Swift bridge first:
cd dsh-maclens && bash scripts/build.sh        # produces bin/maclens
dsh plugin --profile desktop add ./dsh-maclens

Binary resolution order: bin/maclens in the package → $MACLENS_BIN → swift/.build/release/MaclensBridge → maclens on PATH. The plugin chmods the found binary to 0755 at resolve time (npm tarballs drop the exec bit).

Tool schemas

All five tools take path (required, string). OCR-family tools additionally accept:

FieldTypeDefaultMeaning
languagesstringzh-Hans,en-USComma-separated recognition languages
maxLinesnumber—Cap returned OCR lines (large screenshots)
slicebooleanfalseSlice tall images into overlapping strips
sliceHeightnumber4096Strip height in px when slicing
topnumber5Classify only: how many categories to return

Output contract

maclens_ocr returns:

{
  "task": "ocr",
  "language": ["zh-Hans", "en-US"],
  "full_text": "跨境增长研究室\n从一个问题,抵达一个决定。",
  "lines": [
    {
      "text": "跨境增长研究室",
      "confidence": 1.0,
      "bbox": { "x": 0.055, "y": 0.519, "width": 0.517, "height": 0.144 }
    }
  ],
  "line_count": 2,
  "truncated": false,
  "sliced": false
}
  • bbox is normalized (0–1), origin top-left (converted from Vision's bottom-left so it is intuitive).
  • With slice: true, tall images are split into overlapping strips, each strip OCR'd, results stitched back to whole-image coordinates, and duplicate lines in the overlap band de-duplicated. Output adds "sliced": true and "slice_count": N.
  • maclens_document = ocr + layout.columns (left/right) + layout.image_dimensions.
  • maclens_describe = ocr + classification.observations + faces + layout.
  • maclens_faces → faces[] + face_count; maclens_classify → observations[] (identifier, confidence).

Error contract

ExitMeaning
0Success
1Runtime error — stdout is {"error": "..."} (e.g. file does not exist: <path>)
2Usage / unknown task — stdout is {"error": "usage: ..."}

Raw CLI (for testing outside dsh)

bin/maclens ocr --image /path/to/img.png
bin/maclens classify --image /path/to/img.png --top 3
bin/maclens faces --image /path/to/img.png
bin/maclens document --image /path/to/img.png --slice
bin/maclens describe --image /path/to/img.png --slice --top 2

🏗️ How it works

dsh (text-only model)
  └─ maclens_* tools (lib/index.js)
       └─ bin/maclens (Swift CLI, spawned per call — no daemon, no ports)
            └─ Apple Vision: VNRecognizeTextRequest / VNClassifyImageRequest /
               VNDetectFaceRectanglesRequest        ← on-device, offline

🧪 Development

cd swift && swift build -c release
swift test --package-path swift      # 6 behavioral tests

CI (GitHub Actions): Swift release build + smoke tests on macOS, plugin-load + pack-contents check on Ubuntu. All green on main.

📄 Docs

  • AGENTS.md — the agent-facing quick reference (mirrors this section).
  • CHANGELOG.md — version history.
  • SECURITY.md — security model & reporting.

License

MIT — see LICENSE.