登录 注册

code-review-graph

去点 Star
开发者工具AI 应用与 AI Agent自动化与工作流
32,712
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
Python
语言
创建时间
最近更新

项目能做什么

面向 MCP 和 CLI 的本地优先代码智能图谱,构建持久化代码地图以缩减 AI 编码工具上下文。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<h1 align="center">code-review-graph</h1>

<p align="center">
  <a href="https://trendshift.io/repositories/23329?utm_source=repository-badge&amp;utm_medium=badge&amp;utm_campaign=badge-repository-23329"
     target="_blank"
     rel="noopener noreferrer">
    <img src="https://trendshift.io/api/badge/repositories/23329"
         alt="tirth8205%2Fcode-review-graph | Trendshift"
         width="250"
         height="55" />
  </a>
</p>

<p align="center">
  <strong>A local code knowledge graph that gives AI coding tools precise review context over MCP.</strong>
</p>
<p align="center">
  <a href="README.md">English</a> |
  <a href="README.zh-CN.md">简体中文</a> |
  <a href="README.ja-JP.md">日本語</a> |
  <a href="README.ko-KR.md">한국어</a> |
  <a href="README.hi-IN.md">हिन्दी</a>
</p>

<p align="center">
  <a href="https://pypi.org/project/code-review-graph/"><img src="https://img.shields.io/pypi/v/code-review-graph?style=flat-square&color=blue" alt="PyPI"></a>
  <a href="https://pepy.tech/project/code-review-graph"><img src="https://img.shields.io/pepy/dt/code-review-graph?style=flat-square" alt="Downloads"></a>
  <a href="https://github.com/tirth8205/code-review-graph/stargazers"><img src="https://img.shields.io/github/stars/tirth8205/code-review-graph?style=flat-square" alt="Stars"></a>
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square" alt="MIT Licence"></a>
  <a href="https://github.com/tirth8205/code-review-graph/actions/workflows/ci.yml"><img src="https://github.com/tirth8205/code-review-graph/actions/workflows/ci.yml/badge.svg?branch=staging" alt="CI"></a>
  <a href="https://www.python.org/"><img src="https://img.shields.io/badge/python-3.10%2B-blue.svg?style=flat-square" alt="Python 3.10+"></a>
  <a href="https://modelcontextprotocol.io/"><img src="https://img.shields.io/badge/MCP-compatible-green.svg?style=flat-square" alt="MCP"></a>
  <a href="https://code-review-graph.com"><img src="https://img.shields.io/badge/website-code--review--graph.com-blue?style=flat-square" alt="Website"></a>
  <a href="https://discord.gg/3p58KXqGFN"><img src="https://img.shields.io/badge/discord-join-5865F2?style=flat-square&logo=discord&logoColor=white" alt="Discord"></a>
</p>

<p align="center">
  <a href="docs/USAGE.md">Usage</a> ·
  <a href="docs/COMMANDS.md">Commands</a> ·
  <a href="docs/FAQ.md">FAQ</a> ·
  <a href="docs/TROUBLESHOOTING.md">Troubleshooting</a> ·
  <a href="docs/GITHUB_ACTION.md">GitHub Action</a> ·
  <a href="docs/REPRODUCING.md">Reproducing the benchmarks</a> ·
  <a href="docs/ROADMAP.md">Roadmap</a>
</p>

<br>

AI coding tools often re-read large parts of a codebase to review a change. `code-review-graph` builds a structural map of the code with [Tree-sitter](https://tree-sitter.github.io/tree-sitter/), keeps it updated incrementally, and serves compact context over [MCP](https://modelcontextprotocol.io/), so the assistant reads only the files a change touches.

<p al
阅读完整原文

商业机会分析 AI 生成

CI/CD 自动化智能 PR Review 与影响面分析机器人

产品构想将本地 MCP/CLI 能力工程化为 GitHub Actions / GitLab CI 扩展,在 Pull Request 触发时构建变更依赖子图,只提取关联代码供大模型生成精准审查报告,杜绝大模型盲目读取无关代码。
核心功能PR 差异影响面拓扑图生成、按需精准上下文喂送、Token 消耗统计与节约报表、GitHub PR 自动内联评论、增量图谱中央缓存
目标用户中小技术团队 Tech Lead、DevOps 工程师、开源维护者
难度/周期中等 · 3 - 5 周 · 成本:极低(仅需轻量 API 代理服务及 GitHub App 接入)
收费模式免费额度 + SaaS 订阅(按月活开发者席位或每月审查 PR 数量阶梯计费)
竞争风险市面上存在较多通用 PR Review AI 工具,需突出其'图谱精准裁剪降低 Token 费用并减少幻觉'的差异化价值。
依据 数据支持的判断

Code Graph Pro 桌面可视化套件与 MCP 一键配置管理中心

产品构想针对 CLI 用户体验门槛较高的现状,开发跨平台轻量客户端,提供本地代码拓扑可视化浏览,并一键桥接配置到 Cursor、Claude Desktop、Windsurf 等 IDE/宿主环境中。
核心功能代码架构关系力导向图可视化、循环依赖与死代码检测、一键导出/同步 MCP JSON 配置、本地多仓库图谱状态监控
目标用户独立开发者、全栈工程师、重度 Claude/Cursor 用户
难度/周期较易 · 2 - 4 周 · 成本:低(Tauri/Electron 桌面开发,本地计算无云端服务器成本)
收费模式个人 Pro 许可买断制(Lifetime/Yearly license,如 29-49 美元)
竞争风险目标用户偏极客群体,习惯 CLI 操作,对 GUI 界面的实际付费意愿需要验证。
依据 AI推测

企业级 Multi-Repo / 微服务架构全景图谱云服务

产品构想扩展开源版单仓 local-first 能力,支持跨多仓库、跨组织依赖调用链解析,为企业自建大模型提供精准的企业级私有代码 GraphRAG 服务。
核心功能跨仓库 RPC/API 调用链解析、团队代码图谱增量协同、私有大模型 API 网关对接、代码资产安全与权限隔离、合规与敏感信息外泄阻断
目标用户中大型企业软件架构师、平台工程团队(Platform Engineering)
难度/周期较高 · 2 - 3 个月 · 成本:中等(需维护图数据库、微服务索引后端及私有部署交付能力)
收费模式私有化部署年费 License、企业专属技术支持与定制规则接入费
竞争风险企业销售周期长,跨语言、跨微服务调用关系的静态解析准确度复杂度高。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
n8n-io/n8n 中文介绍暂未生成
Fair-code workflow automation platform with native AI capabi
210,010 TypeScript
DietrichGebert/ponytail 中文介绍暂未生成
Makes your AI agent think like the laziest senior dev in the
188,290 JavaScript
x1xhlol/system-prompts-and-models-of-ai-tools 中文介绍暂未生成
FULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cu
144,601 -
earendil-works/pi 中文介绍暂未生成
AI agent toolkit: unified LLM API, agent loop, TUI, coding a
121,237 TypeScript
thedotmack/claude-mem 中文介绍暂未生成
Persistent Context Across Sessions for Every Agent – Captur
115,744 TypeScript
addyosmani/agent-skills 中文介绍暂未生成
Production-grade engineering skills for AI coding agents.
114,996 JavaScript
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 ,最近推送 ,发布过 30 个 Release
社区活跃Star 32,712 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/tirth8205/code-review-graph.git
cd code-review-graph
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。