Community plugin

youyang145 / dsh-plugin-local-kb

DeepSeek Harness 插件:把本地经验库接进 DSH——七个工具、每轮索引注入、右下角挂件、MCP。骨架见 local-experience-kb。

  • JavaScript
  • Apache-2.0
  • 1 stars
  • Nov 21, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-plugin-local-kb is a DSH plugin published from the youyang145/dsh-plugin-local-kb repository.

  • Listing statusManifest verified
  • Manifest checkedNov 20, 2026
  • Packagedsh-plugin-local-kb
  • Package version0.16.2
  • Source commit1573a7e
  • Repository createdNov 7, 2026

Capabilities and topics

deepseek-harnessdshknowledge-baselocal-first
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

Cached versionView on GitHub

DSH 适配器 · dsh-plugin-local-kb

骨架(设计与规范):youyang145/local-experience-kb 参考实现(核心库 + 面板):youyang145/local-experience-kb-mvp 本目录是它的 DeepSeek Harness 宿主适配器:把库接进 DSH 的工具、系统提示和右下角挂件。

它做了什么

能力说明
6 个工具kb_consult / kb_index / kb_read / kb_stage / kb_record / kb_recommend
每轮索引systemPrompt.section 注入分区目录与召回规则,压缩不会盖掉
右下角挂件K 按钮 → 可拖动/缩放的面板小窗;待拍板入口
面板服务懒启动 7788,不随 DSH 启动占端口
MCP面板里的开关,POST /mcp,四个工具 + 连接编号 + 留痕

工具边界

工具干什么写不写库
kb_consult先判要不要查(闲聊跳过),返回索引摘要 + 命中简介 + 反例警示不写
kb_index只看分区目录不写
kb_read按 id 读正文,最多 3 条不写
kb_stage材料分块放进「待分区」收件箱,最多 5 块只写收件箱
kb_record套用/复现记账(used / succeeded / occurrences)只改计数
kb_recommend建议转正/推翻,必须带理由只进「待拍板」,人决定

安装

直接装这个仓库:

dsh plugin --profile <你的 profile> add "https://github.com/youyang145/dsh-plugin-local-kb.git" --ignore-workspace-root-check

或者本地目录:

dsh plugin --profile <你的 profile> add "<仓库>\dsh-plugin" `
  --ignore-workspace-root-check `
  --store-dir "<可写目录>"
  • --store-dir 指向可写目录,否则 pnpm 写默认 store 会报错;
  • 装完 dsh --profile <你的 profile> --dump-config 里能看到 id: local-kb;
  • 重启 DSH 生效。

配置

cordis.patch.yml 只需要一个 home(库根目录,含 index.db):

- insert:
    - id: local-kb
      name: 'dsh-plugin-local-kb'
      config:
        home: 'F:\path\to\kb-data'

本地验证

node harness.mjs     # 假 ctx,跑六个工具

打包

npm pack             # files 已包含 lib/**、lib/web/**、widget.js

lib/kb 是核心库的打包副本,随插件发布同步一次;不是第二套维护。

限制

  • 面板仍是独立进程(7788),懒启动;
  • 自动索引只到"目录 + 召回规则",正文要用 kb_read 按需读;
  • 主库写入只由人在面板操作,工具没有直接写主库的权限。

许可

代码 Apache-2.0;设计文档与手稿在骨架仓库,CC BY 4.0。

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/youyang145/dsh-plugin-local-kb)