GitNexus README

README проекта с github.com/abhigyanpatwari/GitNexus. Одним файлом markdown: README.md.

GitNexus

abhigyanpatwari%2FGitNexus | Trendshift

Discord npm version License: PolyForm Noncommercial OpenSSF Scorecard CI Workflows

GitNexus indexes a codebase into a knowledge graph of symbols, calls, dependencies and execution flows. Use it through your coding agent's MCP tools, the CLI, or a web graph explorer.

Quick start · Documentation · Web UI · Discord

https://github.com/user-attachments/assets/172685ba-8e54-4ea7-9ad1-e31a3398da72

Quick start

Requires Node.js 22.18+ on 22.x, or 24.11+. See platform requirements for Linux and Windows native dependencies.

# Run from your repository root
npx gitnexus analyze

# Connect your editors once
npx gitnexus setup

analyze builds the index, installs agent skills, registers Claude Code hooks, and writes AGENTS.md / CLAUDE.md context files. setup configures MCP for your editors. Use gitnexus analyze --index-only to index without those repository integration files.

For repeated use, install globally with npm install -g gitnexus. If installation fails, see troubleshooting.

What you can do

Task Tool
Find code and related execution flows query
Inspect a symbol's callers and dependencies context
Check what a change could affect impact
Trace a path between two symbols trace
Review the impact of a Git diff detect_changes
Preview and apply a semantic rename rename

Ask your agent questions such as “What calls this function?” or “What would this change affect?” Resolution depends on language support and available evidence; check reported ambiguity, index freshness and coverage limits.

Editor setup

gitnexus setup detects Claude Code, Cursor, Codex, Antigravity, Factory Droid, OpenCode, CodeBuddy and Qoder. Windsurf requires manual MCP configuration. To select editors:

gitnexus setup -c cursor,codex

See editor setup for the support matrix, manual MCP configuration, hooks and plugin installation.

Everyday commands

gitnexus analyze                 # Refresh the current repository's index
gitnexus analyze --watch         # Reindex as local files change
gitnexus query "authentication"  # Search the graph
gitnexus impact UserService --direction upstream
gitnexus status                  # Check index freshness
gitnexus list                    # List indexed repositories
gitnexus serve                   # Serve indexed repositories to the web UI

For multiple concurrent agents, use one gitnexus mcp --http --port 3111 server and connect clients to http://127.0.0.1:3111/mcp. See the shared-server instructions.

Web UI

Run gitnexus serve, then open gitnexus.vercel.app. The UI connects to the backend to browse indexed repositories and use AI chat. It uses the existing index; no re-upload or re-index is needed.

GitNexus graph explorer

For Docker, hosted deployments, image verification, or a local frontend, see deployment.

Supported languages

C, C++, C#, COBOL, Dart, Go, Java, JavaScript, Kotlin, Objective-C, PHP, Python, Ruby, Rust, Swift, TypeScript, Vue and Zig have registered providers. Support varies by construct; see the language inventories for measured behavior, exclusions and remaining gaps.

R (experimental) also has a registered provider (.r / .R, parsed with @eagleoutice/tree-sitter-r): functions, S4, R6 and RefClass classes with their methods and fields, library() / require() / source() imports to local packages and files, obj$method() and pkg::fn() calls, R6 inherit= / S4 contains= heritage and NAMESPACE-driven export status. Calls through function values, do.call(), infix operators and S3 dispatch are not linked; .Rmd, box::use() and external (CRAN) packages are not supported. With --pdg it builds a control-flow graph (control dependence only, no reaching definitions), and rename handles plain functions while refusing classes, members, S3 methods, exported package functions and names spelled as strings. See docs/languages/r-provider.md for coverage and limits.

Documentation

Read For
CLI reference Commands, indexing flags, watch mode, configuration and shared stores
Environment variables · vector tuning Runtime settings and search tuning
MCP reference All tools, resources, examples, policies and response budgets
Editor setup Supported integrations and manual configuration
Deployment Docker, Render, image signatures and local frontend setup
Wiki generation Model configuration and generated repository documentation
Runbook Index recovery, embeddings and operational troubleshooting
Architecture · type resolution How the indexer and resolution layers work
Type-resolution roadmap Planned work and acceptance criteria

Security and privacy

The CLI indexes code locally without an LLM. Optional remote embeddings, wiki generation and AI chat use the providers you configure. The web UI accesses the backend it connects to. Review security guidance and deployment authentication before exposing an index to other users.

Development

See CONTRIBUTING.md for setup and pull requests, TESTING.md for validation, and GUARDRAILS.md for repository rules.

