graphify
Agent skill that turns a codebase and its docs into a searchable knowledge graph for Claude Code, Cursor, Codex and Gemini CLI.
- Stars
- 153,078 stars
- Forks
- 15k forks
- Last push
- today
- Activity
- Active
# Install the CLI$ uv tool install graphifyy# Set it up for Claude Code$ graphify install# Map your project (in your AI assistant)$ /graphify .Commands from the project's README. Run them after installing (see below).
Overview
Understand graphify in 60 seconds
- What it does
- Graphify turns a codebase, plus its docs, PDFs, images and videos, into a knowledge graph you can query. Your coding agent can then ask how parts connect instead of searching through files.
- The problem it solves
- Agents and new team members waste time grepping files to understand how a project fits together. Graphify maps components, calls, imports and design notes into a graph once, so questions like 'what connects auth to the database' get a direct answer.
- Why choose it
- Choose it if you want a local, explainable map of your code rather than a vector search. Code parsing runs fully on your machine with no LLM; only docs and media use a model.
- Who should use it
- Developers joining an unfamiliar codebase
- Coding agent users who want reusable project context
- Teams tracing dependencies before a refactor
- Anyone mapping docs and papers alongside code
- Setup difficulty
You'll need:
- Python 3.11.5 to 3.14
- uv (recommended) or pipx
- A supported AI coding assistant
How graphify works
Graphify parses code with tree-sitter across about 40 languages to find calls, imports and inheritance, with no LLM and nothing leaving your machine. Docs, PDFs, images and video get a semantic pass using your assistant's model or an API key you configure.
Each edge is tagged EXTRACTED (explicit in the source) or INFERRED (resolved by Graphify), so you can tell what was read directly. It is not a vector index: there are no embeddings, just a graph you traverse with query, path and explain commands.
A run produces three files: graph.html to click through in a browser, GRAPH_REPORT.md with key concepts and suggested questions, and graph.json to query later. It also finds the most-connected components and splits the code into subsystems. Graphify Cloud is a separate paid service for always-on, cross-repo graphs.
Features
Key features
Local code mapping
tree-sitter parsing across about 40 languages, no LLM needed.
Explained edges
Every connection is tagged EXTRACTED or INFERRED.
Query, path, explain
Ask questions, trace paths or explain one concept.
Beyond code
Docs, PDFs, images and video join the same graph.
Subsystems and hubs
Finds the most-connected components and groups the code.
20+ assistants
Claude Code, Cursor, Codex, Gemini CLI, Copilot and more.
Strengths
- Code parsing is private and deterministic
- Clear separation of read versus inferred links
- Interactive HTML graph
- Apache-2.0 license
Limitations
- Semantic pass on docs and media uses model credits
- Very large graphs have labeling and rendering limits
- Always-on cross-repo graphs need the paid Cloud service
Practical use cases
Onboard to a new project
Ask how the main components connect.
Plan a change
Trace callers and dependencies of a shared component.
Investigate a bug
Show the path between an endpoint and storage.
Installation
Install graphify
Commands come from Graphify's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Python 3.11.5–3.14
- uv or pipx
Supported systems
- macOS
- Linux
- Windows
- 1
Install the CLI
Or: pipx install graphifyy
Shelluv tool install graphifyy - 2
Set it up for Claude Code
Shellgraphify install
- 1
Install the CLI
Shelluv tool install graphifyy - 2
Name your assistant
In Codex, invoke with $graphify instead of /graphify.
Shellgraphify cursor install # Cursorgraphify install --platform codex # Codex (invoke with $graphify, not /graphify)
Configuration and API keys
| Setting | What it's for |
|---|
First run
- 1
Build the graph in your assistant
Text/graphify . - 2
Open graphify-out/graph.html in a browser
graphify's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Map a codebase and ask how it fits together
Build a knowledge graph of your project and query it from your coding agent.
Before you start
- Graphify installed and set up for your assistant
- A project folder
- 1
Build the graph
Text/graphify . - 2
Ask a question
Text/graphify query "what connects auth to the database?" - 3
Trace a path between two things
Text/graphify path "UserService" "DatabasePool" - 4
Keep it fresh on commit
Shellgraphify hook install
What to expect
A graphify-out folder with graph.html, GRAPH_REPORT.md and graph.json, and answers that cite the connecting nodes.
Next steps
- Re-extract only changed files with /graphify . --update
- Connect your agent over MCP
- Build a Markdown wiki with /graphify . --wiki
Costs and requirements
What it costs to run
- License
- Apache-2.0. Free to use, modify and use commercially.Free
- Code mapping
- Free and local, with no model calls.Free
- Docs and media pass
- Uses your assistant's model or an API key you configure.Depends
- Graphify Cloud
- Paid hosted service; the README says you can start free.Depends
Troubleshooting
Common setup issues
Install or extraction problems
See the troubleshooting page at docs.graphify.com/troubleshooting.
/graphify does nothing in Codex
Codex uses $graphify instead of /graphify.
Graph is out of date after git pull
Run graphify update . or install the git hook with graphify hook install.
Alternatives
Similar AI repositories
hermes-agent
NousResearch
Personal AI agent from Nous Research that learns and improves the more you use it.
ui-ux-pro-max-skill
nextlevelbuilder
AI agent skill that gives coding assistants design guidance for building polished user interfaces.
spec-kit
github
GitHub toolkit for spec-driven development, where you write a specification first and let an AI coding agent build from it.
Agent-Reach
Panniantong
Command-line tool that lets AI agents read and search Twitter, Reddit, YouTube, GitHub and other sites.