← Back to Leaderboard
CJakedismo

Jakedismo/codegraph-rust

Rust GraphRAG over MCP for codebase context and change-impact analysis

View on GitHub ↗
Engineering Health (Methodology)
B · 54/100
Maintenance Activity
● Updated 1mo ago
Latest Release
Rolling commits (main)
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance26/35
Fork Adoption16/25
Release Cadence6/20
License Clarity6/20
CLIMCP
Total Stars
★ 927
24h Growth
+0
7d Growth
+5
Forks
100

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

Jakedismo/codegraph-rust Star History (2025-09-16 - 2026-12-03) ALL-TIME STAR HISTORY (2025-09 – 2026-12) +926 in 443d · avg +2/day 979 490 0 2025-09-16: ★ 12025-10-18: ★ 42025-11-15: ★ 72025-12-13: ★ 442026-01-10: ★ 712026-02-07: ★ 1282026-03-07: ★ 1462026-04-04: ★ 1712026-05-02: ★ 1872026-05-30: ★ 7612026-06-27: ★ 8002026-07-25: ★ 8372026-08-22: ★ 8612026-09-19: ★ 8752026-10-17: ★ 8982026-11-13: ★ 9152026-12-03: ★ 927 ★ 927 2025-09 2026-04 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

CodeGraph is a Rust workspace with separate parser, graph, vector, and MCP crates, including dedicated MCP tool, server, and daemon crates. Indexing extracts source spans and relationships with AST parsing and FastML. The selected tier determines whether build context, LSP resolution, and enrichment also run. SurrealDB backs the code graph, while embeddings support semantic retrieval. The combination lets an agent retrieve relevant code and then follow its recorded relationships instead of treating each retrieved snippet as an isolated result.

The same four agentic operations are available through the CLI and MCP over stdio. Rig supplies the reasoning layer: ReAct is the default tool-calling loop, LATS explores and evaluates candidate branches using their graph observations, and Reflexion retries with error feedback. Index construction is separate from this query-time reasoning, and embedding and semantic-resolution scheduling can be configured independently of the extraction tier.

Key Capabilities & Differentiators

The default fast tier keeps AST nodes and core edges without LSP or enrichment. balanced adds build context, LSP symbols, module links, and document and contract enrichment, while still filtering out References edges. full enables all analyzers and LSP definitions without that edge filtering. The richer graph can connect Markdown and SurrealQL documentation to backticked symbols, represent Rust-local dataflow, and surface package cycles or configured boundary violations.

agentic_context, agentic_impact, agentic_architecture, and agentic_quality cover context assembly, dependency and call-chain analysis, system structure and API surfaces, and complexity or coupling hotspots. Full, single-file, and watch indexing reconcile against the same project-wide catalog, retaining caller information across edits, renames, and deletions. For embeddings, Ollama and LM Studio are covered by batching controls; Ollama input handling accounts for model and serving context, including Qwen3 Embedding and nomic-embed-text-v2-moe.

Trade-offs & Limitations

Compared with grep or editor LSP alone, CodeGraph is most useful when the starting point is a question rather than a known string or symbol, and the answer requires following relationships across files. It can retrieve by meaning and then traverse call or dependency edges. In exchange, the team has an index to keep current and an additional model in the query path. Treat change-impact output as evidence to verify, not as a complete list of everything a refactor will break.

Start with fast and move up when missing edge types limit useful answers; richer extraction adds analyzer and storage costs without guaranteeing better answers. Deferred inference can make structural graph data available before semantic processing finishes. LATS adds candidate exploration and evaluator calls, so use ReAct as a baseline before paying for the extra work. Cloud providers add network, quota, cost, and source-data considerations; local inference shifts the load to model-serving hardware. The Cargo workspace declares MIT OR Apache-2.0, but verify repository-level coverage and dependency and model terms before redistribution.

Hardware & Deployment Guide

