Luke-Yong/dsh-plugin-knowledge-graph ↗★ 4

dsh-plugin-knowledge-graph

提供基于代码库知识图谱的图谱查询工具 适合需要让Agent分析和查询代码库依赖、导出导入关系的开发者。

包名
dsh-plugin-knowledge-graph
兼容性
待验证
Harness 依赖范围
*
Cordis 依赖范围
*
版本
0.2.1
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Luke-Yong/dsh-plugin-knowledge-graph

Usage

The plugin registers a single tool, read_graph, on ctx.tools. Its parameters:

ParameterTypeRequiredDescription
querystringyesQuery string in form
rootstringnoAbsolute workspace root to graph. Defaults to process.cwd()

Root hygiene: the root default (process.cwd()) may be a parent directory containing several independent projects. Always pass an explicit root pointing at the single workspace you are working in, so structure doesn't descend into sibling trees.

Example queries:

exports src/index.ts
exporters_of buildKnowledgeGraph
imports_of src/query.ts
dependents src/knowledgeGraph.ts
unused_imports app.py
structure