Graphify is designed to provide shared codebase context for AI coding assistants and developers. It can map an entire project (including code, documentation, PDFs, images, and videos) into a queryable knowledge graph, replacing line-by-line searching through files.
Key capabilities:
- Code mapping runs entirely locally: deterministic parsing using tree-sitter AST, with no LLM calls, and data never leaves the local machine.
- Documentation, PDFs, images, and videos go through an optional semantic processing stage, analyzed using the assistant model or a configured API key.
- Every connection edge carries a label: EXTRACTED (explicitly present in the source) or INFERRED (inferred by Graphify's parsing), making it easy to distinguish directly read content from inferred content.
- It does not use vector indexes or embedding storage; instead, it builds a real, traversable graph. It supports natural language queries, tracing paths between two concepts, and explaining a single concept.
- It generates a GRAPH_REPORT.md report summarizing the most connected components, subsystems, and critical paths for architecture review.
- It supports local parsing of about 40 programming languages.
- It offers an MCP connection method so MCP-capable agents can query the graph directly; it also provides a local stdio server.
- It supports a continuous running mode covering the entire software development lifecycle, including monorepo and cross-repository support, formal verification, code review, and connectors such as Sentry and Jira.
Usage:
- Requires Python 3.11.5–3.14 and uv (or pipx).
- After installation, run graphify install once to automatically detect assistants and register the skill.
- Enter /graphify in an AI assistant (use $graphify for Codex) to start mapping the project.
- Generates three files, including a persistent graph that contains graph.schema_version and graph.graphify_version so integrations can detect format changes.
- Supports project-level installation (--project) to write the skill into the current repository.
- You can use graphify query "<question>" to get a scoped subgraph, and graphify path A B to trace the connection path between two things, with an overall path confidence (taking the weakest hop).
- Supports making the assistant always prioritize the graph: through hook platforms (Claude Code, Gemini CLI) automatically trigger a prompt before search-type tool calls; write persistent instructions through instruction-file platforms (Codex, OpenCode, Cursor, etc.).
- Provides the uninstall command graphify uninstall, which can be combined with --purge to delete graphify-out/.
Use cases:
- When you need to understand the codebase structure rather than reading it line by line.
- Tracing dependencies and understanding how components connect.
- Providing reusable context across sessions for coding agents.
- Conducting large-scale architecture reviews, code reviews, and PR impact analysis.
- Continuously maintaining a code knowledge graph in monorepo or cross-repository environments.
Limitations and notes:
- Code parsing is free and fully local; semantic processing of documents, PDFs, images, and videos requires an assistant model or a configured API key.
- The official PyPI package name is graphifyy (double y); other graphify* packages are unrelated; the CLI command remains graphify.
- Some platforms require additional configuration, for example Codex requires enabling multi_agent = true in ~/.codex/config.toml to support parallel extraction.
- Different platforms vary in their support for hooks and parallel subagents; some platforms use sequential extraction.
- HTML export has a default node limit of 5000; beyond that, an aggregated community view is rendered.
- Clustering uses networkx Louvain by default, and uses Leiden if the leiden extra dependency is installed; switching clustering algorithms reshuffles all communities and requires relabeling.
- Label batching defaults to 100 communities per batch, suitable for about a 16k token context; for an 8k window, use --batch-size 40.
- Context overflow does not split and retry; failed batches retain hub-based names.
- Respects .gitignore, and supports --exclude and a project-level .graphifyignore.
- In strict mode (--strict), Claude Code's Read and dedicated Grep share one rejection per session unless a recent graph query has localized (default 30 minutes).
- The Pi platform requires Pi 0.58.4 or newer and requires a persistent installation of Graphify.
- Some features (such as hosted graphs, free plan) specific billing and pricing information is not yet provided.