Graphify

Build a knowledge graph from your codebase for 71.5x token reduction per query

KevinZai 0e6adea 1.1 KB Updated

File contents

Graphify — Codebase Knowledge Graph

Build a NetworkX knowledge graph from code, docs, PDFs, and images. Query the graph instead of grepping — 71.5x token savings per query.

Install

pip install graphifyy
graphify install

Usage

graphify build .          # Build graph from current directory
graphify query "how does auth work?"  # Query the graph
graphify serve            # Interactive HTML visualization

What It Does

  1. Detects files (code, docs, PDFs, images)
  2. Extracts entities and relationships via AST + Claude subagents
  3. Builds a NetworkX graph with confidence labels (EXTRACTED/INFERRED/AMBIGUOUS)
  4. Exports interactive HTML, graph.json, GRAPH_REPORT.md

Integration

  • Installs as a Claude Code skill (/graphify)
  • PreToolUse hook redirects Glob/Grep through the graph
  • SHA256 cache — only reprocesses changed files

Links

KevinZai/commander/tree/main/skills/graphify commit 0e6adea0e6

Frequently asked questions

npx skillmds@latest add kevinzai/graphify