jiangzhenguo/dsh-codegraph0

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.

包名
dsh-codegraph
版本
1.0.0
许可证
MIT
最近更新
2026年8月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jiangzhenguo/dsh-codegraph

使用流程

  1. 在项目目录开一个新的 DSH 会话(cwd = 项目根)。
  2. 让模型先跑 codegraph_status:未初始化 → 跑 codegraph_init
  3. 之后即可用 codegraph_query / codegraph_explore / codegraph_node / codegraph_callers / codegraph_callees / codegraph_impact 查代码。
  4. 改动代码后用 codegraph_sync,需要跑测试时用 codegraph_affected

所有工具默认作用于调用方会话的 cwd;也可显式传 path 指向其他项目。