Understand unfamiliar code with evidence.
Read a Wiki of how a repository works, follow its call paths on a map,
and open the source behind every explanation.
Then give your coding agent the same index.
Browse a Wiki · Use with your agent · Thread context · Docs · Languages · Releases
The Requests Wiki. Each node on the map is a page, and the heavy lines are references the code index recorded between areas. The page cites a file and line range for each claim.
New in 0.2.6: Wikis open as a map of their pages and lead with the main path
through the code, faster graph builds, and first C/C++ and JavaScript/TypeScript
builds that leave the checkout alone. In preview,
codenib threads hands your agent a
GitHub issue or pull request in one read.
Read the release notes.
A Wiki you can follow down to the source
CodeNib indexes a repository, groups its code into areas, and writes a Wiki page for each one. The map and the call paths come from the code index, so you can check every arrow against the source.
- Start from the map. Pages are nodes. Drag to pan, scroll to zoom, and click a node to read its page. Click a heavy line to read an example of the references behind it.
- Follow one path through the code. The Overview opens on the main path through the repository, one sentence per recorded call. The most important detail pages draw their longest recorded call path. No model chooses the arrows.
- Check each claim. Sentences end with the file and line range they come from, and each page lists its callers and calls in the code graph.
- Ask a follow-up. Ask this repository answers a question with source citations, using the model you configure.
The gin Wiki opens on one
recorded path, from GET() to node.insertChild().
Open a Wiki
| To | Do this |
|---|---|
| Read one now | Open a ready Wiki for requests, scikit-learn, sympy, fmt, redis, caddy, gin, hugo and more. No account or API key. |
| Map a public GitHub repository | Paste its URL on demo.codenib.ai, or replace github.com with demo.codenib.ai in the URL. A new Wiki uses your OpenRouter account, with a $0.25–$5 spending limit you set before it starts. |
| Map your own checkout | Run the Wiki locally, as below. |
| Share it | Publish the Wiki, with its source citations, to GitHub Pages: add the CodeNib Wiki action to a workflow. Pages guide |
To build a Wiki with the map on your machine:
python -m pip install "codenib[graph]"
codenib wiki /path/to/your/repo --preset graph
This builds a search index and a symbol graph, then opens the Wiki at
http://localhost:3000. Pages are written from the index without a model.
Add --generate --model <provider/model> for model-written pages.
Local Wiki guide
Use it with your coding agent
Build the same index for Claude Code or Codex. Your agent can then find definitions, follow callers and read the source in your own checkout.
One recorded Claude Code session on Requests: 14.1 s, 3 turns, 2 CodeNib tools. ▶ Watch it replay · Pinned source, transcript and setup details
Requires Python 3.10+, Git, and Claude Code or Codex. Initialization accepts uncommitted edits and preserves the checkout.
python -m pip install "codenib[graph,mcp]"
codenib codegraph init /path/to/your/repo
Then ask your agent: “Use CodeNib's explore_context to find where request
retry behavior is implemented. Cite the files and lines.”
This builds local search and a typed symbol graph, then connects installed agent clients. CodeNib needs no model, API key, or GPU of its own; your agent uses its own model. Language toolchain and project prerequisites vary.
In Claude Code you can install the plugin instead. It connects every Git
checkout you open and adds /codenib:explain, /codenib:impact,
/codenib:thread, /codenib:setup and /codenib:wiki:
claude plugin marketplace add sysevol-ai/CodeNib
claude plugin install codenib@codenib
Grok Build reads the same plugin, and DeepSeek Harness installs it as a bundle:
grok plugin install "sysevol-ai/CodeNib#plugins/codenib"
dsh plugin --profile web add "git+https://github.com/sysevol-ai/CodeNib.git#main&path:/plugins/dsh"
Grok Build setup · DeepSeek Harness setup
Setup and troubleshooting · Source exclusions · All MCP tools · Change guard (preview, Python: lists the tests a change reaches before your agent finishes)
Hand your agent the whole thread
codenib threads reads a GitHub issue or pull request once and gives your
agent one document: the ask, what people decided, review comments, the failing
checks, the linked threads, and the code they point at. It fits a token
budget, and when the agent comes back it returns only what changed. It runs on
your machine and calls no model. It is a preview in 0.2.6.
cd /path/to/your/repo
codenib threads context 812 # write THREAD_CONTEXT.md before the agent starts
codenib threads open 812 # or start a ticket that remembers what it read
codenib threads inbox 812 # later: only what is new
codenib threads board # all tickets, and other work on the same code
This is the top of what it wrote for caddyserver/caddy#8024 on November 14, 2026, a pull request with 145 events across three threads:
# Thread context: caddyserver/caddy#8024 (PR)
Status: open PR · opened 2026-09-15 by MangoGovo · CI: 2 failing (lint (linux), test (windows, 1.27)) · 145 events across 3 threads
Coverage: this thread complete, linked threads partial. Everything people wrote in #8024 is below in full […]
## Changes in this pull request
[#8024/diff/0b3db48fbe8605ddda67e48735ef225694af4b1b] +52/-6 in 2 files at 0b3db48f:
- modules/caddyhttp/fileserver/staticfiles.go
- modules/caddyhttp/fileserver/staticfiles_test.go
## Also in progress on this code
- #7777 (open PR by Jualhosting, updated 2026-10-26) fileserver: Improve 404 error detail and context — changes `FileServer.serveBrowse()` […]
## Failing CI
Checks at 0b3db48f: 2 failing, 22 passing.
[#8024/check/127120839152] lint (linux) failed
##[error]modules/caddyhttp/reverseproxy/reverseproxy.go:658:24: use "Sec-Websocket-Key" instead of "Sec-WebSocket-Key" (canonicalheader)
Each part cites the event it came from, and the Coverage line tells the
agent whether it still has to read the thread itself.
On 76 pull requests taken over after a review or a failed check, the prepared
context cut input tokens by 21% with Codex and by 45% with Claude Code,
against letting the agent read the thread with gh. It saves tokens; it does
not make answers better. Codex found the same files to change either way, and
Claude Code found slightly fewer (0.80 against 0.83), a gap too small to tell
from chance on 76 tasks.
Thread context guide
· A worked example
· In Claude Code and Grok Build, the plugin adds it as /codenib:thread.
How it compares
What an agent can ask each tool. Peer interfaces were checked against upstream docs on 2026-09-28. This compares capabilities, not benchmark scores.
| Tool | Ask in plain language | Relationships beyond one hop | Relationships resolved by | Runs |
|---|---|---|---|---|
| grep / read | No; literal or regex | No | Text match | Local |
| CodeNib CodeGraph | Yes; ranked source anchors (explore_context) |
Incoming/outgoing static references; one dependency_subgraph call, depth ≤ 8 |
SCIP/LSP indexers (compiler-resolved) | Local |
| Serena | No; symbol name or regex | One level per call (find_referencing_symbols) |
Live language server or IDE | Local |
| CodeGraph (colbymchenry) | Yes; FTS5 full-text (codegraph_explore) |
Yes; call paths in codegraph_explore |
Tree-sitter AST extraction | Local; telemetry opt-out |
| DeepWiki public MCP | Yes; generated answers (ask_question) |
No structured graph tools | Generated Wiki | Hosted |
CodeNib's indexed references can include calls, fields, type uses and function values. Inspect the source to establish which references invoke a function; external and dynamic relationships may be missing. For a known string or file, your agent's native search and reads remain useful. Include indexing and rebuild costs when assessing graph navigation on your own tasks.
None of these repository tools needs its own model or API key; your agent uses its own model. Detailed comparison, sources and boundaries. CodeNib also includes an optional grep → Jev route using OpenRouter for planning and reranking; selected code goes to remote models. Authorization previews remain opt-in.
Languages
CodeNib registers 14 languages, 12 of them with a code graph.
| Support | Languages |
|---|---|
| Code graph with an incremental backend (LSP or clangd) | Python, Go, Rust, C/C++, JavaScript, TypeScript |
| Code graph | C#, Java, Ruby, PHP, Kotlin, Scala |
| Search only, no definitions or callers | Swift, Lua |
These are registered capabilities, not the tools on your machine;
codenib toolchain status shows those. The product currently reuses or
rebuilds views; file-level delta repair is not enabled. The
language matrix lists each
backend and its prerequisites.
Results and reproductions
- #1 in line recall and Pass@1 on ContextBench's Agent systems leaderboard: 77.90% line recall and 388 of 500 tasks resolved (77.60% Pass@1), as of October 23, 2026 (UTC). This is our research agent, not the Wiki or the code graph: two Claude Haiku 5.5 workers search with glob, grep and reads, then Claude Opus 5.5 repairs. How it works · Scope and evidence
- 71.4% code-block Recall@5 on 100 real issues with model-planned grep → Jev, 12.8 percentage points above the same grep candidates without reranking. This is an experimental retrieval route, separate from the model-free CodeGraph. Method and limitations
| Start here | What you can inspect |
|---|---|
| Context methods and support matrix | Every retrieval pipeline, LLM workflow and agent route, sorted by the views it reads and who controls the search |
| Benchmarks | Localization, agent-context and resolution layers, evidence levels, and the method × benchmark matrix over CodeNib Base/Synthesis, SWE-bench Lite, Loc-Bench, SWE-Explore, Agent Retrieval Bench and ContextBench |
| Agent integration matrix | Revision-pinned LocAgent, Agentless, CoSIL, OrcaLoca and RepoNavigator contracts; compatibility does not imply reproduced paper scores |
| SWE-Explore validation | 1,020/1,020 real-output metric cells match the pinned official evaluator on a fixed 20-case run |
| DGX Spark deployment | Local Wiki, CodeGraph and model serving on GB10; a deployment guide, not a token-saving benchmark |
Documentation and community
Documentation · Architecture · Contributing · CI and testing · Changelog · Discord
CodeNib is in beta; public interfaces may change before a stable release. Historical research artifacts retain their published dataset identifiers.
Citation
If you use CodeNib in your research, please cite our arXiv paper:
@misc{yu2026codenibmultiviewdataserving,
title={CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents},
author={Zhongming Yu and Hengjia Yu and Boqin Yuan and Shuting Zhao and Yizhao Chen and Aryan Dokania and Mihir Jagtap and Jiayu Chang and Yitong Ma and Yash Jayswal and Wentao Ni and Hejia Zhang and Zhaoling Chen and Gangda Deng and Jishen Zhao},
year={2026},
eprint={2607.25431},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2607.25431},
}
CodeNib is licensed under Apache 2.0.
Metadata
Release files for codenib 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codenib-0.2.6.tar.gz | 4.4 MB | With provenance | Details for codenib-0.2.6.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codenib-0.2.6-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details for codenib-0.2.6-cp310-abi3-manylinux_2_28_x86_64.whl |
| codenib-0.2.6-cp310-abi3-manylinux_2_28_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ ARM64 | Details for codenib-0.2.6-cp310-abi3-manylinux_2_28_aarch64.whl |
Total release size: 12.5 MB
Release files / codenib-0.2.6.tar.gz
| Download URL | codenib-0.2.6.tar.gz |
|---|---|
| Size | 4.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed1ba5e588dbda819672685fe6902b6132fdbe7c7dde0c6fe450b33ea35d3e88
|
|
BLAKE2b-256 checksum How to use checksums |
c19f2e8b1dfc0b12ee54730dd16d02e98667cd0ae733ceb75e6aab0cb8cb76d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / codenib-0.2.6-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | codenib-0.2.6-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1f76b3f60edb600f5331c72450e821f670a77f0db263d921cad236febce25680
|
|
BLAKE2b-256 checksum How to use checksums |
6a1513d8a2142a3a1efa59d921661959e735a3bccfef28f93819fc10b5c10c3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / codenib-0.2.6-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | codenib-0.2.6-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
b04c55f3732244826b024174086980facc19f0af1c258eece179eb929008a514
|
|
BLAKE2b-256 checksum How to use checksums |
12ad600fc9e252f422ed21d7f7ddd61fbe1e8f578a5d8a2e258546ef044578d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logSecurity for codenib 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 3 files in this release have been uploaded with provenance metadata.
Attestation for codenib-0.2.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.