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.

AI Analysis

核心用途是帮助用户和 AI 快速理清大型项目架构。适合面对陌生代码库的开发者,AI 可调用其工具获取图谱 JSON 以提供更精准的代码分析。

Package
dsh-kgraph-plugin
Version
0.3.0
License
MIT
Last updated
Aug 16, 2026

Install

$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,与面板共享同一份扫描缓存。