DeepSeek Harness Library Plugin: Building a Local Paper Reading and Q&A Workspace

Introduction

In model inference and agent development, quickly searching, translating, summarizing, and asking questions about papers is a common need. Existing solutions typically rely on browsers, reference management software, or external AI services, which carry high switching costs and potential data leakage risks. DeepSeek Harness (DSH) provides extensibility through its plugin-based architecture, and its Web UI offers a sidebar and workspace that make it easy to perform these operations locally. Below we introduce zju-yoyo/dsh-literature-library, which turns DSH into a paper reading workspace.

Plugin Overview

DSH plugin: read, translate, summarize, and question papers in a built-in literature library. Maintainer: zju-yoyo. Category: Model Inference. It manages papers through a local library, provides full-text reading, translation, summarization, and grounded Q&A, and exposes these capabilities as DSH tools so that conversational agents can perform the same tasks.

Core Capabilities

  • Literature search: Search metadata on arXiv and Crossref; click a result to add it to the library. You can also add papers via arXiv ID/link, DOI, PDF URL, or local PDF upload.
  • Full-text reading: A split-screen renderer renders each page, supporting zoom and density switching (Standard / High / Max), with local caching after the first render.
  • Select & translate: Drag-select any text on a page, a toolbar appears, and supports translation, asking questions, and copying.
  • Text / Translation / Summary / Q&A: The sidebar provides full text, translation, structured or brief summaries, and grounded Q&A. Answers cite page numbers or sections, and the model is instructed to say “not covered in this paper” rather than fabricate.
  • Library management: Reading status (unread / reading / read), favorites, tags, notes (auto-saved), rename, delete, in-library search, and filtering.
  • Agent tools: Expose the same operations to the model, supporting literature_search, literature_add, literature_list, literature_read, literature_summarize, literature_ask, literature_update.

Installation & Activation

Install from the plugin page (recommended):
1. Open Settings → Plugins.
2. Select Add plugin and enter the repository identifier: https://github.com/zju-yoyo/dsh-literature-library or github:zju-yoyo/dsh-literature-library.
3. Enable the dsh-literature-library bundle if it is not already enabled.
4. Click Library at the bottom of the sidebar to open the workspace.

Install from the command line (package only):

dsh plugin --profile <profile> add github:zju-yoyo/dsh-literature-library

After installation, you still need to enable the bundle from the plugin page; the CLI only performs the pnpm install and does not toggle the bundle.

Local development checkout (link install):

dsh plugin --profile <profile> add link:/absolute/path/to/dsh-literature-library

Link install references the directory without copying files.

Typical Workflow

  1. Click Library at the bottom of the sidebar to open the workspace.
  2. Search for literature: enter a topic, select arXiv or Crossref, and click Search. Click Add to Library on a result; you can also use Add by link / ID to handle a DOI or PDF URL.
  3. Select a paper on the left. The right panel defaults to Translation; you can switch between Text / Translation / Summary / Q&A.
  4. Drag-select text on the original page and use the toolbar to translate or ask a question about that paragraph.
  5. Below the title, set the reading status, add/remove tags (click a tag to remove it), take notes, rename, or delete.

Use Agent tools in a conversation (example):

用 literature_search 找一下 "selective state space models" 的最新工作,
把最相关的一篇加入文献库,然后总结它的方法。

Configuration & Data

Configuration overrides the bundle’s Loader line config via the profile’s cordis.patch.yml:

- id: literature-library
  name: dsh-literature-library
  config:
    language: zh
    maxTextPages: 80

Field descriptions:
- dataDir: Library, PDFs, extracted text, geometry, and page cache. Default: <DSH_HOME>/literature (~/.dsh/literature).
- language: Target language for translation and summarization — zh or en.
- provider/model: Model used for AI actions. Defaults to the profile’s default model.
- maxPdfBytes: Maximum PDF size. Default: 41943040 (40 MB).
- maxTextPages: Number of text pages extracted per paper. Default: 80.
- maxPromptChars: Number of paper text characters sent to the model per request. Default: 60000.
- searchMaxResults: Number of results per search. Default: 8.

The plugin has no built-in Config schema; edit the config directly in the plugin management row.

Data & Privacy

  • The library, PDFs, extracted text, text-layer geometry, and rendered pages are stored in <DSH_HOME>/literature, not in the repository or workspace.
  • Translation, summarization, and Q&A only send paper text or selected paragraphs to the model chosen by DSH; data does not leave the local machine.
  • Search requests are sent to export.arxiv.org and api.crossref.org; PDFs come from the paper’s public URL; page rendering is completed locally.
  • Disabling or deleting the plugin only removes the UI and tools; the library data on disk is retained. Delete the data directory to reclaim space.

Use Cases & Notes

Suitable for localized, controllable paper reading and Q&A workflows. Best for DSH users (desktop app or dsh web) who have a default model configured.

Note: The plugin runs with the current DSH process permissions. It is recommended to review the source code and license before installing.

Closing

The plugin builds a local literature library within DSH, providing reading, translation, summarization, and Q&A capabilities, and exposes these operations as Agent tools for conversational agents. See the catalog page and GitHub repository for details.

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

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

Xiaoye