What It Is
GitNexus indexes your codebase into a knowledge graph that AI agents can query for structural understanding—dependencies, call chains, execution flows. Runs entirely client-side, no server required.
Technical Specs
| Component | Technology |
|---|---|
| Parsing | Tree-sitter AST |
| Graph DB | KuzuDB |
| Clustering | Graphology + Leiden algorithm |
| Protocol | MCP server (16 tools) |
| Languages | 11+ (TS, JS, Python, Java, C/C++, Go, Rust, PHP, Swift, Dart) |
Indexing Pipeline (6 Phases)
- Structure — File tree mapping
- Parsing — Tree-sitter symbol extraction
- Resolution — Cross-file import/call resolution
- Clustering — Leiden algorithm community detection
- Processes — Execution flow tracing
- Search — Hybrid BM25 + vector indexes
Benchmarks
- GitHub: 27.1k stars, 3.1k forks, 79 contributors
- Rank: #1185-1213 globally
- Activity: Last commit 1 day ago
Competitor Comparison
| Tool | Stars | License | Key Difference |
|---|---|---|---|
| GitNexus | 27k | PolyForm NC | Deepest MCP integration |
| CodeGraphContext | 2.2k | MIT | Permissive alternative |
| Sourcegraph Cody | Enterprise | Commercial | Cloud + enterprise |
| Repomix | 22k | MIT | Flat context packing |
Key Features
- Impact Analysis: See blast radius before editing (depth 1-3, risk levels)
- Graph-assisted Renames: Safe multi-file refactoring
- Execution Flow Tracing: Follow STEP_IN_PROCESS edges
- Hybrid Search: BM25 + semantic vectors
Caveats
License Limitation: PolyForm-Noncommercial-1.0.0 restricts enterprise use. For commercial projects, consider CodeGraphContext (MIT).
Community Sentiment
Pros: Privacy-focused (100% local), precomputed intelligence, deep MCP integration with Claude Code/Cursor/Windsurf
Cons: No real-time updates, heavy initial setup, license friction for enterprise
Quick Start
npx gitnexus analyze
Requires Node.js >= 18.0.0 and Git.