---
title: "Codegraph alternatives 2026: code knowledge graphs for agents"
canonical: "https://xerj.org/compare/codegraph-alternatives-2026"
updated: "2026-12-01"
---

# Codegraph alternatives in 2026: code knowledge graphs for AI agents

SHORT ANSWER · UPDATED 2026-12-01
What are the best Codegraph alternatives in 2026? For a skill that graphs a repo plus docs, graphify. For a local-first MCP and CLI map used in reviews, code-review-graph. For a Go engine with CLI, MCP and API, Gortex. For a single static binary MCP graph, codebase-memory-mcp. For a C++ CLI that picks context for an agent, ripwire. For ranked passages over the same files, XERJ.
**Key number:** Codegraph has 79,311 GitHub stars, is MIT licensed, and its latest release is v1.6.7, 30 Nov 2026. graphify has 155,614 stars and codebase-memory-mcp has 49,413 stars.
Stars and licences from the public GitHub API on 1 Dec 2026; latest releases from the GitHub releases API the same day. Features from each project's GitHub description and README.

**TL;DR** Codegraph is a pre-indexed local code knowledge graph for coding agents. It is MIT licensed and exposes the graph over MCP. Teams compare alternatives when they want a skill-based graph, a review-oriented map, a single static binary, or ranked file search rather than a symbol graph. Pick **graphify** for a repo-plus-docs skill, **code-review-graph** for a local MCP map used in reviews, **Gortex** for a Go CLI/MCP/API engine, **codebase-memory-mcp** for one static binary, **ripwire** for a C++ context CLI, and **XERJ** for hybrid search over the same code.

## Agent prompt

```text
Read https://xerj.org/compare/codegraph-alternatives-2026.md. Ask me which languages we use, whether the agent needs an MCP server, whether we want a symbol graph or ranked file search, and how the graph should stay current, then tell me which Codegraph alternative fits and how to install it.
```

## Pick one in ten seconds

- A pre-indexed local graph with MCP: **Codegraph**.
- A skill that graphs code, docs, schemas and PDFs: **graphify**.
- A local MCP and CLI map for reviews and large repos: **code-review-graph**.
- A Go engine with CLI, MCP and API: **Gortex**.
- A single static binary MCP graph: **codebase-memory-mcp**.
- A C++ CLI and MCP server for agent context: **ripwire**.
- Ranked passages over the repo, with citations: **XERJ**.

## Why people look for a Codegraph alternative

