lzhphantom/kgraph-plugin0

dsh-kgraph-plugin

DSH bundle (组合包): read-only project knowledge graph — modules, tech stack, architecture layers, file-level import graphs, observations. Provides /kgraph command, project_kgraph model tool and a browser UI panel.

包名
dsh-kgraph-plugin
版本
0.3.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lzhphantom/kgraph-plugin

🚀 使用

安装启动后,页面右下角出现「项目知识图谱」浮动面板:

  1. 输入项目路径(如 X:/xxx/xxx)→ 点「扫描」
  2. 总览:模块卡片、技术栈、模块依赖图、架构观察
  3. 点击模块进入文件级分层图谱(controller → service → mapper → …),点击节点查看代码详情
  4. 大型图谱用 全屏浏览, 折叠面板

Agent 侧可调用 project_kgraph 工具({ "path": "X:/xxx/xxx" })获取完整图谱 JSON,与面板共享同一份扫描缓存。