Claude Code is a powerful tool, but it can be expensive when it has to reread everything. Graphify is a plugin that fixes this issue by turning raw files into a knowledge graph, then mapping how each file connects. This allows Claude Code to get context without burning tokens, resulting in less guessing and better answers.
## Overview Graphify was inspired by Andrej Karpathy, co-founder of OpenAI, who wanted a solution for the raw folder strategy. The plugin creates a knowledge graph of all the information in the database and preemptively creates semantic relationships between all the files in the code base. This allows Claude Code to understand the intimate relationship that one file has in relation to another.
## How it works To use Graphify, users can add Graphify Query to their search, and Claude Code will get context without burning tokens. The plugin also allows users to visualize the knowledge graph in Obsidian, providing a clear understanding of the relationships between files. By using Graphify, users can save 70 times on token per search and get better answers.
## Tradeoffs The main benefit of using Graphify is the reduction in token usage, which can result in significant cost savings. Additionally, the plugin provides better answers and less guessing, making it a valuable tool for users who rely on Claude Code. However, the plugin may require some setup and configuration, and users will need to have a basic understanding of how to use it.
In conclusion, Graphify is a powerful plugin that can help optimize Claude Code and reduce token usage. By creating a knowledge graph and mapping connections between files, Graphify provides context to Claude Code without burning tokens, resulting in better answers and less guessing. Users who are interested in learning more about Graphify can comment below for a full breakdown on how to use it, and follow for more updates, including an upcoming interview with the creator of the plugin.
