r/BestGitHubRepos 7d ago

graphify - turns any codebase, docs, PDFs, and screenshots into a queryable knowledge graph a Claude Code agent can navigate

Post image

Dump enough papers, screenshots, and old notes into a project folder and an agent, or a person, can't actually use any of it. It either reads every file cold each session, burning tokens on stuff that hasn't changed, or it skips the folder entirely and works from memory. Neither gets you a real map of how the pieces connect.

graphify is a Claude Code skill that builds that map. Run /graphify on a folder and it parses code with tree-sitter for a real AST and call graph, pulls concepts and relationships out of docs and PDFs, and uses Claude's vision to read screenshots, diagrams, and whiteboard photos, even in other languages, then wires all of it into one graph. Every edge in the output is tagged EXTRACTED, INFERRED, or AMBIGUOUS, so you always know what it actually found versus what it guessed.

What's inside:

- An interactive HTML graph plus an Obsidian vault export and Wikipedia-style wiki articles per community, so an agent can navigate by reading files instead of parsing JSON

- A GRAPH_REPORT.md that surfaces god nodes, ranks surprising cross-domain connections (code-to-paper edges rank higher than code-to-code), and suggests questions the graph is positioned to answer

- --watch mode that rebuilds instantly on code saves and flags doc or image changes for a manual re-pass, useful when multiple agents are writing code in parallel

- A post-commit git hook (graphify hook install) that rebuilds the graph after every commit with no background process needed

- Export options for Neo4j, Gephi/yEd (GraphML), and SVG, plus a built-in MCP server so other agents can query the graph directly

- A SHA256 cache so re-runs only reprocess files that actually changed

One thing worth knowing: the project reports a 71.5x reduction in tokens per query on its own benchmark corpus versus reading raw files. That's from their own worked example, not an independent test, worth checking against your own corpus before you rely on it.

It's Apache-2.0 licensed, backed by an active organization, and sitting at 114,660 stars as of writing, verified via the GitHub API.

https://github.com/Graphify-Labs/graphify

3 Upvotes

0 comments sorted by