graphify command does everything the agent skill does, from a terminal. Code extraction is deterministic and runs without an API key, so this is also the path for scripts and CI.
Use the CLI when you want to build graphs in a script or pipeline, inspect a codebase yourself, or check what your agent will see. To let an agent drive, use the skill quickstart.
Install
Build the graph
1
Extract the code
--code-only skips documents and media, so no model is called. On a copy of the Graphify package (98 code files) this took about 6 seconds.2
Write the report and HTML view
graphify-out/GRAPH_REPORT.md and graphify-out/graph.html. Drop --no-label to name communities with an LLM backend.Query the graph
- query
- path
- explain
- god-nodes
Traverse from the nodes that match your words and return a token-budgeted subgraph.Add
--dfs to follow one chain deeply instead of exploring broadly.EXTRACTED was read from the source, INFERRED was derived by a resolver, and AMBIGUOUS had several possible targets.
Keep it current
graphify update re-parses only files whose hashes changed. graphify hook install adds post-commit, post-checkout, post-merge, and post-rewrite hooks and registers a git merge driver for graph.json.
Troubleshooting
What’s next
MCP server quickstart
Give any MCP client the same queries as tools.
Self-host with Docker
Share one graph with your team over HTTP.
Try it in Graphify
We build and host the graph for you, and review your pull requests with it. The Free plan (up to 3 repositories) needs no card. Pro and Teams start with a 14-day trial, card required.