loudMore/dsh-drop-to-path 预览 preview

loudMore/dsh-drop-to-path

DSH 插件:图片与文件直达纯文本模型——图片保留原生附件体验,PDF/Office/压缩包/视频/音频显示为附件栏方块,点击发送时自动转为工作区路径,配合 dsh-vision-toolkit 粘贴即看图。

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that enables sending images and all types of non-image files to text-only DeepSeek models that DSH would otherwise block. DSH natively prevents text-only models from accepting image attachments entirely, and it does not support attaching any non-image files at all to conversations, which creates friction for users that rely on external tools like dsh-vision-toolkit. This plugin intercepts any dragged or pasted files in the composer, stores them locally in the current session workspace, and appends their full workspace paths to the outgoing message automatically right before send.

When you add an image via drag or paste into the composer, it keeps the full native DSH attachment UI, including previews and one-click remove button, exactly the same as normal DSH behavior. When you add any other supported file (PDF, Word, Excel, zip, video, audio, text, markdown, etc.), the plugin renders a small square chip with a format-specific icon in the DSH attachment rail, showing the full file name on hover and a convenient remove button. When you hit send to submit your message, all added images and files are uploaded to the workspace, their paths are automatically appended to your message text, and the chips are cleared after a successful send.

This plugin currently only works with DSH version 0.1.0-rc.6, and it depends on several undocumented internal DSH interfaces, so it may break when you upgrade DSH to a newer version. If you upgrade DSH, you should first check the ADAPTING.md file included in the repo, which lists common failure symptoms and step-by-step fixes. The plugin enforces size limits of 30MB per image and 100MB per non-image file, all files are stored in the .drops subdirectory of your workspace, and it is released under the open source MIT license.

这是专为DeepSeek Harness开发的原生插件,解决了纯文本大模型无法在DSH中直接发送图片和各类非图片附件的痛点。它支持用户拖拽或粘贴图片、PDF、办公文档、压缩包、音视频到DSH的消息撰写区,文件会自动上传到当前会话工作区,发送消息时会自动把文件对应的工作区路径追加到消息末尾。

该插件面向在DSH中使用纯文本DeepSeek模型的用户,这类用户通常需要配合dsh-vision-toolkit这类工具实现图片理解和文档处理。使用时,图片会保留原生DSH的附件预览和移除UI,非图片文件会显示为带格式图标的方形卡片,均支持拖拽粘贴和批量操作,点击发送后才会自动转换为工作区路径。

插件对不同类型文件设置了大小限制,图片单文件最大30MB,其他文件单文件最大100MB,文件统一存储在工作区的.drops目录下,用户可随时清理。它依赖DSH的部分未公开内部接口,仅适配0.1.0-rc.6版本,升级DSH前需阅读ADAPTING.md,采用MIT许可证开源。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 11 stars - an early-stage project星标 11,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:loudMore/dsh-drop-to-path

把 loudMore/dsh-drop-to-path 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-drop-to-path

Drop or paste images, PDFs, office docs, zips, videos and audio into DeepSeek Harness — they reach your text-only model as workspace file paths. Images keep the native attachment UI (preview / remove), everything else shows as square chips in the attachment rail, and paths are appended automatically when you hit send.

English | 中文

dsh-plugin

Demo

Full workflow

Drag images / PPT / TXT / ZIP into the composer → square file chips appear next to image thumbnails → hit send → the model receives workspace file paths.

Result

The effect: images and files arrive at the text-only model as workspace paths, ready for vision / document tools.

Why this plugin

I use a text-only model (deepseek) in DeepSeek Harness and frequently need to send screenshots to the agent. But DSH image attachments go through the model's native attachment channel, and text-only models are rejected by a preflight check before the message is even sent — the composer shows a system toast:

The current model does not support images; switch to a model that does.

DSH system toast when sending an image attachment

Backed by the host image-admission preflight (attachment-error):

Model "deepseek-v4-flash" does not support image input.

dsh-vision-toolkit solves the "see the image" half — but its tools only accept workspace file paths, so the image must enter the message as a path. Every screenshot became: save to workspace → manually type the path into the message. Painful. And beyond images, DSH refuses to attach PDFs, office documents, videos or any non-image file at all.

After experiencing "paste and go" in another tool, I decided to bring that experience back to DSH: keep the attachment UI completely native, and convert images and files to paths only at the moment of sending. Hence this plugin.

How it works

flowchart LR
    A["Paste / drag in"] --> B{"File type?"}
    B -->|"Images<br/>png / jpg / webp / gif"| C["Native attachment card<br/>preview / remove"]
    C --> D["Hit send"]
    D --> E["Upload → workspace/.drops/"]
    E --> F["Message becomes plain text paths"]
    F --> G["Text-only model reads them<br/>with vision / document tools"]
    B -->|"Other files<br/>pdf / docx / xlsx / video…"| H["Square chip in the<br/>attachment rail<br/>format icon · ✕ remove"]
    H --> D

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-side-chat 下一个 Next dsh-ptc-plus →