Graphify is an open-source tool that helps build a comprehensive Knowledge Graph from your codebase and project documentation, optimizing collaboration with AI coding assistants like Claude Code, Cursor, or Gemini CLI. Instead of forcing the AI to re-read hundreds of source files every time you ask a question, Graphify indexes structural relationships using AST (Abstract Syntax Tree), helping reduce token consumption by up to 71.5 times and improving response accuracy.

1. What is Graphify and Why Do You Need a Knowledge Graph for Your Codebase?
If you have ever asked an AI to explain or refactor a large project, you know the drill: with every prompt, the AI has to re-scan tens of thousands of lines of code just to figure out which module a function calls or where a class inherits from. This not only slows down response times, but also bloats the context window and racks up unnecessary token costs.
Graphify completely solves this problem using the “City Map” principle:
- The old approach: The AI acts like a pedestrian walking down every single street to find the way (manually reading file by file).
- The Graphify approach: Builds a complete satellite map of the entire city in advance. Whenever a question is asked, the AI simply consults the relationship map to go straight to the target location.
- Offline AST parsing: Graphify leverages the
tree-sitterlibrary to perform static syntax analysis entirely locally on your machine, ensuring absolute security by never sending your source code over the internet.
Real-world benchmarks show that using a Knowledge Graph reduces the number of tokens fed into the AI by an average of 71.5x per architectural query, while completely eliminating hallucinations regarding project structure.
2. System Requirements and 3-Step Installation Process
Graphify requires a computer with Python 3.10 or higher installed. To manage the environment without version conflicts or PATH environment variable errors, the most standard method is using the uv package manager:
Step 1: Install the uv package manager
Open Terminal (on macOS / Linux) and paste the following command:
For Windows PowerShell (run as Administrator):
Step 2: Install Graphify CLI on your system
Once you have uv, install Graphify into an isolated tool environment with a single command:
Step 3: Register the Skill with Your AI Coding Assistant
Run the following command so Graphify can automatically detect and register the skill with Claude Code, Cursor, or Gemini CLI installed on your machine:
The command above will automatically generate slash command definitions in each AI assistant’s configuration directory without requiring any manual setup.
3. Three Core Commands to Initialize and Query the Graph
After completing the installation, you can directly run these commands right inside the Claude Code or Cursor chat window:
In Windows PowerShell, a leading forward slash may be misinterpreted as a directory path. Omit the leading slash and enter graphify . instead of /graphify ..
Once the graph is initialized for the first time, you can ask the AI any question about your architecture flow—for example: “Which components call the authenticate() function in the auth module, and which database tables does it affect?” — The AI will query the knowledge graph to answer instantly.
4. Meaning and structure of the 3 output files in graphify-out
Whenever analysis is complete, Graphify creates a directory named graphify-out/ directly inside your project, containing 3 important files:
A visual web page that lets you drag, zoom, and inspect clusters between modules across your project like a galactic network.
A Markdown document compiling code quality metrics: dependency bottlenecks, god-class files, and architecture optimization recommendations.
A structured JSON file containing the complete list of Nodes and Edges for AI assistants to load into memory and look up at lightning speed.
5. Team Setup and Advanced Extension Packages
If you work in a team, commit the graphify-out/ folder to your project’s Git repository. This way, any team member who clones the project instantly has access to the existing knowledge graph without wasting time rebuilding it from scratch.
Add the line graphify-out/cost.json to your project’s .gitignore file, as this file only tracks your personal token costs and does not need to be shared across the team.
For specialized, advanced needs (such as reading financial documents, connecting to databases, or sharing via MCP), install the following extension packages:
6. Manual Installation Guide for Skills from GitHub
If your network environment blocks automated commands, you can manually create the skill file .claude/skills/graphify/SKILL.md in your project directory with the following standardized content:
7. Common Errors and Troubleshooting
Below are the 5 most common scenarios encountered when integrating Graphify, along with quick troubleshooting guides:
8. Frequently Asked Questions (FAQ)
Answers to questions about costs and methods for integrating Graphify into your software development workflow:
Read next: Guide to Claiming a Free 1-Year Google AI Plus Plan for Students

Chưa có bình luận nào. Hãy là người đầu tiên chia sẻ góc nhìn!