Skip to content
FossShelf
Home / Categories / For Engineers

graphify

Turn your codebase into a knowledge graph your AI can trace and cite.

Replaces Atlassian Code Context, Sourcegraph Cody, Codeconductor, Progress Data Platform

149.06K starsApache-2.0reviewed 19 Aug 2026last commit 12 Nov 2026
Screenshot of graphify

Who it's for

Developers onboarding to an unfamiliar large codebase

Build the graph once and your assistant already knows the architecture before you ask your first question. Query god nodes to understand what flows through the most-connected symbols. Ask 'who owns billing?' and get a two-hop path through the actual code instead of reading dozens of files.

Skip if the codebase fits in a single prompt window or has fewer than a handful of modules. Graphify's value scales with codebase size; on small projects, grepping and reading files directly is faster.

AI engineers building graph-augmented coding workflows

The graph.json output is a structured, queryable artifact you can build tooling on top of. Integrate it into CI pipelines, serve it via MCP HTTP for team access, or use it as a grounding layer for custom agents. The LOCOMO recall@10 of 0.497 versus mem0's 0.048 documents the quality delta over flat retrieval.

Skip if your questions stay within single-symbol scope. Graphify answers multi-hop questions across the codebase; LSP handles single-hop go-to-definition and is simpler for that use case.

Teams doing PR review on a large monorepo

`graphify prs` provides a terminal PR dashboard with CI status, AI triage, and merge-conflict risk assessment. The graph lets your assistant reason about blast radius when a highly connected symbol changes, which standard diff review cannot do.

Skip if your PRs touch isolated modules with no cross-module dependencies. In those cases, standard diff review covers the analysis without the overhead of maintaining a graph.

Privacy-first teams who cannot use cloud code indexers

Every major commercial code intelligence platform requires shipping source code to a remote server for indexing. Graphify builds the graph locally: your source stays on your hardware, and the only outbound traffic is the queries your assistant already sends to your configured model provider.

Skip if your team is already on a self-hosted Sourcegraph Enterprise instance with SSO and managed indexes. Graphify is better suited to teams that want local-first intelligence without running a full Sourcegraph stack.

The problem

AI coding assistants navigate codebases by reading files and grepping for symbols. Every session starts from zero: no memory of the architecture, no understanding of which modules call which, no awareness of what breaks if a central symbol changes. On a codebase of any real size, the assistant spends a significant portion of each session re-deriving structure it derived yesterday, consuming tokens to read files it has already read. The deeper problem is answer quality. Fuzzy similarity search retrieves chunks that look related by embedding distance, then asks the model to reconnect them. When the relevant context spans multiple files and call chains, the model guesses at the links. Answers cite no path, and the reader has no way to check whether the reasoning traced real code or plausible-sounding associations.

How it works

Deterministic AST graph build

Parses your codebase with 36 tree-sitter grammars covering 40 languages. No LLM call, no embeddings, no credits consumed during the build. The output is a local graph.json storing every function, class, and file as an entity, with typed cross-file relationships (calls, imports, inherits, mixes_in) resolved by static analysis. The build runs on your hardware and produces no outbound traffic.

Typed edge provenance

Every relationship in the graph carries a confidence tag. EXTRACTED means the relationship exists at a specific file and line you can open in your editor. INFERRED means it was derived from structure and naming conventions. When your assistant answers from the graph, you can see exactly what was read from source versus what was reasoned.

Skill install in 17 coding assistants

One `graphify install` command registers the /graphify skill with every AI coding assistant it detects: Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, Aider, and 11 more. The same graph.json is also available via an MCP server, letting any MCP-compatible client query it without running the full CLI.

Query, path, and explain commands

Three terminal commands query the graph directly. `graphify query` answers a plain-language question by returning a scoped subgraph. `graphify path A B` traces the shortest hop-by-hop route between any two nodes. `graphify explain` shows all connections for one entity, its source file, community, and degree.

Community detection and god node ranking

Graphify automatically clusters tightly linked code into named modules using the Leiden algorithm, with no LLM call. The GRAPH_REPORT.md highlights god nodes (the most-connected symbols, where a change ripples wide) and unexpected cross-module dependencies, ranked by degree of unexpectedness.

On-device, no telemetry

