DeepSeek Harness Plugin

Vvdollar0120/dsh-lens-reader

Stars ★ 1 Category Docs & Rendering Added 2026-11-27

Local document reader for DeepSeek Harness with PDF, Office, EPUB and Markdown support, selection actions, region questions, page screenshots and instruction-based editing.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:Vvdollar0120/dsh-lens-reader

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

A quiet, local-first document reader that lives inside DeepSeek Harness (DSH): the document on the left, an AI rail on the right.

Select a sentence to translate, explain or summarize it; drag a rectangle to ask the model about a figure; quote passages into the conversation; edit Markdown/text in place and write it back.

Formats

Format Read Edit
PDF Continuous scroll, selectable text layer, page progress, zoom —
DOCX / DOC / XLSX / XLS / PPTX / PPT / ODT / ODS / ODP / RTF Rendered through the LibreOffice bundle shipped with DSH, so fonts, tables and layout are preserved; first conversion takes ~10–60 s, then cached. PPTX that the engine rejects falls back to slide-by-slide text with a notice —
EPUB Rendered in spine order —
Markdown Rendered reading view + source editing ✅
HTML Sandboxed render —
Plain text / code / CSV / JSON Monospace, UTF-8/GBK/Big5/Shift-JIS detection ✅
Images Original image —

Features

  • Read with the AI in context. The active document, its outline and the page you are looking at are injected into the conversation; long documents are read in full when the model window allows it, or summarized section by section when it does not.
  • Selection actions. Translate / Explain / Summarize / Copy / Quote, plus persistent highlights and a notes drawer (stored on disk, survive panel remounts).
  • Region questions. Draw a box on a PDF page or image and send the cropped screenshot to a vision-capable model.
  • Page screenshots when needed. For questions about figures or tables, Lens renders the best-matching page and sends it along, so text baked into images is not lost.
  • Instruction-based editing. For Markdown and plain text: edit in the reader, ⌘/Ctrl+S to save with conflict detection and a .lensbak backup, or ask the AI to rewrite a selected passage.
  • Optional web search. The “Web” toggle means allowed, not always: document-only tasks stay local; explicit requests or external facts trigger a search with model-generated queries and clickable sources.
  • Files stay local. Parsing and conversion run on your machine; only the model requests you trigger leave it.

Install

From source (recommended while unlisted)

git clone https://github.com/<owner>/dsh-lens-reader.git
cd dsh-lens-reader
pnpm install --ignore-scripts   # or let the installer resolve deps

Then, in DSH, ask the agent to install the folder:

Use plugin_manager with install_bundle, target <absolute path to dsh-lens-reader>.

Or from a terminal:

dsh plugin --profile desktop add <absolute path to dsh-lens-reader>

Reload the page (⌘R / Ctrl+R). A book icon named Lens Reader appears in the sidebar.

Requirements

  • DSH Desktop 0.2.2 or newer.
  • A configured model provider (DeepSeek Account or DeepSeek official).
  • Web search is optional and uses DSH's built-in web_search.
  • Office rendering uses the LibreOffice component bundled with DSH — no Office/WPS install needed.

Usage

  • Sidebar book icon, or ⌘/Ctrl+Shift+L.
  • Drag a file onto the panel, or paste an absolute path.
  • Select text for the floating toolbar; drag a region via the Region button.
  • Quotes and pasted screenshots queue above the composer and are sent together with your question.
  • “My Notes” lists highlights; clicking one jumps to the page without closing the drawer.

Privacy

Documents are parsed locally. The plugin sends to your configured model only: the document text needed for the current question, page screenshots you select or that match your question, and — when web search is used — the generated queries. API keys stay in DSH.

License

MIT. Bundled third-party assets keep their own licenses; see vendor/LICENSE-pdfjs.txt.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.