zmm863-commits/dsh-paperclip
DSH Web GUI paperclip button: a single 📎 button in the composer that opens a file picker (drag & drop supported) and inserts file contents into the textarea. 在 DSH Web 输入框右侧添加回形针按钮,点击选择/拖拽文件,内容自动插入输入框。
Project Overview项目介绍
This is a DSH-native plugin built exclusively for the DSH web GUI. It adds a 📎 paperclip button to the right of the input text area, enabling users to select files via a built-in file picker or drag and drop files directly into the interface. Once a file is selected, its full content is automatically inserted into the input box so you can share code or plain text directly with the DSH agent. To install the plugin, you can run the official DSH plugin command dsh plugin --profile web add dsh-paperclip directly from your terminal. You can also install it manually by cloning the repository and running the same install command pointing to the local folder after downloading.
This plugin is designed for DSH users who frequently work with local code or text files in the web GUI, filling the gap of the default DSH interface which does not have a quick built-in way to insert full local file content. After installation completes, you only need to refresh your DSH web GUI page in your browser to see the new paperclip button appear next to the input box. To use it, you can either click the button to open the system file picker and select one or multiple allowed files, or just drag and drop files directly onto the input text area. After the content is inserted as a formatted code block with file name and size info, you can send your message as normal and the DSH agent will be able to read the full file content right away.
The plugin runs entirely in the user's browser with zero server-side dependencies, so it works without any additional setup or external services after installation. It supports more than 30 common text and code formats, including HTML, JavaScript, TypeScript, Python, CSS, JSON, Markdown and many other popular development file types. You can upload up to 10 files in one batch, and each individual file has a 5 megabyte size limit. It comes with built-in bilingual support for both Chinese and English, and is released under the permissive open source MIT license. Users can submit bug reports, feature requests, and general feedback via the repository's GitHub Issues page.
dsh-paperclip 是专为 DeepSeek Harness (DSH) Web 图形界面开发的原生插件,它会在输入框右侧添加一个回形针按钮,支持点击选择文件或拖拽文件,将文件内容自动插入输入框,方便用户直接将代码或文本内容发送给 DSH Agent。该插件既可以通过 DSH 内置命令行工具在线安装,也支持下载源码后进行本地手动安装。
该插件面向日常使用 DSH Web 界面处理代码和文本任务的用户,解决了 DSH 默认没有便捷插入本地文件内容的问题。安装完成后只需要刷新网页界面就能看到新增的回形针按钮,点击选择文件或者直接拖拽文件到输入区域即可,插入内容后发送消息,Agent 就能直接读取处理文件内容了。
该插件为纯浏览器端实现,不需要任何服务端依赖,支持 30 余种常见文本和代码格式,涵盖 HTML、JS、TS、Python 等常用开发格式。它支持批量上传最多 10 个文件,单个文件大小不超过 5MB,提供中英文双语界面,采用 MIT 许可证开源,问题可通过 GitHub Issues 反馈。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-paperclip(zmm863-commits/dsh-paperclip)
仓库:https://github.com/zmm863-commits/dsh-paperclip
本站详情页:https://www.yhbd.top/plugins/zmm863-commits-dsh-paperclip/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 4 · 最近提交 2026-08-29 · 主语言 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 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
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 dsh-paperclip
把 zmm863-commits/dsh-paperclip 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-paperclip
DSH Web GUI 回形针按钮插件:在输入框右侧添加一个 📎 按钮,点击选择文件(支持拖拽),文件内容自动插入到输入框,方便把代码/文本直接发给 agent。
A single 📎 paperclip button in the DSH web GUI composer: click to pick files (or drag & drop), file contents are inserted into the textarea so you can hand code/text to the agent directly.
功能 Features
- 📎 输入框右侧回形针按钮,一键选择文件
- 🖱️ 支持拖拽文件到输入框
- 📄 支持常见文本/代码格式(HTML、JS、TS、CSS、JSON、MD、Python 等 30+ 扩展名)
- 🔤 多文件批量上传(最多 10 个,单个 ≤ 5MB)
- 🌐 中英文双语(zh / en)
- 🧩 零服务端依赖,纯浏览器端实现
安装 Install
dsh plugin --profile web add dsh-paperclip
或者手动安装(本仓库):
dsh plugin --profile web add ./dsh-paperclip
使用 Usage
- 刷新 Web GUI 页面
- 点击输入框右侧的 📎 按钮选择文件,或直接把文件拖进输入框
- 文件内容会以代码块格式插入输入框:
📄 index.html (1.2 KB)
```html
<!DOCTYPE html>
...
4. 发送消息,agent 即可读取文件内容
## 开发 Development
```bash
npm install
npm run build # 构建 lib/(tsdown)
npm run watch # 监听模式
反馈 / Feedback
有问题、建议或想新增文件格式?欢迎提 issue:
- 🐛 Bug 反馈:描述问题 + 复现步骤
- 💡 功能建议:告诉我们你想加什么功能或格式支持
- 💬 一般讨论:任何关于回形针插件的反馈都欢迎
👉 提交 Issue
📧 联系邮箱:25894126@qq.com
许可证 License
MIT
reactive-resume/reactive-resume
anywhere-labs/dsh-desktop
dataelement/dsh-desktop
ccch1mneyyy/dsh-TUI
DSH-EAC/DSH-Desktop-EAC
shaobeichen/dsh-pocket
xyTom/coding-tools-mcp