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.
AI 分析
核心用途是辅助智能体高效理解大型代码库。适合需要让智能体在复杂项目中进行代码导航、调用链分析和影响面评估的开发者。需安装 CLI 依赖。
インストール
$
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 指向其他项目。