Hnqhj/dsh-library ↗★ 1

dsh-library

资料库 —— DeepSeek Harness 的本地产出资料库:把每次对话与每个项目的产出收进一个可浏览、可检索、可整理的本地库,并开放给助手引用。 适合需要归档、检索本地对话产出,并允许助手引用历史资料的用户。

Package
dsh-library
Compatibility
Unverified
Version
0.2.0
License
MIT
Last updated
Oct 2, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hnqhj/dsh-library

配置

cordis.patch.yml 里按行 id 覆盖(全部字段都有默认值,不配也能跑):

- id: library
  name: dsh-library
  config:
    root: 'D:/dsh-library-data'   # '' = 退回 /library
    includeHidden: false
    maxDepth: 8
    maxFiles: 20000
    pageSize: 60
    cacheMs: 1500            # 扫描缓存毫秒数;写操作会立刻作废缓存,要绝对实时就设 0
    maxUploadBytes: 67108864  # 单次入库上限(64 MB)
    allowAgentSave: true     # 助手可把新产出存进库
    allowAgentModify: false  # 助手不可改动 / 移动 / 删除已有资料

库根解析顺序:显式配置 → 出厂默认(lib/config.js 的 LIBRARY_DEFAULTS.root)→ 显式 '' 退回 /library。 出厂默认刻意写死一个非系统盘路径:库根放错会静默留在 C 盘上,等用户发现时已经积了几 GB —— 把默认值与补丁层设成同一处,堵掉这个失败模式。换机器时两处一起改。