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.

AI Analysis

核心用途是辅助智能体高效理解大型代码库。适合需要让智能体在复杂项目中进行代码导航、调用链分析和影响面评估的开发者。需安装 CLI 依赖。

Package
dsh-codegraph
Version
1.0.0
License
MIT
Last updated
Aug 18, 2026

Install

$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 指向其他项目。