Building an opensource Living Context Engine
Meet GitNexus: An Open-Source MCP-Native Knowledge Graph Engine That Gives Claude Code and Cursor Full Codebase Structural Awareness
There are both referential:
- one (Git) is a source referential for version control (with features like merging, branching, tags)
- the other (Nexus) is an artifact referential for any delivery (binaries or not)
The referential database differs also:
- Git has its own internal repository storage mechanism
- Nexus is simply a collection of shared directories with a naming convention ( group.artifact.version ).
As described in "What is a repository": a collection of binary software artifacts and metadata stored in a defined directory structure.
The idea is that, for large deliveries that can be produced quite often, it is much easier to store them in Nexus ( you can clean them easily enough: cd + rm ), as opposed to version them ( which makes a DVCS repo like Git way too big way too fast to be cloned easily ).
So their goals are different, as I explain in:
- "How do different version control systems handle binary files?"
- "Best practice to store .jar files in VCS (SVN, Git, โฆ)"
- "Using source controlled libraries in source controlled projects"
You manage what you code in Git, and what you build in Nexus.
@VonC has the high level, theoretical view.
In everyday use, you'd store your source code and its history in a git repository, and store your build artifacts (e.g. the compiled software you want to deliver) in Nexus.
As such, they are not really comparable, but complementary.
Hi guys, I m working on this free to use opensource project Gitnexus, which I think can enable claude code like tools to reliably audit the architecture of codebases while reducing cost and increasing accuracy and with some other useful features,
I have just published a CLI tool which will index your repo locally and expose it through MCP ( skip the video 30 seconds to see claude code integration ). LOOKING FOR CRITICAL FEEDBACK to improve it further.
repo: https://github.com/abhigyanpatwari/GitNexus (A โญ would help a lot :-) )
Webapp: https://gitnexus.vercel.app/
What it does:
It creates knowledge graph of codebases, make clusters, process maps. Basically skipping the tech jargon, the idea is to make the tools themselves smarter so LLMs can offload a lot of the retrieval reasoning part to the tools, making LLMs much more reliable. I found haiku 4.5 was able to outperform opus 4.5 using its MCP on deep architectural context.
Therefore, it can accurately do auditing, impact detection, trace the call chains and be accurate while saving a lot of tokens especially on monorepos. LLM gets much more reliable since it gets Deep Architectural Insights and AST based relations, making it able to see all upstream / downstream dependencies and what is located where exactly without having to read through files.
Also you can run gitnexus wiki to generate an accurate wiki of your repo covering everything reliably ( highly recommend minimax m2.5 cheap and great for this usecase )
repo wiki of gitnexus made by gitnexus :-) https://gistcdn.githack.com/abhigyantrumio/575c5eaf957e56194d5efe2293e2b7ab/raw/index.html#other
to set it up:
1> npm install -g gitnexus
2> on the root of a repo or wherever the .git is configured run gitnexus analyze
3> add the MCP on whatever coding tool u prefer, right now claude code will use it better since I gitnexus intercepts its native tools and enriches them with relational context so it works better without even using the MCP.
Also try out the skills - will be auto setup on when u run: gitnexus analyze
{
"mcp": {
"gitnexus": {
"command": "npx",
"args": ["-y", "gitnexus@latest", "mcp"]
}
}
}
Everything is client sided both the CLI and webapp ( webapp uses webassembly to run the DB engine, AST parsers etc )
Meet GitNexus: An Open-Source MCP-Native Knowledge Graph Engine That Gives Claude Code and Cursor Full Codebase Structural Awareness
๐ง๐ต๐ฒ ๐ฝ๐ฟ๐ผ๐ฏ๐น๐ฒ๐บ: AI agents like Claude Code and Cursor edit your code without knowing the dependency structure. A single function change can silently break 47 downstream callers.
๐ง๐ต๐ฒ ๐ณ๐ถ๐ : GitNexus pre-computes the entire dependency graph at index time using Tree-sitter AST parsing โ then exposes it to your AI agent via an MCP server.
Here's what it does:
โ Runs npx gitnexus analyze on your repo
โ Parses every function, class, and interface with Tree-sitter ASTs
โ Builds a knowledge graph of every dependency and call chain
โ Plugs directly into Claude Code, Cursor, Codex, and Windsurf via MCP
โ Answers "what depends on this?" in 1 query instead of 10
๐ข๐ป๐ฒ ๐ฐ๐ผ๐บ๐บ๐ฎ๐ป๐ฑ ๐๐ผ ๐๐๐ฎ๐ฟ๐:
npx gitnexus analyze
MCP registers automatically. Claude Code hooks install themselves.
13 languages. Zero server. Fully local. Open source.
โ Full analysis: https://www.marktechpost.com/2026/04/24/meet-gitnexus-an-open-source-mcp-native-knowledge-graph-engine-that-gives-claude-code-and-cursor-full-codebase-structural-awareness/
โ GitHub Repo: https://github.com/abhigyanpatwari/GitNexus