Enterprise

GitNexus is available as an enterprise offering — fully managed SaaS or self-hosted deployment. Commercial use of the OSS version is also available with proper licensing.

Enterprise includes:

Upcoming: auto regression forensics · end-to-end test generation

👉 Learn more at akonlabs.com — for commercial licensing or enterprise inquiries, ping us on Discord or email [email protected]

Community Integrations

Built by the community — not officially maintained, but worth checking out.

Project Author Description
pi-gitnexus @tintinweb GitNexus plugin for pi — pi install npm:pi-gitnexus
gitnexus-stable-ops @ShunsukeHayashi Stable ops & deployment workflows (Miyabi ecosystem)
KiloCode MCP workflow @oktanishq Guide to connect GitNexus MCP to Kilo Code and verify tools.

Have a project built on GitNexus? Open a PR to add it here!

License

PolyForm Noncommercial 1.0.0. Commercial licensing is available through akonlabs.com.

Acknowledgments

GitNexus (abhigyanpatwari/GitNexus)

Ищем в базе…

Что это такое?Он превращает любую кодовую базу в граф знаний — зависимости, цепочки вызовов, кластеры, потоки выполнения — и отдаёт его AI-агентам для кодинга через MCP-инструменты, чтобы они перестали вносить изменения вслепую.
Это CLI, веб-приложение или и то и другое?И то и другое. Связка CLI + MCP работает локально рядом с такими агентами, как Cursor и Claude Code, а Web UI — это графовый обозреватель с чатом прямо в браузере по адресу gitnexus.vercel.app, без установки.
Как запустить его со своим AI-агентом?npm install -g gitnexus, затем gitnexus analyze в вашем репозитории — одной командой он проиндексирует код и установит skills, hooks и AGENTS.md/CLAUDE.md; gitnexus setup запишет MCP-конфиг для вашего агента.
Для установки нужен тулчейн C++?Обычно нет. Готовые сборки покрывают обычную установку; только четыре встроенные грамматики (Dart, Proto, Swift, Kotlin) требуют python3/make/g++ — либо задайте GITNEXUSSKIPOPTIONALGRAMMARS=1, чтобы пропустить их и закончить за секунды.
Что может подложить свинью при установке?На npm 11.x npx может упасть посреди установки (это баг npm) — используйте pnpm или глобальную установку; кроме того, холодный запуск MCP через npx может превысить таймаут Claude Code (~30 секунд), так что глобальная установка решает обе проблемы.
Работает ли он на macOS, Windows и Linux?Да — это CLI на Node с предсобранными нативными биндингами под каждую пару платформа-архитектура, плюс браузерный интерфейс без установки, так что все три настольные ОС поддерживаются.
Можно ли развернуть его как общий сервер, а не запускать локально?Да — Render Blueprint в один клик создаёт приватный gitnexus-server плюс публичный веб-интерфейс gitnexus-web (около $35/месяц при настройках по умолчанию); деплой через RepoCloud тоже поддерживается.
Мой код покидает мой компьютер?Нет. Связка CLI + MCP полностью локальна и не делает сетевых запросов, а браузерный интерфейс тоже целиком работает в браузере, без сервера.
Какие инструменты агент получает на самом деле?17 MCP-инструментов (15 на репозиторий + 2 групповых): impact для анализа радиуса последствий изменений, trace для кратчайших путей вызовов, query с поиском BM25 + семантическим + RRF, rename, доступ к Cypher, а также управляемые промпты вроде detectimpact для проверки рисков перед коммитом.
Репозиторий какого размера выдерживает браузерный интерфейс?Режим в браузере ограничен памятью браузера — примерно 5 тысяч файлов. Для полных репозиториев используйте CLI (любой размер) или режим с бэкендом; bridge-режим (gitnexus serve) позволяет веб-интерфейсу показывать всё, что проиндексировал CLI, без повторной индексации.
Зачем граф знаний вместо обычного RAG?Классический Graph RAG отдаёт LLM сырые рёбра и надеется, что она сама исследует достаточно. GitNexus заранее вычисляет структуру при индексации — кластеризацию, трассировку, оценки — поэтому инструменты возвращают полный контекст за один вызов, экономя токены и позволяя работать моделям поменьше.
Какие есть похожие проекты?graphicle, codegraph, graphify, Trail-Code, axiomcodegraph, Benzi, lean-ctx, code-review-graph
Автор
abhigyanpatwari
Размер
136.7 MB
Звёзды
49K
Возраст
1 г
Коммиты · 90 дней