DeepSeek Harness PDF Reader Plugin

Introduction

DeepSeek Harness (DSH) adopts a plugin-based architecture designed to modularize specific functionalities. Developers often need to combine model interpretation and translation capabilities when reading papers or technical documentation. However, common readers lack context interaction, and professional AI tools often require additional payment. The dingyiliao/dsh-bundle-pdf plugin integrates a PDF reader, annotation tools, and DSH’s model capabilities into a single workflow, allowing users to invoke model capabilities directly while processing local files.

Plugin Overview

Name: dingyiliao/dsh-bundle-pdf

Positioning: A PDF reader, annotation, OCR, translation, and navigation plugin for DSH.

Maintainer: dingyiliao

License: MIT License

Installation and Activation

Installing this plugin requires downloading a pre-built native package and installing it into the corresponding DSH profile via the CLI.

  1. Download Build Artifacts:
    Visit GitHub Actions. Select a successful native workflow build on the main branch and download the dsh-pdf-npm-package-<target> matching your system and CPU (supporting linux-x64, linux-arm64, darwin-x64, darwin-arm64, or win32-x64). Unzip the downloaded archive and extract the .tgz file.

  2. Install to Web Profile:
    If using the Web profile, you can directly run the installation command:

    dsh plugin --profile web add /absolute/path/to/package.tgz
    dsh web
  1. Install to Desktop Profile:
    Desktop users must first launch the application once to initialize the desktop profile, then completely exit the application. Install the bundled CLI via the Desktop menu “Manage dsh commands…”, then run the following command:
    dsh plugin --profile desktop add /absolute/path/to/package.tgz
Finally, reopen the application.

Core Features

Once installed, open a local PDF from the DSH file bar to access the following features:

  • Navigation & Search: Supports page and table of contents jumping, hierarchical navigation, personal bookmarks, and text search.
  • Interaction & Annotation: Supports annotations directly on the PDF.
  • Model Capabilities: Provides selection translation, explanation mode, and the ability to open a working copy of the PDF in the background.

Model Usage and Cost Explanation

The plugin’s translation, explanation, and initial OCR features default to using the current session model and DSH-configured credentials; no free models are provided.

  • Explanation Mode: Box-selection explanation requires the current session model to explicitly support image input by default. The plugin supports three image understanding routes:
    1. session-vision (Default): Sends the original image to the current vision model.
    2. ocr-text: Extracts text only without sending the original image.
    3. auxiliary-vision: Uses another configured vision model (auxiliary route) to describe the image and feeds the derived text into the current session.
  • Costs: The auxiliary route (auxiliary-vision) makes additional requests to the configured model, which may incur costs. The built-in SessionLLM OCR backend also requires vision model support.

Configuration Options

The reader selects the image understanding backend via the pdf-image-understanding configuration item.

  1. Use OCR Text Route Only:
    Merge the following override into the profile’s cordis.patch.yml:
    - id: pdf-image-understanding
      config:
        backend: ocr-text
  1. Use Auxiliary Vision Route:
    Configure auxiliary-vision to specify an additional vision model. The provider and model must be exact identifiers configured in DSH that support image input.
    - id: pdf-image-understanding
      config:
        backend: auxiliary-vision
        auxiliaryVision:
          provider: your-provider
          model: your-vision-model

Notes

  • Encrypted PDFs: Not supported currently.
  • Third-party Components: The plugin relies on third-party components such as PDFium, pdf-lib, and Tesseract.js, which follow their respective licenses (see dist/THIRD_PARTY_NOTICES.md).
  • Build Environment: When developing from source, execute npm ci && npm run native:build && npm run build in the repository directory, then link the local directory via dsh plugin --profile web add .. Installing directly via Git URL will not yield native build artifacts.
  • Version Compatibility: The peerDependencies in package.json list compatible DSH versions. The current CI validates using 0.2.0-rc.2.

Summary

The dingyiliao/dsh-bundle-pdf plugin combines native PDF rendering capabilities with DSH’s model invocation capabilities, providing developers with a local workflow integrating reading, annotation, and AI interpretation. Before use, please ensure the current session model supports image input and note any potential extra costs from the auxiliary route.

Plugin Directory: https://www.skillhub.cn/plugins/dingyiliao/dsh-bundle-pdf
Source Code: https://github.com/dingyiliao/dsh-bundle-pdf

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye