DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Rag — DeepSeek Harness 插件(DSH Plugin)
← Plugins
R

@kai232/dsh-rag

Rag

为 DeepSeek Harness Web 提供明确且有来源支持的本地知识库检索。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:imkelt/DSH-RAG#f22d649f5d4f739f4e8615a2dfd80280431712c2
README兼容性版本

兼容性与来源证明

Rag 以 @kai232/dsh-rag 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/8/24

版本

0.1.2stable
2026/8/24

相关插件

正在加载相关插件…

最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 3
周下载
0
最近提交
2026/8/26
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。

README

DSH-RAG

English | 简体中文

DSH-RAG is a local knowledge-base plugin for DeepSeek Harness Web. It turns explicitly authorized folders into named, incrementally synchronized knowledge bases. When you run /rag <question>, it retrieves evidence before the model answers and shows verifiable sources with excerpts, exact locations, and open-file actions. Regular chat never accesses local documents.

Features

  • Build multiple named knowledge bases from one or more explicitly authorized local folders.
  • Reuse named knowledge bases across projects and Sessions; each knowledge base may contain one or more explicitly authorized folders.
  • Limit retrieval to the knowledge bases selected for the current Session, or use one or more optional @knowledge-base selectors for a single-turn override. Regular messages never search or inject local documents.
  • Retrieve evidence before the model answers, then show collapsible source cards with the knowledge base, file, excerpt, exact page, slide, paragraph, or line reference, and a Host-validated action to open the original file.
  • Parse PDF, DOCX, PPTX, Markdown, and UTF-8 text files, with incremental indexing, cancellation, file-level checkpoints, watcher debouncing, and recovery scans.
  • Continue searching offline with local multilingual BM25; optionally enable SiliconFlow embeddings, local vectors, RRF, and reranking for hybrid retrieval.
  • Follow the DeepSeek Harness language and light/dark appearance settings with an English and Chinese UI.

Requirements

  • Node.js ^22.19.0 or >=24.0.0
  • pnpm available on PATH (dsh plugin uses pnpm to manage profile packages)
  • DeepSeek Harness: tested with 0.1.1-rc.2

DeepSeek Harness is currently a developer preview. 0.1.1-rc.2 is the version DSH-RAG has verified through package installation, startup, and removal checks; it does not mean the plugin can run only on that version. Other DSH versions may work, but are not claimed as compatible until they pass the same checks.

Install and Start

Choose one of the following methods. Both install DSH-RAG into the same web profile, so you do not need to run both.

Method 1: Run DSH with npx

Use this method if you have not installed the dsh command. Run the following commands from any directory:

npx @deepseek-ai/dsh plugin --profile web add @kai232/dsh-rag
npx @deepseek-ai/dsh web

Keep the second command running, then open the Web address printed in the terminal.

Method 2: Use an existing DSH installation

If dsh --version works in your terminal, no directory change is required:

dsh plugin --profile web add @kai232/dsh-rag
dsh web

If you prefer to run DSH from source, clone the repository and use its pnpm dsh script:

git clone https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness
pnpm install
pnpm run build
pnpm dsh plugin --profile web add @kai232/dsh-rag
pnpm dsh web

If you already have a local checkout, skip git clone, enter its root directory, and continue with pnpm install. The pnpm run build step prepares the source artifacts used by pnpm dsh web.

To update DSH-RAG, stop the running Web process, repeat the corresponding plugin add command, and start Web again.

Set Up a Knowledge Base

  1. Open Settings → Knowledge.
  2. Review the SiliconFlow endpoint and the Embedding and Reranker model names.
  3. Enter a SiliconFlow API key and save it to the operating-system credential vault. If the vault is unavailable, set SILICONFLOW_API_KEY before starting DSH; the plugin never falls back to a plaintext key file. Connection status is checked automatically, and Retry appears only after a failure.
  4. Create a knowledge base in Settings. Enter only folders you explicitly authorize.
  5. Select Sync and wait for indexing to finish.
  6. In the conversation Knowledge panel, choose which knowledge bases the Session may search. For a one-turn override, type /rag and choose one knowledge base in the first command menu.

Knowledge-base names and file names are user data and are not translated when the interface language changes.

Use

Command format:

/rag <question>

Typing /rag shows the command and one-turn variants for each knowledge base in the first menu. After entering the command, /rag @ also shows knowledge bases above the general file, folder, and Session candidates; choosing one inserts its plain-text selector. Knowledge bases never appear in unrelated @ menus or after the question has started. Pressing Space without choosing starts a question that uses the saved Session scope. Running /rag alone shows knowledge-base statistics and usage without calling the model.

Run an explicit retrieval turn using the knowledge bases selected for the current Session:

/rag What does the project note say about the launch window?

The plugin completes retrieval before it asks the model to answer, so retrieval never depends on whether the model chooses to call a tool. The command searches only the knowledge bases selected for the current Session. If none are selected, it stops with guidance instead of searching every knowledge base.

To override the scope for one turn, select a knowledge base from the first /rag command menu. The plugin inserts the shortest unambiguous selector automatically without changing the saved Session selection:

/rag @"Project notes" Which Python version does the virtual environment use?

Names without whitespace use the shorter form, such as /rag @Notes <question>; quoted selectors remain available for names with spaces. The next regular message returns to zero retrieval.

Results identify the knowledge base, file, structural context, excerpt, and exact source location. The open action accepts an opaque source ID; the Host resolves and validates the path again before asking the operating system to open it.

Retrieval and Offline Behavior

With SiliconFlow configured, the first cloud vector index sends every text chunk extracted from the authorized documents. Later syncs send only new or changed chunks for Embedding. Each explicit query sends the query and a limited candidate set for Reranking. Original PDF, Word, or PowerPoint files are not uploaded, but their extracted text is sent to SiliconFlow.

If SiliconFlow or the network is unavailable, DSH-RAG reports the fallback and continues with local BM25. Existing local indexes remain available. The v0.1 release does not expose AI-generated document or section context because that experiment did not improve the frozen retrieval evaluation.

Local Data and Deletion

Derived data is stored under $DSH_HOME/dsh-rag/ by default, independent of the directory where DSH is started. Settings → Knowledge → Data location shows and opens the actual folder. Set DSH_RAG_DATA_DIR to an absolute path before starting DSH only when you need a custom location.

When the default location is empty and legacy data exists in the old launch-directory .dsh-rag folder, the plugin copies, validates, and promotes it without deleting the old folder. If both locations contain data, it leaves both unchanged and reports the conflict instead of merging automatically.

The Delete knowledge base action uses a second confirmation and removes only the knowledge-base settings and reproducible catalogs, checkpoints, and indexes. It never modifies or deletes files in the authorized source folders.

To back up derived data, stop DSH and copy the complete data directory. Indexes are reproducible and can be rebuilt from the original folders.

Security and Privacy

  • Authorized paths are normalized and checked with realpath; symbolic-link, junction, UNC, and path-escape cases are rejected.
  • Hidden files, common credential files, executables, active Office content, embedded objects, and unsafe archive expansion are excluded.
  • Document text is treated as untrusted data, never as an Agent instruction.
  • API keys are not written to project settings, logs, Sessions, browser storage, indexes, or API responses.
  • Persistent keys use Windows Credential Manager, macOS Keychain, or Linux Secret Service. There is no plaintext credential-file fallback.

License

MIT