Preface¶
DeepSeek Harness (DSH) supports extending functionality through plugins. Reading papers typically involves switching between file managers and chat windows, as well as manually summarizing or asking questions segment by segment. The dsh-paper-reader plugin integrates the paper reading workflow into the DSHA conversation interface, achieving an integrated operation from browsing and reading to real-time questioning via a three-column layout.
Features Overview¶
This plugin provides a three-column reading interface for DSHA:
- Left Column: Displays the document directory tree within the workspace, supporting file browsing.
- Middle Column: Renders papers with white text on a black background, supporting PDF.js rendering, zooming, color inversion, and text extraction.
- Right Column: Integrates DSHA platform sub-agents, providing real-time conversation and analysis capabilities, and supports a right-column docking mode.
The plugin possesses the following core capabilities:
- Integrates DSHA platform sub-agents for paper analysis.
- Supports read-only mirrored display of sub-agent sessions.
- Supports Markdown and PDF formats.
- Supports file directory tree browsing.
Installation and Activation¶
To install the plugin, you must use the official DSHA plugin management command.
dsha-plugin import /tmp/dsh-paper-reader.zip
After installation, update, or uninstallation, the DSHA Web app must be restarted for the plugin to take effect.
Usage¶
To enter the three-column reading mode, follow these steps:
- In any conversation, click the “Paper” button on the right side of the input box.
- Select a manuscript in the left column (the first Markdown file will open automatically upon first entry) and read the body text in the middle column.
- Ask questions directly to the sub-agent in the right column; the sub-agent will answer based on the paper’s content.
- When conversing in the right column, you can use the “Stop” button to interrupt streaming output.
- If you require full operations using the native interface, click “Open Natively” to view; or click “Return to Chat” to go back to the original chat interface.
Configuration and Limitations¶
The plugin’s operation depends on environment variable configuration and has some specific usage limitations.
Environment Variable Configuration:
- DSHA_PAPER_ROOTS: Used to append readable root directories (defaults to the DSH process working directory). Separate multiple paths with colons. Mobile storage is not readable by default and must be enabled via this variable.
- DSHA_PAPER_PDFJS_DIR: Specifies the directory containing pdf.js. The default is node_modules/pdfjs-dist within the plugin.
Usage Limitations:
- The panel displays as a read-only mirror; full operations (such as approval or model switching) must be completed in the native sub-session.
- When the sub-agent is dormant, it can be woken up via the human channel; after one turn ends, it will be reclaimed by the platform, but the mirror remains available to view history.
- LaTeX formulas are displayed as source code, and DOCX format only supports downloading.
- A restart of DSHA Web is required for changes to take effect after installation, update, or uninstallation.
Conclusion¶
dsh-paper-reader combines DSHA’s conversational capabilities with local file browsing, simplifying the paper reading process. For more details and source code, please refer to the Directory Page or the GitHub Repository.