DeepSeek Harness 插件

my-image-drop

DeepSeek Harness plugin: drag images into the composer and get a file path back, so text-only models can read them via the read tool.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
yangpeng-space/my-image-drop
最近更新
2026年8月20日
分类
工具与能力
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/yangpeng-space/my-image-drop
插件名:my-image-drop
作者:yangpeng-space

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器2 个文件
README.md来源说明 · 只读预览

my-image-drop

A DeepSeek Harness plugin that turns drag-and-drop of images into file paths in the composer, so text-only models can read them with the read tool (or a vision skill) instead of failing image admission.

How it works

  • Host half (dsh/index.js): registers a loopback route POST /my-image-drop. It accepts an image, magic-byte checks and size-caps it (25 MB), writes it as a private (0600) temp file under <tmpdir>/my-image-drop, and returns { "path": "..." }.
  • Browser half (dsh/client.js): a capture-phase drop listener (plus dragenter/dragover to enable dropping). On a drop that carries image files, it uploads each to /my-image-drop and inserts the returned path into the focused composer as plain text. It also dispatches a synthetic dragend so the composer's drop overlay dismisses.

The composer shows a file path in the input box. Send it and the model gets a path — the primary trigger for the read tool and vision skills.

Install

From the GitHub source (git install runs prepare; no build needed, the entry is committed):

dsh plugin add github:<owner>/my-image-drop

Or add the bundle to your profile:

{
  "dsh": { "profile": { "bundles": ["my-image-drop"] } }
}

Scope

This plugin handles drag-and-drop only. Paste is intentionally left to whatever else is installed (e.g. @liustack/modlens) so the two never double-handle the same event. If you run modlens' own drop patch and this plugin at the same time, both would insert a path — pick one.

Files

  • package.json — manifest; declares dsh.bundle.patch and the browser bundle (dsh.client).
  • cordis.patch.yml — host mount layer.
  • dsh/index.js — host half (route).
  • dsh/client.js — browser half (drag/drop listeners).

Testing (author)

  • node --check dsh/index.js — syntax check the host half.
  • node --check dsh/client.js — syntax check the browser half.
  • Install into a web profile, restart the desktop app, drag an image into the composer, and confirm a file path is inserted and the read tool can open it.