Preface¶
In the DeepSeek Harness (DSH) Web GUI environment, developers often need to pass local file contents directly to an agent. When working through an API interface, this typically requires setting up a server to handle file uploads; meanwhile, directly copying and pasting text is inefficient and error-prone. The dsh-paperclip plugin addresses this pain point by adding file handling capabilities to the Web GUI input box, allowing file contents to be injected directly into the conversation context.
Plugin Introduction¶
This plugin is maintained by user zmm863-commits and is an open-source client-side plugin. Its core functionality is to add a paperclip icon button to the right of the text input box in the DSH Web GUI. Users can select files by clicking the button or directly drag files into the input box area, and the file contents will be automatically extracted and inserted into the text box for subsequent processing by the agent.
Core Features¶
- Interaction Methods: Supports clicking the paperclip button on the right side of the input box to open a file picker, as well as directly dragging files into the input box.
- File Formats: Supports common text and code formats, including 30+ extensions such as HTML, JS, TS, CSS, JSON, MD, Python, and more.
- Batch Upload: Supports multi-file batch uploads, limited to a maximum of 10 files, with each file not exceeding 5MB.
- Technical Implementation: Runs entirely in the browser without relying on any server-side components, ensuring data privacy and security.
Installation and Activation¶
Installing this plugin requires using the DSH command-line tool. Please ensure your environment is configured with the plugin management tool.
dsh plugin --profile web add dsh-paperclip
After installation is complete, refresh the DSH Web GUI page to activate it. The plugin is open-source under the MIT license; it is recommended to review the source code and license before installation.
Typical Usage¶
- Refresh the Page: After installing the plugin, refresh the Web GUI page, and a paperclip icon will appear on the right side of the input box.
- Select or Drag: Click the paperclip button to select files, or directly drag files into the input box area.
- View Insertion Result: File contents will be inserted into the input box in a code block format, typically displayed as
📄 filename (size). - Send Message: After insertion is complete, simply send the message, and the agent can read the file contents for subsequent operations.
Use Cases¶
This plugin is suitable for scenarios where you need to quickly share code snippets, configuration files, or text content within the Web GUI. Since it is a pure front-end implementation that does not require additional backend services, it is well-suited for development environments with data privacy requirements. Please note the batch upload file count and size limits when using it.