graphify command yourself in a terminal. Both write the same files to graphify-out/.
The short version. Install the package and add the skill:
/graphify .. The steps below explain each command.
Before you start
- Python 3.11.5 or later. uv installs it for you.
- For the skill: a coding agent that
graphify installsupports. Claude Code is the default. - For the terminal: nothing else. Code extraction needs no agent and no API key.
Build your first graph
Pick how you want to work. The Skill tab lets your agent build and query the graph. The Terminal tab is for scripts, CI, or checking what your agent will see.- Skill
- Terminal
1
Install the package
Run one of these. uv is recommended: it installs Python 3.11.5 or later for you and keeps Graphify in its own environment.If you already install command line tools with pipx, use it instead. It also gives Graphify its own environment.If you manage Python yourself, for example inside a virtual environment, use pip.The package is
graphifyy (two y’s). It installs the graphify and graphify-mcp commands. Run graphify --version to check which version you have. If your shell cannot find graphify, see Command not found.2
Install the skill
~/.claude/skills/graphify/SKILL.md and registers it in ~/.claude/CLAUDE.md. For another agent, pass --platform, for example graphify install --platform codex, graphify install --platform cursor or graphify install --platform opencode. Copilot in VS Code uses graphify vscode install. OpenCode users can follow OpenCode and Graphify CLI, and every agent is listed in Integrations.3
Map the repository
Open your agent in the repository and type:In Codex, select the Graphify skill with
$graphify and ask it to map the current repository. This is an instruction for the agent, not a shell command.The agent runs detection, extraction, and clustering, then summarises the report. Code is parsed locally. Documents, papers, and images go through the agent’s own model.4
Ask a question
What changes in your repository
After the first run you’ll find agraphify-out/ folder:
graph.html is the interactive graph. GRAPH_REPORT.md lists concepts, communities and suggested questions. graph.json is the graph that CLI and MCP queries read. Open graph.html in a browser to explore. Commit graph.json and GRAPH_REPORT.md if you want teammates and CI to share the same graph; add cache/ to .gitignore.
Verify it worked
graphify-out/, or pass --graph graphify-out/graph.json.
Ask better questions
Four commands cover most questions. They work the same from a terminal and, with a/graphify prefix, inside your agent.
- 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. This is graph context from the files Graphify analyzed, not a verified answer. Open the source lines it cites before you rely on it. For every flag, see Querying and the CLI reference.
Useful skill commands
Keep it fresh
graphify update . after git pull. To refresh by hand, graphify update . re-parses only code files whose hashes changed. When docs or images change, run /graphify . --update.
Check that the hooks are in place:
Keep everything on your machine
Graphify CLI stores its graph on your filesystem and does not need a Graphify account. For a code graph with no model calls at all:--code-only is an extract flag. It skips semantic document and media extraction. It is not a flag you need to pass to the agent skill.
To include documents with a local model, install the Ollama extra, run an Ollama model suitable for your content, and select it in OLLAMA_MODEL:
--token-budget or lower --max-concurrency.
What stays local and what doesn’t:
- Local structural parsing does not send code to a model.
- A cloud coding agent still controls where its own prompts and context go.
- A headless semantic backend receives the documents or media you ask it to process.
- PR commands contact GitHub, and model-assisted CLI triage can call your configured provider.
- Query logging is off by default in the current implementation; configuration describes the opt-in controls.
If a step fails
Remove the skill
Rungraphify uninstall to remove the skill from every agent you registered. It also removes the git hooks and merge driver if you installed them.
--project, run graphify uninstall --project from that repository instead. Add --purge to also delete graphify-out/ in the current folder; leave it off to keep your graph.
To remove the package itself, run the uninstall command for the tool you installed it with:
What’s next
Vibe coding with Graphify CLI
Make your agent check the graph before every search.
MCP server quickstart
Give any MCP client the same queries as tools.
Self-host with Docker
Share one graph with your team over HTTP.
Extract without an IDE
Build graphs in scripts and CI.