# GitNexus

> Indexes a codebase into a knowledge graph and serves it to agents over MCP

- Category: Retrieval & Knowledge (RAG) / Code Indexing & Search
- Language: TypeScript
- Licence: PolyForm Noncommercial 1.0.0
- Repository: https://github.com/abhigyanpatwari/GitNexus
- Website: https://gitnexus.vercel.app
- Canonical page: https://ai-tldr.dev/tools/gitnexus/
- Updated: 2026-04-24

## In short

GitNexus, from Akon Labs, is a context engine for codebases. It sits in the Code Indexing & Search category of the Retrieval & Knowledge (RAG) tools and is open-source, written in TypeScript and licensed PolyForm Noncommercial 1.0.0. To get started: index your repository.

## Overview

GitNexus, from Akon Labs, is a context engine for codebases. It indexes a repository into a knowledge graph — dependencies, call chains, clusters and execution flows — and then exposes that graph to AI coding agents through MCP tools, so an agent asking about a symbol gets its real relationships rather than a description of them. The README draws the contrast plainly: tools like DeepWiki help you understand code, while GitNexus lets you analyse it, because the graph tracks every relationship.

There are two ways in. The CLI plus MCP server is the main one: `npx gitnexus analyze` indexes the codebase, installs agent skills, registers Claude Code hooks and writes `AGENTS.md` / `CLAUDE.md` context files, and `npx gitnexus setup` auto-detects and configures editors such as Claude Code, Cursor, Antigravity and Codex. A hosted Web UI is the quick way to chat with any repo in a browser, and Akon Labs offers SaaS and self-hosted enterprise editions.

Parsing is done with tree-sitter, including vendored grammars for Dart, Proto, Swift and Kotlin that ship as cross-built prebuilds so no C/C++ toolchain is needed. The embedding stack is an optional dependency installed on demand into `~/.gitnexus/embedding-runtime`, so a blocked download during install does not break the tool. GitNexus is published under the PolyForm Noncommercial License 1.0.0. The project also warns in its README that it has no official cryptocurrency or token, and that any coin using its name is unaffiliated.

## What it does

- Indexes a repository into a knowledge graph covering dependencies, call chains, clusters and execution flows
- MCP server that hands the graph to Claude Code, Cursor, Codex, Antigravity and other MCP-capable editors
- `gitnexus analyze` also installs agent skills, registers Claude Code hooks and writes AGENTS.md / CLAUDE.md context files
- tree-sitter parsing with vendored, cross-built prebuilds for Dart, Proto, Swift and Kotlin, so no local C++ toolchain is required
- Optional embedding stack installed on demand through your own npm registry config, keeping proxied and mirrored installs working
- A browser Web UI for chatting with a repository, plus SaaS and self-hosted enterprise editions from Akon Labs

## Getting started

GitNexus is distributed on npm as `gitnexus`. Two commands take you from a fresh checkout to an agent that can query the graph.

1. Index your repository

   Run this from the repository root. It builds the knowledge graph, installs agent skills and hooks, and writes the context files.

```bash
npx gitnexus analyze
```

2. Connect your editors

   A one-time step that auto-detects Claude Code, Cursor, Codex and friends and writes the MCP configuration for each.

```bash
npx gitnexus setup
```

3. Prefer a global install for faster MCP startup

   Installing globally before running setup writes an absolute-path MCP config that bypasses npx — worth doing, because a cold npx install can exceed an MCP client's default startup timeout.

```bash
npm install -g gitnexus
gitnexus setup
```

4. If you have no C++ toolchain

   Set this strict flag to skip building the vendored Dart, Proto, Swift and Kotlin grammars; those four languages will not be parsed, but the install finishes without python3, make or g++.

```bash
GITNEXUS_SKIP_OPTIONAL_GRAMMARS=1 npm install -g gitnexus
```

## When to use it

- Stop an agent from shipping blind edits by giving it the real dependency and call-chain graph of the repository
- Let a smaller, cheaper model work on a large codebase by handing it structure instead of raw files
- Explore an unfamiliar repository in the browser Web UI before wiring anything into an editor
- Give several editors — Claude Code, Cursor, Codex — one shared architectural index of the same project

## Version history

- 2026-04-24: AI/TLDR covered GitNexus as a code-intelligence platform that maps a codebase into dependency graphs and exposes them to AI editors — Claude Code, Cursor, Codex and Windsurf — through MCP tools.
