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 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案