dsh-knowledge
Manifest validBridge into a global Markdown knowledge base shared with the Codex kb.cmd CLI: kb_add/kb_search/kb_show/kb_timeline tools with byte-compatible frontmatter.
@deepseek-ai/dsh-knowledge
中文 | English
Bridge the agent into the user's global knowledge base at D:\knowledge — the same Markdown + YAML frontmatter library the Codex kb.cmd CLI writes. Knowledge accumulated by either tool is visible to both: one library, two agents.
Tools
| Tool | Behavior |
|---|---|
kb_add | Write one typed note (lesson/pattern/preference/project/reference/concept/moc/decision/note), byte-compatible with the Python CLI: slugified unique filename, typed directory, YAML frontmatter (title/type/tags/aliases/status/created/updated + project/domain). |
kb_search | Keyword scan over notes (title > tags > content), returns path/title/type + snippet. |
kb_show | Locate a note by title/path/tag and return its full text. |
kb_timeline | Append a timestamped line to notes/99_时间线.md — mandatory after every writeback ("失联等于白写"). |
The heavy read side (ask/reflect/map/ingest) stays on the Python CLI; this package owns the deterministic write + quick-read surface so no shell encoding ever touches your Chinese content.
Config
| Field | Default | Meaning |
|---|---|---|
kbRoot | D:\knowledge | Knowledge base root. |
maxSearchResults | 8 | Search result cap. |
Companion discipline: the knowledge-writeback skill (writeback three questions + retrieval protocol + causal-paradigm worldview).
Notes on compatibility
slugifyreplicateskb/ingest.py: NFKC normalize, collapse chars outside[\w\u4e00-\u9fff], 60-char cap,untitledfallback.unique_pathreplicatesstem.md→stem-2.mddedup.- Frontmatter is emitted as quoted-YAML scalars and flow arrays, readable by python-frontmatter. If
kb/frontmatter.pychanges, update this package to match.
Install
Not on npm yet - install from this repository:
npm install github:ICCuse/dsh-knowledge
# or: pnpm add github:ICCuse/dsh-knowledge
Then mount the bundle (declared in package.json 'dsh.bundle') and point it at your knowledge base:
- id: knowledge
name: 'dsh-knowledge'
config:
kbRoot: 'D:\knowledge'
Companion discipline: the 'knowledge-writeback' skill (writeback three questions + retrieval protocol).
Comments
Loading…
Similar plugins
Knowledge base (Vault memory + knowledge graph) for dsh: kb__* tools for deterministic memory search/write, knowledge-graph nodes/edges/subgraph/traversal, document-to-graph ingestion and unified cros
★ 0
dsh plugin --profile web add axiom-kb-dshby fangqiing
本地知识库插件 for DeepSeek Harness:每篇一个 Markdown,支持全文搜索、标签、层级目录、附件与 Office 零依赖抽取
★ 1
MIT
JavaScript
Oct 22, 2026
dsh plugin --profile web add dsh-knowledge-liteLocal knowledge base manager for DSH agents: multi-format import, CJK-aware chunking, sqlite-vec vector + BM25 hybrid search with bge-reranker-base rerank, snapshots, kbpack export/import and cross-KB
★ 0
dsh plugin --profile web add dsh-kb-managerby omdsh-dev
DSH knowledge-base plugin: build audit-able KB packs (references + SQLite FTS5) from md/txt/docx/pdf, deterministic retrieval (kb_query) and original-text reading (kb_read), zero-script generated skil
★ 3
Apache-2.0
TypeScript
Aug 12, 2026
dsh plugin --profile web add @dsh-external/dsh-kb-sieveGeneral-purpose knowledge base for DSH: import md/txt/json/yml/docx/pdf, folder management, FTS5 full-text search (BM25), and a Web management UI.
★ 0
↓ 210/wk
dsh plugin --profile web add dsh-knowledge-baseby wu81313-lab
DSH local-folder knowledge base: manual-sync SQLite FTS5 index, Chinese hybrid retrieval (BM25 + CJK bigram + trigram, RRF), explicit-invocation gate, and a Web panel.
★ 0
MIT
JavaScript
Sep 29, 2026
dsh plugin --profile web add dsh-company-kb