Luke-Yong/dsh-plugin-knowledge-graph ↗★ 4
dsh-plugin-knowledge-graph
提供基于代码库知识图谱的图谱查询工具 适合需要让Agent分析和查询代码库依赖、导出导入关系的开发者。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Luke-Yong/dsh-plugin-knowledge-graph說明文件
閱讀完整 README ↗Usage
The plugin registers a single tool, read_graph, on ctx.tools. Its parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | yes | Query string in form |
root | string | no | Absolute workspace root to graph. Defaults to process.cwd() |
Root hygiene: the
rootdefault (process.cwd()) may be a parent directory containing several independent projects. Always pass an explicitrootpointing at the single workspace you are working in, sostructuredoesn'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