Codegraph builds a local knowledge graph of a repository and keeps it current so coding agents can ask for precise context instead of reading whole files. It is written in TypeScript, MIT licensed, and ships over MCP. The latest release is v1.6.7, 30 Nov 2026. Teams compare alternatives when they want a graph skill that also covers docs, a review-oriented map, a static binary, or hybrid search. For a four-way view of graphify, code-review-graph, Gortex and ripwire, see [graphify vs code-review-graph vs Gortex](https://xerj.org/compare/graphify-vs-code-review-graph-vs-gortex).

## Codegraph vs graphify vs Gortex

**Codegraph** is a pre-indexed, auto-syncing graph with an MCP server (79,311 stars, MIT, v1.6.7, 30 Nov 2026). **graphify** is a local skill that turns a codebase, docs, SQL schemas, configs and PDFs into a queryable graph using deterministic AST parsing (155,614 stars, Apache 2.0, v0.9.124, 30 Nov 2026). **Gortex** is a Go code-intelligence engine with a graph, CLI, MCP and API (2,704 stars, Apache 2.0, v0.64.12, 30 Nov 2026). Choose Codegraph when you want a dedicated, frequently released MCP graph; choose graphify when the skill should cover docs and schemas as well as code; choose Gortex when you want a Go binary with CLI, MCP and API together.

## When to choose code-review-graph, codebase-memory-mcp or ripwire

Choose **code-review-graph** when the job is a persistent local map for reviews and large-repo workflows (MIT, v2.4.0, 11 Nov 2026, 33,002 stars). Choose **codebase-memory-mcp** when you want a single static C binary MCP server with no runtime to install (MIT, v0.12.1, 16 Oct 2026, 49,413 stars). Choose **ripwire** when you want a zero-dependency C++23 CLI and MCP server that selects context for an agent (Apache 2.0, v0.7.0, 23 Nov 2026, 2,585 stars).

## XERJ: a new way for AI to search for data

XERJ is not a symbol knowledge graph. It is a local search engine for code and files: agents call it over MCP and get ranked passages with citations. The latest release is v1.0.0-rc.105 (23 Nov 2026). `xerj mcp --http` serves Streamable HTTP at `http://127.0.0.1:9330/mcp`, read-only unless you pass `--allow-writes`. A non-loopback bind needs `XERJ_MCP_TOKEN`. The flag is `--http`. Use a graph tool when the agent must walk callers and structure; use XERJ when it must search the text of the repo.

## Read next

- [graphify vs code-review-graph vs Gortex 2026](https://xerj.org/compare/graphify-vs-code-review-graph-vs-gortex)
- [Best MCP server for local code search 2026](https://xerj.org/compare/best-mcp-server-local-code-search-2026)
- [Grep alternatives 2026](https://xerj.org/compare/best-grep-alternative-for-ai-coding-agents-2026)
- [Sourcegraph alternatives 2026](https://xerj.org/compare/sourcegraph-alternatives-2026)
- [Greptile alternatives 2026](https://xerj.org/compare/greptile-alternatives-2026)

## FAQ

### What is the best Codegraph alternative in 2026?

graphify fits a local skill over code and docs. code-review-graph fits a local MCP map for reviews. Gortex fits a Go CLI, MCP and API. codebase-memory-mcp fits a single static binary. ripwire fits a C++ context CLI. XERJ fits ranked passage search over the same repo.

### Is Codegraph open source?

Yes. colbymchenry/codegraph is MIT licensed, with 79,311 GitHub stars on 1 Dec 2026, and its latest release is v1.6.7, 30 Nov 2026.

### How does Codegraph differ from grep or ripgrep?

Grep and ripgrep search text. Codegraph and the graph tools on this page index structure (symbols, relationships) so an agent can ask for related context without scanning every file. XERJ sits in between: it is search, with ranking and citations, not a symbol graph.

### Does XERJ replace Codegraph?

No. They solve adjacent jobs. Codegraph answers structural questions about a codebase. XERJ searches the text of code and other files. Some teams run a graph MCP next to XERJ.

### How was this page checked?

Stars and licences came from the public GitHub API on 1 Dec 2026. Latest releases came from the GitHub releases API the same day. Features were read from each repository's description and README.

## Evidence

- [colbymchenry/codegraph](https://github.com/colbymchenry/codegraph): 79,311 stars, MIT, v1.6.7, 30 Nov 2026.
- [Graphify-Labs/graphify](https://github.com/Graphify-Labs/graphify): 155,614 stars, Apache-2.0, v0.9.124, 30 Nov 2026.
- [tirth8205/code-review-graph](https://github.com/tirth8205/code-review-graph): 33,002 stars, MIT, v2.4.0, 11 Nov 2026.
- [zzet/gortex](https://github.com/zzet/gortex): 2,704 stars, Apache-2.0, v0.64.12, 30 Nov 2026.
- [DeusData/codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp): 49,413 stars, MIT, v0.12.1, 16 Oct 2026.
- [redhat-et/ripwire](https://github.com/redhat-et/ripwire): 2,585 stars, Apache-2.0, v0.7.0, 23 Nov 2026.
- [xerj-org/xerj](https://github.com/xerj-org/xerj): 23,083 stars, Apache-2.0, v1.0.0-rc.105 (23 Nov 2026).

Looking for a codebase-memory-mcp alternative? [codebase-memory-mcp alternatives 2026](https://xerj.org/compare/codebase-memory-mcp-alternatives-2026) compares it with Codegraph, graphify, code-review-graph, Gortex, Serena, Claude Context and XERJ, with a filter.
