Graphify: Let Coding Agents Query Graphs First

techNmak · x · 2026-07-12

This post introduces Graphify, an 82k-star GitHub project. Its core idea is to have coding agents map the codebase into a queryable knowledge graph instead of repeatedly running grep or opening files one by one. The project links functions, classes, files, SQL schemas, infrastructure, docs, and even PDFs/images/videos as nodes and relationships in a graph. Agents can then trace connections, like how authentication links to the database, or the path from UserService to DatabasePool.

The post emphasizes that this is not traditional RAG: it doesn’t rely on embeddings, vector DBs, or LLMs. It uses tree-sitter locally to parse code, turning calls, imports, and inheritance into graph edges. It also tags relationships as EXTRACTED, INFERRED, or AMBIGUOUS to help agents distinguish hard facts from inferences. Graphify can also install hooks/persistent instructions for assistants like Claude Code, Codex, Cursor, Gemini CLI, and Copilot, ensuring agents query the graph before taking action. The graph can be committed to Git, rebuilt automatically with commits, shared across teams, and exposed via MCP.

Related event: Graphify Maps Codebases into Knowledge Graphs for AI Agents(3 posts)→

Original post →

More from coding & agent

coding & agent channel →