Skip to main content
CodeNib

Find the right code. Trace the calls.

Give Claude Code and Codex source context and typed graph navigation across languages.

71.4% code-block Recall@5 on 100 real issues.
Model-planned grep → Jev: +12.8 percentage points over the same grep candidates without reranking.
Experimental result · Method and limitations

Use with your agent  ·  Browse a Wiki  ·  Languages  ·  Reproductions  ·  Releases

CI PyPI version Latest GitHub Release arXiv paper Apache 2.0 license

Play a recorded CodeGraph setup and Claude Code explore_context call on Requests, returning source references for authentication during redirects

▶ Watch the 15-second replay · real CLI output · waits condensed · Pinned source, transcript and setup details.

Quickstart

Requires Python 3.10+, Git, a clean repository, and Claude Code or Codex.

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 shipping path builds local search and a typed symbol graph, then connects installed agent clients. It needs no model, API key, or GPU for CodeNib; your agent uses its own model. It is separate from the grep/Jev experiment above. Language toolchain and project prerequisites vary.

Setup and troubleshooting · Source exclusions · All MCP tools · Local Wiki

Why CodeNib

  • Inspect the evidence. Retrieve bounded code context with file and line references, then follow callers, callees, definitions, and references.
  • Use the same tools across languages. The registry tracks 14 language entries, including 12 with graph backends. Check capability and setup differences in the language matrix.
  • Compare methods on the same source. Pinned agent contracts, datasets, and scorer checks make the reproduction surface inspectable.
  • Share what you found. Export a Wiki with source citations to your own GitHub Pages, or browse the public examples.

How it compares

“Local” and “key” describe the repository tool, excluding the agent's model. This compares capabilities, not benchmark scores.

Tool Local processing Tool needs a model/key Graph / navigation Languages Updates
grep / read Yes No Text and files Any text Current files
CodeNib CodeGraph Yes No Typed SCIP/LSP graph 14 chunkers / 12 graph entries Reuse unchanged views; rebuild changed views
Serena Yes No retrieval model LSP/IDE symbol navigation and editing Backend matrix Backend-managed project state
CodeGraph (Lordymine) Yes No retrieval model Typed call graph Go, TS/JS Re-index on launch; no-op if unchanged
DeepWiki public MCP Hosted No user key Wiki and generated answers Public indexed repos Service-managed

Detailed comparison and boundaries. CodeNib's experimental grep → Jev route uses OpenRouter for planning and reranking; selected code goes to remote models. Its measured result does not apply to the model-free CodeGraph row.

Languages

Graph backends: Python, Go, Rust, C/C++, C#, Java, Ruby, PHP, Kotlin, Scala, JavaScript, and TypeScript. Swift and Lua support chunking/retrieval. Provider prerequisites and coverage differ by language.

The generated language matrix separates chunking, graph backends, incremental-backend support, and decoder parity. The product currently reuses or rebuilds views; file-level delta repair is not enabled.

Results and reproductions

Start here What you can inspect
grep → Jev result 100-issue retrieval comparison, candidate controls, model use and limitations
Agent integration matrix Revision-pinned LocAgent, Agentless, CoSIL, OrcaLoca and RepoNavigator contracts; compatibility does not imply reproduced paper scores
Dataset and benchmark matrix CodeNib Base/Synthesis, SWE-bench variants, Loc-Bench and SWE-Explore support
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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codenib 0.2.4
File Size Uploaded
codenib-0.2.4.tar.gz 3.5 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for codenib 0.2.4
File Interpreter ABI Platform
codenib-0.2.4-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
codenib-0.2.4-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details

Total release size: 10.5 MB

Release files / codenib-0.2.4.tar.gz

Download URL codenib-0.2.4.tar.gz
Size 3.5 MB
Tags Source
SHA-256 checksum
How to use checksums
bf3f70ff2c7970b256da0a1a6ccd60ae59e90e4d4b0066c0ee0ab9b4e5cc36d9
BLAKE2b-256 checksum
How to use checksums
e33f1aa244658b2883ca2505550c143ec59b11dbf88837a5b25d7f82254ef576
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 Sep 26, 2026.

Transparency log

Release files / codenib-0.2.4-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL codenib-0.2.4-cp310-abi3-manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
3586a9cc2fbb87a30294da2404c2179f402abb255e1e2039fc77e87cff086799
BLAKE2b-256 checksum
How to use checksums
8df5bd436dbf2470389d507d06f80a3b859ae9ff45cb2502c84602e35f540400
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 Sep 26, 2026.

Transparency log

Release files / codenib-0.2.4-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL codenib-0.2.4-cp310-abi3-manylinux_2_28_aarch64.whl
Size 3.5 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
fa36849866c3a1eecb3d38af69b6e3607ac746318cd4890b4120da4c77449732
BLAKE2b-256 checksum
How to use checksums
f3684568060f5add23a460c9be38692b9e978b8ba2c30cca5244ad147857da60
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 Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.4 This release

3 release files

0.2.3

3 release files

0.2.2

3 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page