Preface¶
When processing PDFs in DeepSeek Harness (DSH), the common approaches are either throwing the entire document at the model or writing your own scripts that call Poppler. The former is hard to do with page-level precision and scanned pages, while the latter requires maintaining the toolchain and citation formats in conversations. dsh-pdf-reader is a standalone Harness plugin for DSH Desktop: it does not modify the desktop shell, pull in npm runtime dependencies, run background indexing, or auto-download models. Instead, it uses the official tool registry to wire “page-wise reading, search, targeted OCR, full-page or cropped image attachments” into agent workflows. Below we introduce its positioning, capabilities, and installation usage.
What This Is¶
dsh-pdf-reader (GitHub: SkanderBog/dsh-pdf-reader, maintained by SkanderBog) is a Harness host plugin (pluginType: feature), currently at release version 0.1.4 (MIT). It leverages Harness’s filesystem, system prompt, and attachment services to call Poppler and, optionally, Tesseract locally, implementing page-level PDF reading, literal search, selective OCR for scanned pages, and handing full pages or zoomed crop regions to conversations as real Harness image attachments.
The DeepSeek official chat app/website is a different product and does not load this kind of Harness plugin; you need to use it on a DSH Desktop (or the corresponding CLI profile) that supports the plugin mechanism.
Core Tools¶
The plugin exposes five tools to agents (names per the README):
| Tool | Purpose |
|---|---|
pdf_status |
Check whether Poppler, Tesseract, and installed OCR language packs are available. |
pdf_inspect |
Page count, whether each page has selectable text, scanned-page warnings, and coverage. |
pdf_read |
Read by page range, preserve table spacing, selectively OCR scanned pages, and report truncation. |
pdf_search |
Literal search within embedded text, returning page citations and flagging scanned coverage gaps. |
pdf_render |
Output full pages or zoomed crop regions as Harness image attachments. |
The plugin also adds a short PDF-reading workflow note into the system prompt. The current Agent preset must allow these tools; if a restricted preset hides plugin tools, switch to a preset that allows plugin tools.
Environment and Compatibility¶
Runtime requirements (from package.json / README):
- Node 22.19+ or 24+
- DeepSeek Harness ≥ 0.2.0-rc.2, or the
0.2.1-alpha.1/0.2.1-alpha.2/0.2.1-rc.2declared in the manifest
Documented verification (non-exhaustive):
- Linux DSH Tauri Desktop + Harness
0.2.0-rc.2: the maintainer states it has been installed, enabled, and passed integration and OCR tests. - macOS native plugin execution: the 0.1.1 packaged plugin passed 22 integration tests in GitHub Actions (Node 24, Poppler, Tesseract).
- The official DeepSeek Harness Desktop uses the same plugin mechanism; the official source code was
0.2.0-rc.2at the time of review (2026-10-02), and compatibility is expected when the required services and native dependencies are present, but the packaged official desktop GUI and Windows execution have not been fully verified within this project.
Poppler and Tesseract are system-level native programs and are not bundled by the plugin. A GUI application’s PATH may differ from the terminal’s; if pdf_status reports missing binaries, you can configure absolute paths for each binary in the plugin’s Cordis config (the README uses Tesseract as an example). Common Homebrew paths on Apple Silicon are /opt/homebrew/bin, and on Intel Macs /usr/local/bin.
Installation and Enablement¶
The distribution is the dsh-pdf-reader-0.1.4.tgz in GitHub Release v0.1.4. The unscoped dsh-pdf-reader on npm belongs to another author; use this repository’s archive package or GitHub source installation.
Official desktop (preferred): Install this .tgz on the desktop’s Plugins page and enable dsh-pdf-reader.
If you use the dsh command bundled with the official desktop: start the desktop once to initialize the profile, fully quit, then run (replace the path with your local absolute path):
dsh plugin --profile desktop add /absolute/path/dsh-pdf-reader-0.1.4.tgz
After the command finishes, reopen the desktop. For community shells, do not use desktop as the profile name unless you actually have a desktop profile. If the profile does not support hot reload, restart the Harness core.
Naming CLI profiles:
dsh plugin --profile YOUR_PROFILE add /absolute/path/dsh-pdf-reader-0.1.4.tgz
Use the profile name the desktop actually runs (not necessarily web or desktop). Disabling or uninstalling is done through the same plugin manager; disabling removes tools and workflows, in-memory override information and temporary working PDFs are discarded, and image attachments already generated and in the conversation remain managed by Harness.
Installing Native Dependencies¶
Poppler provides pdfinfo, pdftotext, pdfimages, pdftoppm; local OCR requires Tesseract plus the corresponding language data. Pure rendering and selectable-text cases do not require Tesseract.
Ubuntu/Debian:
sudo apt install poppler-utils tesseract-ocr tesseract-ocr-eng tesseract-ocr-chi-sim
macOS (native tools tested in CI; the packaged desktop GUI has not been verified here):
brew install poppler tesseract tesseract-lang
Windows requires you to provide the executables and OCR language data for the corresponding architecture yourself; the Linux-side OCR wrapper cannot be directly ported.
Typical Usage¶
After attaching a PDF normally, per the README example, you can tell the agent your intent (English prompt, behavior equivalent to “use the tools first, then summarize”):
Use the PDF tools to read this document. Inspect its pages first, OCR scanned pages in English and Chinese, and inspect relevant figures. Explain the findings with PDF page references. Tell me which pages or regions you could not read.
For table pages:
Read PDF page 6 with layout preserved, then render a crop of the table and check the numbers against the text. Cite the page.
Recommended workflow: first use pdf_inspect to understand the page structure and scanned status, then use pdf_read / pdf_search to get text and cite page numbers; use pdf_render for visual verification of figures or tables; pages or regions that cannot be read should be clearly stated in the reply.
Permissions and Security Boundaries (Read Before Installing)¶
The plugin runs with the permissions of the current DSH process user, not an OS-level sandbox. Key points from the README and Store compatibility notes:
- Source PDFs: read-only access via Harness’s filesystem service, verified on each call; source files are not modified.
- Local writes: document/OCR intermediate files in a private OS temp directory; rendered images are stored through the host attachment service; uninstalling cleans up working copies, and a hard crash may leave OS temp files behind.
- Subprocesses: only calls Poppler and Tesseract, with fixed arguments,
shell: false, cancellation, timeout, and output limits; administrator-configured absolute-path binaries should be treated as trusted. - Network: the plugin itself does not make direct network requests; Harness may send returned text/images to the model provider selected for the current conversation.
- Environment: subprocesses use an explicit allowlist of runtime paths/fonts/OCR config, and do not forward API keys,
NODE_OPTIONS,LD_PRELOAD, dynamic library search path overrides, etc.
In the DSH STORE review on 2026-10-15, installation may still be blocked due to reasons such as independent verification of native dependencies; declarations in the manifest do not constitute store approval or independent security certification. Before installing, you should review the source code and the MIT license yourself, and confirm that the Poppler/Tesseract sources are trustworthy.
Suitable Scenarios¶
- Analyzing technical PDFs, contracts, or scans in DSH Desktop or CLI sessions where page citations and local OCR for scanned pages (e.g., English/Chinese) are needed.
- Need to hand table layouts and cropped images to a multimodal model for verification, rather than just pasting plain text.
- Want no npm runtime dependencies and no background indexing, relying on locally installed Poppler/Tesseract.
Less suitable for: users only on the DeepSeek web/App who cannot install Harness plugins; unverified Windows or arbitrary Harness versions; scenarios expecting the plugin to ship its own OCR engine without a system Tesseract installation.
Links¶
- Community catalog page: https://www.skillhub.cn/plugins/SkanderBog/dsh-pdf-reader
- Source code and README: https://github.com/SkanderBog/dsh-pdf-reader
- Current installer package: https://github.com/SkanderBog/dsh-pdf-reader/releases/tag/v0.1.4
dsh-pdf-reader consolidates page-level PDF reading, search, local OCR, and visual cropping into a set of Harness tools, suitable for developers and agent workflows already running DSH and having Poppler/Tesseract available locally.