Zenjibad/dsh-drop-any-file
Accept any file type in the DeepSeek Harness (DSH) web chat drag-and-drop: non-image files are saved into the active session's workspace for the agent to read and use.
Project Overview项目介绍
This is a plugin built exclusively for the DeepSeek Harness (DSH) web UI chat that extends the native drag-and-drop attachment functionality. By default, DSH’s chat composer only accepts image files (PNG, JPG, WebP, GIF) for inline attachment and rejects any drag-and-drop of non-image files. This plugin removes that restriction by adding support for accepting any file type dropped into the chat window. To install it, users can run the dsh plugin --profile web add github:Zenjibad/dsh-drop-any-file command in their terminal, and it persists across DSH restarts after installation.
When a user drags files over the DSH chat window, the plugin registers capture-phase event listeners that intercept the drag and drop action before the default image-only handler runs. If any non-image files are detected in the drop, the plugin prevents the default rejection behavior and processes the files instead. It saves each non-image file directly to the active DSH session’s workspace directory, so the DSH agent can access and use the files with its native file tools. It leaves pure image drag-and-drop behavior completely untouched, so existing workflows for images do not change.
The plugin requires DSH version 0.1 or newer running with the web profile. It enforces strict size limits: single files over 60MB are rejected, and the total request body is capped at 80MB to prevent unbounded memory usage. It includes several security safeguards: path traversal is blocked by stripping invalid path characters and only writing to the session’s working directory, and no external network calls are made. It is released under the permissive open source MIT license.
这是一个专为DeepSeek Harness(DSH)网页版聊天打造的原生插件,用于扩展DSH原生的拖拽上传功能。DSH默认的聊天编辑器只允许PNG、JPG、WebP、GIF这类图片作为附件嵌入聊天,会直接拒绝所有非图片类型文件的拖拽上传,这个插件专门解决了这个限制。
用户拖拽文件到聊天窗口时,插件会在默认处理器运行前拦截拖拽事件。如果拖拽包含非图片文件,插件会拦截默认行为,将文件通过base64编码上传到DSH后端,写入当前会话的工作区目录,同时弹出提示告知保存结果,原有图片拖拽的内嵌行为保持不变。
这个插件要求DSH版本不低于0.1,且需要使用web配置文件。单文件大小上限为60MB,请求体大小上限为80MB,超出上限的文件会被拒绝上传。它采用MIT许可证开源,可通过dsh plugin add命令一键安装,安装后会随DSH启动自动加载。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-drop-any-file(Zenjibad/dsh-drop-any-file)
仓库:https://github.com/Zenjibad/dsh-drop-any-file
本站详情页:https://www.yhbd.top/plugins/zenjibad-dsh-drop-any-file/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-09-10 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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:Zenjibad/dsh-drop-any-file
把 Zenjibad/dsh-drop-any-file 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-drop-any-file · Accept Any File Type in the DeepSeek Harness (DSH) Web Chat
Extend the DeepSeek Harness (DSH) Web UI chat's drag-and-drop so that every file type is accepted — the built-in composer only lets images (PNG/JPG/WebP/GIF) attach inline and rejects everything else. Dropping a non-image file saves it into the active session's workspace so the agent can read and use it. 让 DSH 聊天支持拖拽任意类型文件:非图片文件将保存到当前会话工作区,供 Agent 读取使用。
中文文档: README.zh.md · LLM index: llms.txt · Agent guide: AGENTS.md
Keywords: dsh-plugin · deepseek-harness-plugin · drag-drop · file-upload · workspace · attachment · any-file · 拖拽 · 任意文件
Repo
GitHub: Zenjibad/dsh-drop-any-file · Requires DSH ≥ 0.1 with the web profile.
📑 Table of Contents
- ✨ Features
- 🏗️ How it works
- 🚀 Quick start
- ⚙️ Configuration
- ❓ FAQ
- ⚠️ Security notes
- 📦 Project structure
- 🙏 Credits
✨ Features
| Feature | Description |
|---|---|
| 📥 Any file type | Drop .pdf, .zip, .txt, .csv, .bin, … — nothing is rejected with an "only PNG/JPG" error |
| 💾 Saves into the workspace | Each dropped non-image file is written into the active session's workspace directory, where the agent can read/search/use it with its normal file tools |
| 🖼️ Images untouched | Drops that contain only images keep the built-in inline-attach behaviour — nothing changes for what already worked |
| 🚫 Composer rejection bypassed | Capture-phase window listeners intercept the drop before the composer's image-only handler runs, so its rejection toast never fires |
| 🫳 Drop overlay + toast | A themed full-window overlay appears while dragging ("Drop to save to workspace"); a toast confirms what was saved (or why it failed) |
| 🛡️ Name sanitisation + size caps | File names are reduced to a basename and stripped of illegal path characters; payload/file sizes are capped (80 MB body / 60 MB file) |
| 🌗 Theme-aware | Overlay and toast use --dsw-alias-* design tokens; follows light/dark automatically |
| ♨️ Survives restarts | Real profile-bundled plugin: install once with dsh plugin add, auto-loads on every DSH boot — no per-session define, no cordis_define |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
ZSeven-W/dsh-ios
jsdvjx/dsh-strata
Tkingxiao/dsh-any-background
hellodigua/dsh-share
KaichenCurry/dsh-design-mode
a903067276-rgb/dsh-file-upload
zmm863-commits/dsh-agnes-studio