rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:dingyiliao/dsh-bundle-pdf
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Read PDFs alongside your DeepSeek Harness conversation. Let the model find relevant passages, annotate them, navigate to the source, and return to your previous reading position.
Click a screenshot to open it at full resolution.
Find passages by meaning\ If you only remember the gist or aren't sure the book covers a topic, enable semantic search and ask in your own words. The model can find related passages, mark them, and take you there.
Ask about multiple passages\ When several passages or figures leave you with questions, add a question to each text selection or cropped screenshot in Explanation mode and send them together to the current chat.
Jump back through your history\ Lost your place after several jumps? Pick an earlier reading position from the back menu and go straight there.
Create bookmarks from a scanned table of contents\ When a scanned book has no bookmarks, the model reads its table of contents, matches the page numbers, and creates a clickable bookmark tree.
Translate scanned text\ Can't select text on a scanned page? Draw a box around the passage. The reader recognizes the text first, then shows the translation in the sidebar. You can also ask the model to translate directly in chat, and it will use the appropriate tools.
Validated with DSH 0.2.2-rc.2. The plugin admits DSH >=0.2.2-rc.1 <0.3.0-0; see DSH compatibility.
Use the npm package name below, not a GitHub URL. The source repository does not include dist/; installing it directly leaves the entry files missing and prevents the plugin from loading.
GUI: open Plugins → Add plugin, enter @dylanl1/dsh-plugin-pdf, install, then click Enable now.
CLI: replace <profile> with your profile:
dsh plugin --profile <profile> add @dylanl1/dsh-plugin-pdf
For Desktop, install its bundled CLI through Manage dsh Command… in the app menu. Launch Desktop once, fully quit it, install with --profile desktop, then reopen it. A separately npm-installed CLI cannot manage Desktop's plugins.
The plugin includes a small OCR model supporting Chinese and English. Select Local Tesseract OCR in PDF settings to use it (the default option).
pdf_current, pdf_open, pdf_close, pdf_info, pdf_status.pdf_page_read, pdf_page_render.pdf_keyword_search, pdf_semantic_search, pdf_evidence_read.pdf_annotation_list, pdf_annotation_create, pdf_annotation_update, pdf_annotation_delete.pdf_bookmark_list, pdf_bookmark_edit.pdf_form_inspect, pdf_form_fill.pdf_page_jump, pdf_save.ocr_recognize, image_understand.pdf_open opens documents in the background; navigation requires a visible Reader. Agent edits go straight into the same draft as the Reader; overwriting the source still requires user approval. For protected PDFs, retry with the password parameter after a password-required error. If baselineMismatch is returned, pass baselineChoice: "adopt-current" or "retain-operations"; the password stays in Host memory and is never serialized. See the tool documentation and working-copy model for parameters and boundaries.
OCR, image understanding, translation and embedding support third-party implementations. Build an independent DSH Host plugin, declare this package as a peer dependency, register your backend with the corresponding service through the public SDK, and install it in the same Host profile. It then appears in PDF settings.
Start with http-engines in examples/, an independent plugin providing HTTP OCR and image-understanding backends. See engine extensions for API and lifecycle contracts.
flowchart TB
Reader["Client · PDF Reader"] <--> RPC
Model["DSH conversation model"] -- "Tool calls" --> Features
subgraph Host
RPC["Authenticated RPC"] --> Features["PDF domain capabilities"]
Features --> Copy["Shared working copy · Drafts and undo"]
Features --> Search["Retrieval and evidence"]
Features --> Engines["Extensible AI engines"]
Search --> Copy
Search --> Engines
Search --> Index[("Disk index and checkpoints")]
Copy --> PDF["Native PDFium · Reading and writing"]
Copy --> Storage["Files and draft storage"]
end
The Reader and agent tools share a Host working copy within each resource session. Native PDFium handles rendering, extraction, document inspection and writes. Separate processes keep document inspection and writes off the render queue. See the architecture.
Build the pinned PDFium SDK first.
npm ci
DSH_PDFIUM_ROOT=/path/to/sdk npm run native:build
npm run build
Checks and tests: npm run check, npm run test:web, npm run test:coverage:project. See also retrieval configuration and benchmarks and packaging and releases.
MIT. Published packages include the third-party licenses for their native components and dependencies.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。