DeepSHPlugins
dsh-knowledge 项目预览
GITHUB / COMMUNITY PROJECT

dsh-knowledge

记忆与知识TypeScriptMIT

全局知识库桥:kb_add/kb_search/kb_show/kb_timeline 读写与 Codex 共享的 D:\knowledge(格式逐字节兼容)。

1 StarsICCuse 更新时间 2026-08-14
访问 GitHub 仓库
dsh-knowledge 项目预览

项目介绍

中文

全局知识库桥:kb_add/kb_search/kb_show/kb_timeline 读写与 Codex 共享的 D:\knowledge(格式逐字节兼容)。

English

Bridge 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.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
ICCuse
仓库
ICCuse/dsh-knowledge
GitHub Stars
1
Forks
0
开发语言
TypeScript
许可证
MIT
最近推送
2026-08-14
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

50/ 100
维护活跃
81
文档与实用信息
74
生态关注度
9
安装便捷信号
100
项目声明信号
85

关注度尚低(1);标准命令一键安装。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:ICCuse/dsh-knowledge

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

@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

ToolBehavior
kb_addWrite 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_searchKeyword scan over notes (title > tags > content), returns path/title/type + snippet.
kb_showLocate a note by title/path/tag and return its full text.
kb_timelineAppend 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

FieldDefaultMeaning
kbRootD:\knowledgeKnowledge base root.
maxSearchResults8Search result cap.

Companion discipline: the knowledge-writeback skill (writeback three questions + retrieval protocol + causal-paradigm worldview).

Notes on compatibility

  • slugify replicates kb/ingest.py: NFKC normalize, collapse chars outside [\w\u4e00-\u9fff], 60-char cap, untitled fallback.
  • unique_path replicates stem.md → stem-2.md dedup.
  • Frontmatter is emitted as quoted-YAML scalars and flow arrays, readable by python-frontmatter. If kb/frontmatter.py changes, 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).

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目