The Cargo workspace declares Rust 1.95 and edition 2024. It defaults to the core crate, so a plain workspace-root build should not be assumed to produce the CLI. The tree includes install-codegraph.sh and install-codegraph-full-features.sh. Configure embedding and LLM providers through the project .env or environment, then start with codegraph index /path/to/project --index-tier fast. Use the CLI directly or launch codegraph start stdio from an MCP client. The Python manifest is for test utilities, not the server runtime.

balanced and full fail early if required LSP tooling is absent. Check rust-analyzer --version from the target Rust project; JavaScript and TypeScript require Node.js and typescript-language-server, while Python requires Node.js and pyright-langserver. For offline Ollama use, pre-stage the model weights and tokenizer: recognized tokenizers can be downloaded on first use, but weights are not. No GitHub release is listed, so pin a source revision and validate build flags and indexing behavior before rolling it out to a team.

Index tiers: fast keeps AST nodes and core edges; balanced adds LSP symbols and module linking; full adds definition resolution and dataflow.
Incremental reconciliation: Full, single-file, and watch runs share a project-wide catalog, reuse unchanged artifacts, and write changed graph records and file metadata.
Inference scheduling: Embedding and semantic resolution have independent sync, deferred, and off policies; deferred work is resumable.
Embedding inputs: AST spans preserve whole functions or classes when they fit; oversized inputs split at Tree-sitter boundaries, and Ollama requests use truncate=false.
Agent execution: Rig runs the same tools through ReAct, branching LATS with evaluator calls, or Reflexion with error feedback.
Architecture rules: codegraph.boundaries.toml matches denied package dependencies and records violates_boundary edges.
Best For

Teams maintaining a shared codebase whose agents repeatedly need cross-file context, caller tracing, or package-boundary analysis, and that can keep the index and model providers operational.

Skip If

Exact search and editor navigation already cover the work, or policy prohibits sending source to remote providers and the team cannot provision local inference.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIMCP
# Install LLVM so ld64.lld is on PATH (Homebrew)
brew install llvm

# Use the repo-provided Makefile targets
make build-llvm
make test-llvm

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
codegraph-rust ★927+5Rust—Rust GraphRAG over MCP for codebase context and change-impact analysis
graphify156.8k+2.4kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.
codebase-memory-mcp49.6k+335CMITA local code graph for tracing code, docs, and infrastructure via MCP.
taste-skill125.3k+2.9kJavaScriptMITAn agent skill for directing company website design and checking builds in a bro

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/Jakedismo/codegraph-rust.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

Jakedismo/codegraph-rust Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about codegraph-rust

How does CodeGraph fit into an existing coding-agent workflow?

Index the target project, then either call codegraph agent context from the shell or configure an MCP-compatible client to launch codegraph start stdio. The CLI and MCP expose the same four agentic operations. codegraph init offers project-local hook setup and adds agent instructions; persistent cross-session memory is a separate sibling project.

Does running the Rust CLI locally require a GPU?

There is no fixed GPU or VRAM requirement established here. With remote inference, size the host for parsing, graph storage, and any language-server processes, then account separately for provider quotas and latency. With local inference, model size, context length, batch size, and concurrent requests govern RAM or VRAM demand. Measure indexing and interactive queries separately: they stress different parts of the stack.

What should we verify before commercial use or private self-hosting?

The Cargo workspace declares MIT OR Apache-2.0, but the repository-level license is unspecified. Before commercial redistribution, verify the terms for the exact files, bundled dependencies, and model artifacts you intend to ship. For private self-hosting, verify the embedding and LLM endpoints separately: local CLI execution does not make remote inference local. An offline Ollama setup also needs model weights and a tokenizer provisioned in advance.

When is CodeGraph worth using instead of grep and editor LSP?

Use grep or ripgrep for exact text and your editor's LSP for direct navigation from a known symbol. CodeGraph earns its upkeep when the question starts in natural language and the answer spans several files or relationship types, such as tracing callers and package dependencies before a refactor. Its results still depend on the index, the language tooling, and the model; check consequential findings against source and tests.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining Jakedismo/codegraph-rust? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature Jakedismo/codegraph-rust on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare