Skip to content

CodeNib

CodeNib is a multi-view data system for serving repository context to coding agents. It compiles repositories into reusable, source-linked lexical, semantic, structural, and static-navigation views, then serves the same manifest through MCP, Python APIs, the local Wiki, and evaluation harnesses.

Language support varies by surface. Start with the generated Language Capabilities matrix when you need to know which languages support chunking, graph indexing, incremental patching, or C++ core decoder parity.

Choose a path

Goal Section Start with
Install CodeNib and explore a repository Get Started Quickstart
Give Codex or Claude Code a repository CodeGraph CodeGraph codenib codegraph init .
Serve custom repository context over MCP Guides MCP Server
Understand indexes, graphs, and incremental updates Concepts Incremental Graph
Browse source-generated Python contracts API Reference codenib public surface
Extend, test, release, or evaluate CodeNib Development Contributing a Language

Quick Start

CodeNib 0.2.3 can prepare a local, model-free CodeGraph and register it with installed Codex and Claude Code clients in one command:

python -m pip install "codenib[graph,mcp]==0.2.3"
codenib codegraph init /path/to/repository

The command installs package-managed language providers, builds reusable BM25 and symbol-graph views under ~/.codenib, and delegates MCP registration to the clients' own CLIs. The target checkout remains unchanged. Read the CodeGraph guide for status, safe uninstall, client scopes, and tool examples.

python -m pip install "codenib[semantic]==0.2.3"
codenib wiki /path/to/repository

The separate Wiki path enables hybrid BM25+dense retrieval with the pinned CodeRankEmbed model. Read the Quickstart for provider setup and browser troubleshooting.

Serving Docs Locally

git clone https://github.com/sysevol-ai/CodeNib.git
cd CodeNib
python -m pip install -e ".[dev]"
mkdocs serve

Then open http://localhost:8000.