Introduction

DeepSeek Harness (DSH) adopts a plugin-based architecture, designed to extend functionality using the “everything is a plugin” approach. During web development or usage, directly reading local documents (such as PDF, Word, and PPT) and filling them into the chat input box often requires manual copying and pasting, which is inefficient. The dsh-document-reader plugin addresses this pain point by adding file-reading capability to DSH’s Web Profile, allowing document content to be imported into the editor via upload or drag-and-drop.

Plugin Overview

  • Name: dsh-document-reader
  • Category: Client
  • Author: Yun-tech123
  • License: MIT
  • Core Value: Directly reads the content of PDF, Word, PPT, and plain text files in the input box of the DSH chat interface.

Core Features

This plugin primarily provides the following three interaction methods and supported formats:

  1. Upload Reading
    After installation, a “Document” button appears in the input box toolbar. Click this button, and the system opens a file selection dialog, supporting the selection of multiple files.

  2. Full-Page Drag and Drop
    Drag a document file to any position on the page. The interface displays a “Release to read document” overlay prompt; releasing the mouse triggers the read action.

  3. Formats and Limits

    • Supported Formats: PDF, .docx, .pptx, as well as txt, md, csv, yaml, and code files.
    • Output Limit: The character limit for reading a single file is 200,000; any excess is automatically truncated.

Installation and Activation

Install the plugin using DSH’s command-line tool. The installation process automatically registers it under dsh.profile.bundles.

  1. Run the installation command:
    dsh plugin --profile web add github:Yun-tech123/dsh-document-reader
  1. Restart the Web service:
    dsh web
  1. After refreshing the page, you will see the new “Document” button in the input box toolbar.

Typical Usage

After installation, you can use it in the following two ways:

  1. Click the “Document” button in the input box toolbar and select local files.
  2. Directly drag files to any blank area of the page.

Use Cases and Notes

This plugin runs with the current permissions of the DSH process. Before use, it is recommended to review the source code and license.

  • PDF Limitation: This plugin only supports text extraction. For pure scanned documents (image-based PDFs), content cannot be extracted because they lack a text layer.
  • Legacy Formats: Older binary .doc, .xls, and .ppt formats are not supported for now. Please convert them to .docx or .pptx formats first.
  • Browser Requirements: A relatively recent browser environment is required, with support for extracting .docx/.pptx files (Chrome/Edge/Firefox 2022 or later).

Conclusion

dsh-document-reader provides DSH users with a convenient way to import files, reducing the cumbersome steps of manual input. For more details and the source code, please refer to the project directory or GitHub repository.