All code parsing runs locally via tree-sitter with nothing uploaded and no usage tracking. There is no opt-out because nothing is sent. Non-code files (PDFs, docs, images, video) are optionally processed by a model backend you configure, including a local Ollama instance to keep all data on-device.

Features

  • Deterministic AST graph build
  • Typed edge provenance
  • Skill install in 17 coding assistants
  • Query, path, and explain commands
  • Community detection and god node ranking
  • On-device, no telemetry

How to install

Graphify runs locally as a Python CLI tool with no server or cloud setup required; the PyPI package is `graphifyy` (double-y).

pip install graphifyy
graphify install

Recommended for this setup

Strengths

  • Zero LLM credits for graph build: The graph is built with deterministic AST parsing: no model call, no token spend. On the LOCOMO benchmark (n=300), graphify scored recall@10 of 0.497, versus mem0's 0.048 and supermemory's 0.149. Community users reported 71.5x fewer tokens consumed in Claude Code sessions after integrating graphify into their workflow.
  • Apache 2.0 with full local operation: The Apache 2.0 license permits commercial use, modification, and distribution without restriction. Unlike Sourcegraph Cody, which requires a Sourcegraph account and ships your repository to a remote indexer for processing, graphify's graph build runs entirely on your own hardware. Your source code never leaves your machine.
  • Auditable answers with file:line citations: Every answer traces to a real graph path, with each edge tagged as extracted or inferred and pointing to a specific file and line number. Vector RAG returns an opaque similarity score; graphify returns a hop-by-hop path you can open in your editor and verify. The difference is following the actual call and import edges versus guessing which chunks are relevant.
  • Cross-assistant portability: One graph.json works across all 17 supported assistants. Install the skill once and the same knowledge graph is available in Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, and Aider. Teams can serve the graph over an MCP HTTP server so each member queries the same shared artifact without running their own parse.

Trade-offs

  • PyPI package name is graphifyy (double-y): The official package on PyPI is `graphifyy`, not `graphify`. Other `graphify*` packages are unaffiliated. This naming causes installation friction: `uvx graphify` fails because uv reads the first token as a package name. The correct approach is `uv tool install graphifyy` or `uvx --from graphifyy graphify install`.
  • Non-code files require a configured model backend: Code is parsed locally with tree-sitter and requires no model call. Docs, PDFs, images, and video require the model backend you configure for a semantic pass. A fully air-gapped setup needs a local Ollama instance to process non-code files; without one, those files are excluded from the graph.
  • Pre-v1 with a high open-issue count: Graphify is at v0.9.x and carries nearly 1,000 open GitHub issues. For a project with over 107,000 stars, this reflects rapid community growth outpacing maintainer capacity. Core graph build and query are stable, but platform-specific behaviors and edge features may be inconsistent across the 17 supported assistants.

Tech stack

Languages
Python, TypeScript, Dockerfile
Frameworks
—
Databases
—
Tooling
AWS

FAQ

Does my code leave my machine when I use graphify?

No. Graphify parses code locally with tree-sitter: deterministic AST extraction, no model call, nothing uploaded. Non-code files are optionally processed by the model backend you configure, which can be a local Ollama instance to keep everything on-device. The only outbound traffic from a graphify session is the queries your assistant already sends to your own model provider.

How is graphify different from RAG or vector search?

RAG retrieves fuzzy top-k chunks by embedding similarity and asks the model to reconnect them. Graphify builds a real graph and traverses it, so every answer is an explicit path with file:line citations: no embeddings and no vector store. The difference is following the actual call and import edges versus guessing which chunks are relevant by similarity score.

Is graphify free to use commercially?

Yes. The core tool is Apache 2.0 licensed and free for commercial use with no account or API key required. There is a separate enterprise layer in early access for teams, self-hosted on your own infrastructure, covering graph-aware review and formal verification at the merge gate.

Which AI coding assistants does graphify support?

17 assistants as of the current release, including Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, and Aider. Running `graphify install` registers the /graphify skill with every assistant it detects on your machine. The graph is also served over an MCP server that any MCP-compatible client can query.

My editor already has LSP go-to-definition. Why would I need graphify?

LSP answers one-hop questions: where is this symbol defined, and where is it referenced. Graphify answers multi-hop questions: what modules call this function across the entire codebase, what breaks if this god node changes, what is the shortest path between two subsystems. The two tools cover different scopes and work well together.

Similar tools

More in Engineers