dsh-library
Turns local markdown and text documents into a queryable knowledge base with hybrid semantic and keyword search, citation verification, and source injection.
Install
dsh plugin --profile web add dsh-library
Sandbox test results
| Stage | Result |
|---|---|
| 1 install | ✓ |
| 2 list | ✓ |
| 3 mount | ✓ |
| 4 boot | — |
Four stages run in an isolated sandbox: install (network on) → list → mount → boot (last three with no network).
README
<div align="center">
📚 dsh-library
- 1024 store channel:
npm i -g dsh1024once, thendsh1024 plugin --profile web add dsh-library(counts toward the deepseek1024.com install ranking).



Local document knowledge base for DeepSeek Harness.
Import, retrieve, verify — hybrid search with citations your agent can check.









[English](README.md) · [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
dsh plugin --profile <name> add dsh-library
</div>
📖 Ecosystem knowledge base — measured data, not marketing: plugin development guide · plugin-selection data · maintenance criteria.
<!-- star-cta -->
Install & uninstall
- git channel (latest
main):dsh plugin --profile web add github:PerryLink/dsh-library— thepreparescript builds with production dependencies only. - npm channel (published releases):
dsh plugin --profile web add dsh-library. - tarball channel:
pnpm packin this repo, thendsh plugin --profile web add ./dsh-library-<version>.tgz. - uninstall:
dsh plugin --profile web remove dsh-library(or remove the row from the profile patch).
If pnpm reportsERR_PNPM_IGNORED_BUILDSfor this package (esbuild's harmless platform-binary validation), addallowBuilds: { esbuild: true }to yourpnpm-workspace.yaml— thedshCLI prints the exact snippet.
⭐ 如果它帮到了你
这个插件是 DSH 插件家族的一员(95 个,全部 Apache-2.0)。如果你在用,给个 star —— 它不会解锁任何功能,但会让下一个人在搜索里更容易找到它。
English: part of a 95 plugin family for DeepSeek Harness. If it is useful, a star helps the next person find it — nothing is gated behind it.
What is dsh-library?
Local document knowledge base for DeepSeek Harness.
Import, retrieve, verify — hybrid search with citations your agent can check.
Workflow overview: install → open panel → act. The examples below use the real command surface.
Compatibility
Surface · Status
Harness · DeepSeek Harness dsh-v0.2.1-alpha.1 (verified 2026-09-25: dual typecheck rulers + 89 tests + self-contained/artifacts gates; peer range >=0.1.2-rc.1 <0.2.0 \ · \ · >=0.1.5-alpha.1 <0.2.0 \ · \ · >=0.1.6-0 <0.2.0 \ · \ · >=0.1.7-0 <0.2.0). Home of the family's only exercised alpha.2 host smoke (2026-09-11).
Node · ^22.19.0 \ · \ · >=24.0.0
Storage · Any storage-domain backend (JSON or SQLite); the index lives in the host's storage domain
Models · None required — the built-in embedder is deterministic hashing (zero downloads)
What you get
dsh-library turns local md/txt documents into a queryable knowledge base with a quality pipeline your agent can trust:
library_add/library_remove/library_list— import a document by path (chunked and embedded), remove one with purge verification (signatures of the removed content are probed against the remaining index and any residue is reported), and list document metadata.library_search— hybrid semantic + keyword ranking, maximal-marginal-relevance diversity re-rank, relevance filtering, and lost-in-the-middle avoidance (strongest chunks pinned to head and tail). Withinject: truethe result page is injected into the calling agent; every hit carries a[n]source marker and the injection is reconstructable from thelibrary/injectsession event (host-gated; see Permissions & data).library_cite_check— verify the[n]citations in an answer against the search result page with a fuzzy token match AND a semantic similarity check.library_diagnose— chunk-size histogram, near-duplicate chunk pairs, a self-retrieval probe, and the middle-penalty signal./library— one-line index summaries per library.
document ── library_add ─▶ chunk (sliding window) ─▶ embed (hash / external cmd)
│
storage domain (documents / chunks / purges)
│
query ── library_search ─▶ hybrid score ─▶ MMR re-rank ─▶ relevance filter
│ ─▶ lost-in-middle order
▼
…(truncated)Rendered from the README published on npm. Formatted only, not edited.
Versions
Published on npm::30,最后更新 2026-11-05