jiangzhenguo/dsh-codegraph ↗★ 0
dsh-codegraph
CodeGraph for DSH — registers 13 native `codegraph_*` tools (status/init/index/sync/uninit/query/node/explore/files/callers/callees/impact/affected) wrapping the `codegraph` CLI, so the DSH agent can bootstrap, maintain, and query a pre-indexed code knowledge graph without grepping files.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jiangzhenguo/dsh-codegraph说明文档
阅读完整 README ↗使用流程
- 在项目目录开一个新的 DSH 会话(cwd = 项目根)。
- 让模型先跑
codegraph_status:未初始化 → 跑codegraph_init。 - 之后即可用
codegraph_query/codegraph_explore/codegraph_node/codegraph_callers/codegraph_callees/codegraph_impact查代码。 - 改动代码后用
codegraph_sync,需要跑测试时用codegraph_affected。
所有工具默认作用于调用方会话的 cwd;也可显式传 path 指向其他项目。