gitnexus 将代码仓库解析为预计算的知识图谱,并通过 MCP 工具和 Web UI 向 AI 编程代理提供代码结构上下文。其核心在于索引阶段预先完成聚类、追踪和评分,使 AI 工具单次调用即可获取上下文。
项目概览
项目在索引阶段预先计算代码关系结构,而非依赖 LLM 在运行时逐步探索原始图的边。
项目类型
MCP · AI 编程 · RAG 与知识库
应用场景
知识问答 · 编程开发
部署方式
查看项目说明
License
License 待确认
适合谁
需要为 AI 编程代理提供预计算代码架构上下文以避免破坏性更改的开发者。
核心能力
使用 Tree-sitter 解析代码库,提取依赖关系、调用链和执行流程,将其构建为知识图谱。
在索引时预计算代码结构(如聚类、追踪、评分),使 AI 工具在一次调用中即可返回完整的上下文。
提供 17 个用于代码智能的 MCP 工具,这些工具可通过本地 MCP 服务器进行访问。
在浏览器中提供可视化的图形浏览器和 AI 聊天界面。
基于知识图谱生成仓库的 wiki 文档。
自动将探索、调试和重构等技能安装到 .claude/skills/ 目录中。
仅对发生更改的文件进行重新索引,而不是重新索引整个代码库。
限制与风险
GitNexus 没有任何官方的加密货币、代币或硬币;任何使用该名称的代币均与本仓库无关联。
执行 Wiki 生成功能需要提供 LLM API 密钥(例如 OPENAI_API_KEY)。
仅对已更改文件进行重新索引的增量索引功能目前处于 planned 状态,尚未提供。
如何开始
Web UI 无需安装即可使用;CLI 提供单命令设置与分析,上手难度较低,无需编写代码即可使用。
核验依据
GitHub 项目简介: GitNexus is a client-side knowledge graph creator that runs entirely in your browser. Drop in a git repository (Github, Gitlab, Azure, Local) or ZIP file, and get an interactive k…
README: Indexes any codebase into a knowledge graph — every dependency, call chain, cluster, and execution flow — then exposes it through smart MCP tools so AI agents never miss code.
README: Tools like **Cursor**, **Claude Code**, **Codex**, **Cline**, **Roo Code**, and **Windsurf** are powerful — but they don't truly know your codebase structure.
README: GitNexus **precomputes structure at index time** — clustering, tracing, scoring — so tools return complete context in one call: