G
Graphify
graphify.homes
Install Graphify

How to install Graphify and build a code graph

Install Graphify with pip, pipx, or the project's installer, then run the Graphify skill from your AI coding assistant to create graph.html, graph.json, and GRAPH_REPORT.md. The first graph requires Python 3.10 or newer; the PyPI package is currently named graphifyy while the command remains graphify.

Published Updated

Graphify outputs
graph.html
graph.json
GRAPH_REPORT.md

Graphify stores inspectable artifacts so codebase knowledge can be reviewed by humans and reused by AI coding assistants.

A luminous installation path connecting a glass terminal to a codebase knowledge graph

Prerequisite

Python 3.10+

Graphify's documented open-source installation requires Python 3.10 or newer and an AI coding assistant such as Claude Code.

Package

graphifyy

Install the current PyPI package name, then invoke the graphify command and skill.

First output

3 artifacts

A successful build produces an interactive graph, a reusable JSON graph, and a readable architecture report.

What do you need before installing Graphify?

You need Python 3.10 or newer and an AI coding assistant that can load project skills. The documented setup uses Claude Code, while Codex, Cursor, and other assistants can consume the generated graph artifacts or expose the graph through MCP.

  • Check the active Python version before installing so pip does not target an old interpreter.
  • Use pipx when the operating system blocks global pip installs or when Python is externally managed.
  • Open the assistant in the repository or folder you want to map; it needs permission to read that project.

How do you install Graphify with pip?

Run pip install graphifyy and then graphify install. The package name is a temporary PyPI workaround: graphifyy installs the software, while graphify remains the command you use.

  • Python package managers may need a user-level install if the global environment is protected.
  • On macOS systems with externally managed Python, pipx install graphifyy is the lower-friction path.
  • After installation, restart the assistant or open a new session if the /graphify skill does not appear immediately.

How do you build the first codebase graph?

Open the target repository in your AI assistant and invoke /graphify followed by a path. Use /graphify . for the current project, or point it at a narrower folder when you want a smaller first map.

  • Start with a representative subsystem if a full monorepo would take too long.
  • Let the first build finish before asking architecture questions so every artifact shares the same snapshot.
  • Inspect graph.html for the interactive view and GRAPH_REPORT.md for god nodes, surprising connections, and suggested questions.

How do you update a graph after the code changes?

Run the same graph workflow with --update to process changed files and merge them into the existing graph. For repositories under active work, --watch rebuilds code structure after file saves, while graphify hook install rebuilds after commits.

  • Use update mode for controlled checkpoints after a batch of changes.
  • Use watch mode when multiple agents or developers are editing the same repository in parallel.
  • Use the Git hook when you want freshness tied to commits without keeping a background watcher running.

How do you query and reuse the graph?

Ask the assistant to query graph.json for structural questions, or use Graphify's query, path, and explain commands outside the assistant. The graph persists across sessions, so the next task can begin from the existing map instead of rereading every source file.

  • Use query for open-ended relationships and entity connections.
  • Use path when you need the route between two symbols or concepts.
  • Use explain when you need the evidence and context around a single node.

What should you do if graphify is not recognized?

First confirm that the Python scripts directory is on PATH, then retry the command from a new shell. Windows commonly needs the user-level Python Scripts folder; pipx avoids most PATH issues by placing commands in its managed binary directory.

  • Run the package installer's command listing to confirm that Graphify was installed for the expected interpreter.
  • Restart the terminal and AI assistant after changing PATH.
  • If the package installed successfully but the skill is missing, repeat graphify install and restart the assistant session.

Does Graphify send the whole repository to a model?

Graphify extracts code structure locally with tree-sitter and deterministic parsing. Semantic extraction for documents, PDFs, screenshots, and diagrams depends on the configured assistant model, so teams should review their model and data-handling policy before adding sensitive non-code material.

  • Code graph construction is separated from the semantic model pass.
  • Each edge is labeled EXTRACTED, INFERRED, or AMBIGUOUS so reviewers can see how a relationship entered the graph.
  • Keep secrets and generated caches out of the input folder when you configure a new project.
Working commands

How do the setup commands fit together?

Install the package and assistant skill

Shell
python -m pip install graphifyy
graphify install

Build and refresh a project graph

AI assistant
/graphify .
/graphify . --update
/graphify . --watch
FAQ

Frequently asked questions

Is the package called graphify or graphifyy?

The documented PyPI install currently uses graphifyy. The installed command and assistant skill use graphify.

Can Graphify run without Claude Code?

The generated graph artifacts are portable and MCP can expose the graph to other agents. The documented open-source skill installation is still written around Claude Code, so other assistants need their own skill or MCP registration.

Which output should I open first?

Open GRAPH_REPORT.md for the shortest architectural summary, then use graph.html when you want to inspect communities, nodes, and edges interactively.

Does --update rebuild everything?

Update mode is designed to process changed files and merge them into the existing graph. A full rebuild is still useful after large directory moves or parser changes.

Where does Graphify store its output?

The default output directory is graphify-out, containing graph.html, graph.json, GRAPH_REPORT.md, and supporting cache or export folders depending on the options used.

Key takeaways

What should you remember?

  • Install graphifyy, then use the graphify command and assistant skill.
  • Build a small first graph with /graphify ., inspect GRAPH_REPORT.md, and expand after the workflow is verified.
  • Use update, watch, or the Git hook so structural answers reflect the current repository.
Sources

Where can you verify the details?

Related Graphify guides

Continue through the Graphify topic cluster with pages that explain assistant context, architecture review, documentation, and graph-based codebase understanding.

Turn this concept into a real project graph

Start from the use cases page or upload a project ZIP to build a graph that your team can inspect and reuse.