Repolode
abhigyanpatwari

abhigyanpatwari/GitNexus

Indexes a codebase into a knowledge graph of dependencies, call chains and execution flows, and serves it to AI coding agents via MCP tools.

Open-source alternative to:DeepWiki

Stars
47,955
Forks
5,199
Open issues
293
Last commit
23 hours ago

What is it?

GitNexus is a code intelligence engine that parses a repository with Tree-sitter and stores its structure as a knowledge graph. It records relationships such as callers, dependencies, functional clusters and execution flows, and precomputes them at index time so a single tool call can return complete context.

The main interface is a CLI plus MCP server. After running `gitnexus analyze` in a repo root and `gitnexus setup`, editors such as Claude Code, Cursor, Codex and Windsurf can call tools for impact analysis, symbol context, blast-radius checks, change detection, and Cypher queries. A browser Web UI offers a visual graph explorer and chat for smaller repositories, and `gitnexus serve` can connect the two so the UI browses CLI-indexed repos.

All indexing and storage run locally by default with LadybugDB, and the project also documents Render deployment, multi-client HTTP MCP mode, and optional access-control settings for shared setups.

Key features

  • 01Builds a knowledge graph of calls, dependencies, clusters and execution flows from source code.
  • 02Exposes MCP tools such as impact, context, trace, detect_changes and rename to AI agents.
  • 03Works with Claude Code, Cursor, Codex, Windsurf and other editors through `gitnexus setup`.
  • 04Offers a browser Web UI for visually exploring a repository and chatting about it.
  • 05Supports incremental re-indexing with a watch mode and a shared HTTP MCP server for multiple clients.

Use cases

  • Giving an AI coding agent the callers and dependents of a function before it edits shared code.
  • Checking which processes and files a pending git diff affects before committing.
  • Exploring an unfamiliar large codebase through a visual graph and natural-language questions.
  • Running a shared, self-hosted code context server for a team's agents.

Quick start

  1. 1

    Index your repo from the repo root

    npx gitnexus analyze
  2. 2

    Connect your editors (one-time setup)

    npx gitnexus setup

Things to know

  • License is PolyForm Noncommercial, so commercial use is not permitted.
  • Full indexing of large repos is memory-bound and can need a higher-RAM plan on hosted deploys.
  • Some languages (Dart, Proto, Swift, Kotlin) need a native build, and install can fail without a C++ toolchain unless optional grammars are skipped.
  • On npm 11.x, npx may crash during install; pnpm or a global install is suggested as a workaround.

Topics

FAQ

What is GitNexus?
Indexes a codebase into a knowledge graph of dependencies, call chains and execution flows, and serves it to AI coding agents via MCP tools. GitNexus is a code intelligence engine that parses a repository with Tree-sitter and stores its structure as a knowledge graph. It records relationships such as callers, dependencies, functional clusters and execution flows, and precomputes them at index time so a single tool call can return complete context.
Is GitNexus free to use? What license does it have?
GitNexus is open source under the Other license. Check the license terms before using it in commercial products.
Is GitNexus still maintained?
Actively maintained. The last commit to GitNexus was on Oct 19, 2026.
What can I use GitNexus for?
Giving an AI coding agent the callers and dependents of a function before it edits shared code. Checking which processes and files a pending git diff affects before committing. Exploring an unfamiliar large codebase through a visual graph and natural-language questions. Running a shared, self-hosted code context server for a team's agents.
How do I install GitNexus?
Index your repo from the repo root: npx gitnexus analyze Connect your editors (one-time setup): npx gitnexus setup
Where can I get GitNexus?
The source code and installation instructions are on GitHub: https://github.com/abhigyanpatwari/GitNexus

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects