DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-knowledge-base

Knowledge Base

适用于 DeepSeek Harness (DSH) 的通用知识库插件:导入文档(md/txt/json/yml/docx/pdf)、按文件夹整理,并使用 FTS5 进行搜索。通用知识库插件:文件导入、目录化管理、全文检索、知识库管理界面。

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-knowledge-base@0.1.5
README兼容性版本

兼容性与来源证明

Knowledge Base 以 dsh-knowledge-base 发布,当前版本为 0.1.5。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.1.5stable
2026/8/16
0.1.4stable
2026/8/16
0.1.3stable
2026/8/16
查看其余 3 个版本收起版本
0.1.2stable
2026/8/16
0.1.1stable
2026/8/16
0.1.0stable
2026/8/16

相关插件

正在加载相关插件…

最新版
0.1.5
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
1.4 MB
文件数
47
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 6
周下载
527
安全扫描
✓ v0.1.5 扫描通过
最近提交
2026/8/16
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Ds Harness Remoteds-harness-remote通过桌面端、网页端和 Android 端,端到端加密远程访问 DeepSeek Harness 和实验性 Codex 工作区,并支持 dsh-TUI Host。Archive Manager@michengai/dsh-archive-manager归档、恢复、收藏和永久删除会话,并诊断损坏的会话日志。Scriptor@linfengqaqtat/dsh-scriptorWebnovel Writer:DSH 长篇网文写作工作台Mattpocock Skills Deckdsh-mattpocock-skills-deck🌹安装即自带mattpocock/skills v1.3.2的27个工程与效率技能,无需手动装技能。520亿token打造本插件,在原始技能之上提供10倍的开发效率,也能帮助新手更快上手该技能套件。支持 GitHub 与 GitLab 的 issue;本地 Markdown 为预览版。感谢您的使用和支持💗

README

🐳 dsh-knowledge-base

A general-purpose knowledge base plugin for DeepSeek Harness (DSH)

Import documents · organize in folders · full-text search · manage in the Web UI

English · 简体中文 · Español · 日本語


dsh-knowledge-base turns documents into a searchable knowledge base for DeepSeek Harness agents. Drop in a PDF, Word, or Markdown file — it is parsed, chunked by section, and instantly searchable by your agent with FTS5 (BM25) ranked retrieval. A built-in Web UI lets you manage the knowledge base like a file manager: create/rename/delete folders, move files, and browse content.

✨ Features

  • 📥 Import anything — md / txt / json / yml / docx / pdf, no size limit; PDF is parsed in-process with pdfjs-dist (cross-platform, zero system dependencies)
  • 🔪 Auto-chunking — documents are split by headings/paragraphs; adjacent small chunks are merged to reduce fragmentation
  • 🔁 Upsert — re-importing the same file overwrites it; no duplicate accumulation
  • 🗂 Folder management — categories are folders: create / rename / delete (empty) / move files, like an OS file manager
  • 🔍 FTS5 full-text search — SQLite FTS5 (trigram tokenizer, no Chinese segmentation needed) + BM25 relevance ranking; falls back to LIKE for short queries or anomalies
  • 🤖 Agent-native tools — kb_query / kb_import / kb_list / kb_update / kb_delete, usable directly by the model in conversation
  • 🖥 Web management UI — a "Knowledge Base" tab in the conversation view: drag-and-drop import, directory browsing, category management, search
  • ⚙️ Configurable categories — no preset categories by default (fits any domain); create folders at runtime from the UI

🚀 Install

dsh plugin --profile web add dsh-knowledge-base

