zmm863-commits/dsh-paperclip

Plugin插件 Native原生 ⭐ 4 Clients & Launchers客户端与启动器

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 反馈。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • 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

  1. 刷新 Web GUI 页面
  2. 点击输入框右侧的 📎 按钮选择文件,或直接把文件拖进输入框
  3. 文件内容会以代码块格式插入输入框:
📄 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

← 上一个 Prev dsh-codex-collab 下一个 Next dsh-honcho-sync →