Skip to main content
Want this for your whole team? Graphify hosts the graph for you and adds Memory, the Wiki and PR reviews. Start free
Graphify CLI builds a knowledge graph of your repository on your machine. You can let your coding agent drive it with the Graphify skill, or run the graphify command yourself in a terminal. Both write the same files to graphify-out/. The short version. Install the package and add the skill:
Then open your coding agent in the repository and type /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 install supports. 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.
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

With no flag, this targets Claude Code. It copies the skill to ~/.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

The skill traverses the graph and returns only the nodes and edges that answer the question, trimmed to a token budget.

What changes in your repository

After the first run you’ll find a graphify-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

You should see the five most connected symbols in your code. If the command says it can’t find a graph, run it from the folder that contains 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.
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.
Each edge shows its confidence: 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

Git hooks rebuild the code graph in the background after commits, branch switches, merges, pulls and rebases. You don’t need to run 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:
You should see:
See Incremental updates for what each refresh covers.

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:
Graphify defaults to the local Ollama endpoint. If you override the endpoint to a remote host, that changes where the content is sent. Large documents may need a smaller --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.
The generated graph can contain source text, labels, paths, and document concepts. Keep it in a location appropriate for that source material. For a full local setup, see Run a local code knowledge graph with Ollama.

If a step fails

Remove the skill

Run graphify uninstall to remove the skill from every agent you registered. It also removes the git hooks and merge driver if you installed them.
If you installed the skill into one repository with --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:
See Remove a registration for more.

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.