Related problems
agent-toolchain-coexist— Agent 工具链全家桶能一起装吗?(17 工具 57 对实测兼容清单)claude-json-multi-tool— 多个工具都写 ~/.claude.json,一起装会冲突吗?(实测兼容)code-review-graph-2— 名称混淆:juspay/code-review-graph-rescript 同名变体code-review-graph-3— 安装后「我的配置被改了」/ 与 omc、agt 疑似冲突code-review-graph-4— GitHub 直连慢/失败(依赖 GitHub 的场景)pip-mirror-source— pip 安装超时/下载慢(ReadTimeoutError / WARNING: Retrying ... Read timed out)
Member of combos (4)
combo-ai-code-review— AI 代码审查工作流(repomix + code-review-graph + swe-rex)combo-cicd-quality— CI/CD 质量门禁(swe-rex + deepcode + code-review-graph)combo-governance-stack— 开发链路治理栈(agent-governance-toolkit + code-review-graph + herdr)combo-memory-session— 单会话记忆治理栈(claude-mem + deepcode + code-review-graph)
No conflict-matrix pairs for this tool yet.
# Code Review Graph — Agent Guide
name: code-review-graph | version_range: 2.3.8~2.3.8 | generated: 2026-08-28
title_en: Code Review Graph - Local Code Knowledge Graph | desc_en: Lets AI review only the relevant code by building a local code knowledge graph.
Preflight
note: Requires Python >= 3.10.
python3 --version
预期输出: see command output
Install
note: Tsinghua mirror required in mainland China (PyPI official times out). Run operations inside the target repo.
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple code-review-graph==2.3.8
code-review-graph --version
预期输出: code-review-graph 2.3.8
Operations
Build the code graph
note: Full parse on first build is normal; SQLite stored in workspace .code-review-graph/.
code-review-graph build
预期输出: parse progress + stats (verified sample: Full build: 5 files, 9 nodes, 16 edges; workspace gets .code-review-graph/graph.db)
View graph stats
code-review-graph status
预期输出: node/edge/file stats (verified sample: Nodes: 9 / Edges: 16 / Files: 5 / Languages: javascript, python / Built at commit: ...)
Incremental update
note: Watch mode; background crg-daemon; Ctrl+C to exit.
code-review-graph watch
预期输出: Watching ... for changes... (Ctrl+C to stop) (verified: file change triggers incremental update in ~2s; node/edge counts rise)
Analyze change impact
note: Read-only; run after edits without rebuilding.
code-review-graph detect-changes
预期输出: JSON impact report (affected functions/files + risk_score fields)
Register MCP
note: Multi-platform registration.
code-review-graph install
预期输出: registers MCP server with detected platforms (writes ~/.claude.json, ~/.codex/hooks.json etc.)
Uninstall
note: Official uninstall subcommand cleans up completely (data/config/hooks/skills/MCP registration), then pip uninstall.
code-review-graph uninstall 2>/dev/null || true
pip uninstall -y code-review-graph
command -v code-review-graph >/dev/null 2>&1 && echo "残留: code-review-graph 仍存在" || echo "code-review-graph removed: OK"
预期输出: code-review-graph removed: OK
Facts
writes: ~/.claude.json (mcpServers), ~/.codex/hooks.json, ~/.cursor/mcp.json, ~/.config/opencode/plugins/crg-plugin.ts, workspace .claude/settings.json, .mcp.json, .code-review-graph/ | runtime: Python >= 3.10, pip | notes: build/status/detect-changes/watch verified 2026-08-30; background crg-daemon in watch mode; possible-conflict with ruflo/omc/agt (shared write surface, different keys); co-install not tested
Source: code-review-graph · validated 2026-08-28 · v2.3.8~2.3.8