Repo Dev Tools

Graphify-Labs/graphify

A /graphify skill that maps code, docs, PDFs and media into a queryable knowledge graph via local tree-sitter AST parsing, with no vector store and tagged edges.

  • 153k GitHub stars
  • Python
  • ⚖️ Apache-2.0
  • 🎯 Intermediate

Last verified: repo last pushed

uv tool install graphifyy # install the CLI (or: pipx install graphifyy)
Graphify-Labs/graphify preview image

What it is

Graphify is a CLI and AI-assistant skill that turns a project (code, docs, PDFs, images, video) into a knowledge graph you can query instead of grepping. Code is parsed locally and deterministically with tree-sitter AST, with no LLM involved. Every edge is tagged EXTRACTED or INFERRED, and the graph is traversed rather than searched through embeddings. A run outputs graph.html, GRAPH_REPORT.md and graph.json under graphify-out/.

Who it's for

  • Developers using AI coding assistants (Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot and others) who want graph-based codebase queries
  • Teams wanting architecture overviews such as most-connected concepts, communities and surprising cross-file connections
  • Users who need code and non-code material (docs, PDFs, images, video/audio) mapped into one graph

Requirements

Requirements

  • Python 3.10+
  • uv (recommended) or pipx to install the package
  • An AI coding assistant to run the /graphify skill (Codex uses $graphify)
  • Codex users: multi_agent = true under [features] in ~/.codex/config.toml for parallel extraction
  • Docs, PDFs, images and video need your assistant's model or a configured API key for the semantic pass

Setup

  1. Install the CLI

    The PyPI package is graphifyy (double-y); the command is graphify. If graphify is not found after install, run uv tool update-shell.

    bash
    uv tool install graphifyy      # install the CLI (or: pipx install graphifyy)
  2. Register the skill with your AI assistant

    Registers the skill for the default platform (Claude Code). Other platforms use --platform or a per-platform command.

    bash
    graphify install
  3. Install the skill into the current repository (optional)

    Project-scoped install writes under the current directory instead of your user profile.

    bash
    graphify install --project
  4. Make the assistant always use the graph (optional)

    Run once in your project after building a graph; this writes config telling the assistant to consult the graph. Shown for Claude Code; other platforms have their own command.

    bash
    graphify claude install
  5. Install optional extras

    Extras add features such as PDF extraction; install only what you need.

    bash
    uv tool install "graphifyy[pdf]"

Examples

Build the graph

Prompt
prompt
/graphify .

Expected output: Run in your AI assistant to map the project. It produces graph.html, GRAPH_REPORT.md and graph.json in graphify-out/. In PowerShell use graphify . without the slash.

Explain a concept

bash
bash
graphify explain "APIRouter"

What it does: Shows a node's source location, community, degree and its connections, each tagged [EXTRACTED] or [INFERRED].

Trace a path between two things

bash
bash
graphify path "FastAPI" "ModelField"

What it does: Returns the shortest path between two nodes, hop by hop (3 hops in the README's FastAPI example).

Ask a plain-language question

bash
bash
graphify query "<question>"

What it does: Returns a scoped subgraph for a plain-language question, queried against the persisted graph.

Pros & cons

Pros

  • Pro:Code parsing is local and deterministic via tree-sitter AST, with no LLM and nothing leaving your machine
  • Pro:Every edge is tagged EXTRACTED or INFERRED, so direct reads can be told apart from inferred links
  • Pro:Real graph traversal (query, path, explain) with no embeddings or vector store
  • Pro:Works across many assistants (Claude Code, Cursor, Codex, Gemini CLI, Copilot and more) and installs per-project or globally

Cons

  • Con:Docs, PDFs, images and video require your assistant's model or a configured API key for the semantic pass
  • Con:Several file types need optional extras (pdf, office, video, sql and others) installed separately
  • Con:Codex's PreToolUse hook is a deliberate no-op, so AGENTS.md carries the always-on guidance, and Trae lacks PreToolUse hooks entirely

Images