Dependencies: DeepSeek Harness (dsh) provides the @deepseek-ai/* runtime; Node ≥ 22.5 (built-in node:sqlite).

🏃 Quick Start

Via the Web UI (recommended)

  1. Start dsh Web: dsh web (or dsh --profile web)
  2. Open your browser, create a session, and switch to the Knowledge Base tab at the top of the session view
  3. Drag and drop files to import → auto-chunked → browse / rename / move in the directory view
  4. Ask your agent in chat: "Use kb_query to search for ISO9001"

Via agent tools (headless / any profile)

import:  Use kb_import to import /path/to/manual.pdf, category "Documents", tags ["manual"]
search:  Use kb_query to search for "transformer"
list:    Use kb_list / kb_list category=Documents
update:  Use kb_update to change id=3's category to "Documents"
delete:  Use kb_delete to delete id=3

⚙️ Configuration

# In the profile's cordis.patch.yml or when installing the bundle
# No categories are preset (fits any domain); entries without a category go to "Uncategorized".
# You can also create folders directly in the UI (persisted, no config edit needed).
- id: knowledge-base
  name: 'dsh-knowledge-base'
  config:
    categories:            # configure as needed, e.g.:
      - Documents
      - Manuals

🗂 Web API (for the UI and third-party integrations)

MethodPathPurpose
POST/api/kb/importUpload a file (base64 JSON) → parse, chunk, store
GET/api/kb/listList entries and categories
GET/api/kb/search?q=Full-text search (FTS5 + BM25)
POST/api/kb/updateUpdate an entry's category/tags
POST/api/kb/rename-categoryRename a category
POST/api/kb/create-categoryCreate a folder (persisted)
POST/api/kb/delete-categoryDelete an empty folder
POST/api/kb/move-fileMove a file (change category)
POST/api/kb/rename-fileRename a file
POST/api/kb/delete-fileDelete an entire file
POST/api/kb/delete-entryDelete a single entry

🏗 Architecture

dsh-knowledge-base (one npm package, three plugin rows)
├── dsh-knowledge-base          host tools: kb_query / kb_import / kb_list / kb_update / kb_delete
├── dsh-knowledge-base/web      Web endpoints: /api/kb/* (web composition only)
└── (client half)               "Knowledge Base" conversation view tab + directory browser UI

Data storage (default):

$DSH_HOME/knowledge-base/kb.sqlite    # entries + FTS5 index + meta (dynamic categories)
$DSH_HOME/knowledge-base/inbox/       # upload temp dir (cleaned up after import)

Tables: kb(id, category, name, summary, payload, tags, source, updated_at) + kb_fts (FTS5 external-content table) + meta (dynamic categories).

🔧 Development

npm run build                     # tsc type-check + tsdown bundle (host half + client bundle)

# Local verification (use a workspace-local test home, never touch ~/.dsh)
DSH_HOME=$PWD/.dsh-home DSH_TELEMETRY_DISABLED=1 \
  dsh --profile headless --patch dev-headless.cordis.yml \
  "Use kb_import to import /tmp/test.md, then kb_query to search for 'keyword'"

The standalone repo ships dev.cordis.yml / dev-headless.cordis.yml for local verification. During development the @deepseek-ai/* dependencies are symlinked from an official checkout via scripts/link-official-deps.mjs — see AGENTS.md → "Dependencies".

🗺 Roadmap

  • File import (md/txt/json/yml/docx/pdf)
  • Folder management (create/rename/delete/move)
  • FTS5 full-text search (BM25 + Chinese trigram)
  • Knowledge base management Web UI
  • AI auto-classification (direct ctx.llm structured calls on import)
  • Entry detail view/edit
  • OCR (scanned PDFs)
  • Better Chinese tokenization (custom tokenizer instead of trigram)

🤝 Contributing

PRs welcome! Please read AGENTS.md (agent development guide) first. Before submitting:

  1. npm run build passes
  2. The headless tool chain is self-tested
  3. No local data is committed (.dsh-home/, .test-workspace/, etc. — see .gitignore)

📄 License

MIT © dsh-knowledge-base contributors

🔗 Related

  • DeepSeek Harness — Everything is a Plugin
  • awesome-dsh-plugin — curated community plugin list
  • pdfjs-dist — PDF parsing engine