ICCuse/dsh-knowledge
Bridge the agent into the user global Markdown knowledge base (D:\knowledge, shared with the Codex kb.cmd CLI): kb_add/kb_search/kb_show/kb_timeline tools with byte-compatible frontmatter
已收录
1
Memory
Bundle 已验证
预览
功能介绍
全局知识库桥:kb_add/kb_search/kb_show/kb_timeline 读写与 Codex 共享的 D:\knowledge(格式逐字节兼容)。
适合
- 需要让 DSH 与 Codex kb.cmd CLI 共享全局 Markdown 知识库的用户。
- 需要确定性创建、搜索、展示分类笔记并记录时间线的工作流。
- 需要绕开 shell 编码转换、直接处理中文内容的工作流。
不适合
- 没有兼容 Markdown 知识库工作流,或尚未配置 kbRoot 的用户。
- 要求插件内部执行 ask、reflect、map 或 ingest 等重型读取操作的工作流;这些能力仍由配套 Python CLI 提供。
- 当前必须使用已发布 npm 包的用户;文档中的安装方式是直接从代码仓库安装。
README
@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).
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:ICCuse/dsh-knowledge。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。