dshbase

Plugin directory / Developer / dsh-document-parser

dsh-document-parser

Verified · install-tested on dsh miaobuao

✓ Actively maintained Builds on 3 official DSH packages Pure TypeScript

View on GitHub ↗ ← Back to plugin directory

1Stars
0Forks
0Open issues
TypeScriptLanguage
2026-08-15Last push
Cross-platformPlatform

What it does

A DeepSeek Harness document parsing tool powered by LiteParse

✅
Our take
Works — verified, early-stage project

A DeepSeek Harness document parsing tool powered by LiteParse It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

dsh-document-parser

A DeepSeek Harness Cordis bundle that registers the parse_document tool backed by LiteParse.

What it provides

The plugin lets an Agent parse a document in the current workspace into Markdown. It supports formats handled by LiteParse, including PDF, Office/OpenDocument files, and images.

The first version runs on the DSH Host side. It does not add a browser UI or a generic chat-attachment protocol.

Development

Requirements:

  • Node.js 18 or newer
  • pnpm
  • A DSH installation compatible with @deepseek-ai/dsh-* version 0.1.0-rc.6

Install and build:

pnpm install
pnpm run check

Quality checks run automatically through Lefthook on commit and push:

  • prettier --check validates staged formatting.
  • oxlint validates TypeScript source.
  • typecheck and build run before push.

The generated lib/ directory is ignored by Git and recreated by postinstall and build. It is included in the npm package through the files field, but should not be committed to source control.

Install into a local DSH profile

From the workspace where DSH should resolve document paths:

dsh plugin --profile web add file:/absolute/path/to/dsh-document-parser
dsh --profile web --dump-config
dsh web

The package declares a dsh.bundle entry, so DSH automatically adds its cordis.patch.yml layer after installation. For a headless profile, install it separately:

dsh plugin --profile headless add file:/absolute/path/to/dsh-document-parser

Agent usage

Ask the Agent to parse a file:

Parse docs/manual.pdf and summarize the main points.

Optional page selection is supported:

{
	"file_path": "docs/manual.pdf",
	"target_pages": "1-5"
}

Tool parameters

The parse_document tool accepts:

  • target_pages: optional 1-based selection such as 1-5,10.
  • ocr_enabled: whether to run OCR; defaults to true.
  • ocr_language: Tesseract language code such as eng or chi_sim.
  • output_format: markdown, text, or json; defaults to markdown.

DSH owns tool timeout, output retention, spill, and compaction policies. This plugin passes the requested parsing options to LiteParse without adding another plugin-level resource-limit configuration.

Office parsing may require LibreOffice on the host, as required by LiteParse.

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-document-parser for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:miaobuao/dsh-document-parser

Headless (CLI) profile:

dsh plugin --profile headless add github:miaobuao/dsh-document-parser

Test report

Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.

When to use it

Extend the agent's coding surface — give it a new tool, workflow, or integration so it handles a dev task it couldn't before.

Who it's for

Developers who want dsh to behave like a teammate on real codebases — editing, running, and verifying changes rather than just answering.

For developers — extending it

The tool/command surface is the seam: expose more of the SDK, add smarter context wiring, or tighten the loop between code changes and verification.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 7797 plugins →