AI Card Bao API.AICARDBAO.COM
Home / 开源 / graphify
AI TOOL / #12969

graphify

A single command can transform the code repository along with its documentation, SQL schemas, configurations, and PDF files into a searchable knowledge graph; it also supports Claude Code/Cursor/Codex/Gemini CLI functions.

Introduction

Website: graphify.com · Docs: docs.graphify.com

Read this in other languages

English | 简体中文 | 日本語 | 한국어 | Deutsch | Français | Español | हिन्दी | Português | Русский | العربية | فارسی | Italiano | Polski | Nederlands | Türkçe | Українська | Tiếng Việt | Bahasa Indonesia | Svenska | Ελληνικά | Română | Čeština | Suomi | Dansk | Norsk | Magyar | ภาษาไทย | Oʻzbekcha | 繁體中文 | Filipino | עברית

Shared codebase context for agents and humans.

Turn your codebase into a queryable knowledge graph. Trace dependencies, understand how components connect, and give your coding agent reusable context across sessions.

Start free, no card required → · Graphify keeps that graph always-on across your whole SDLC.

Type /graphify in your AI coding assistant and it maps your entire project (code, docs, PDFs, images, videos) into a knowledge graph you can query instead of grepping through files.

  • Code maps for free, fully local. Code is parsed with tree-sitter AST: deterministic, no LLM, nothing leaves your machine. (Docs, PDFs, images and video use your assistant's model, or a configured API key, for a semantic pass.)
  • Every edge is explained. Each connection is tagged EXTRACTED (explicit in the source) or INFERRED (resolved by graphify), so you can tell what was read directly from what was inferred.
  • Not a vector index. No embeddings, no vector store: a real graph you traverse. Ask a question, trace the path between two things, or explain one concept.
[!NOTE] Want this always-on? Graphify keeps the graph live across your entire SDLC: monorepo and cross-repo support, formal verification, and code review with a bird's-eye view of your SDLC, plus connectors for Sentry, Jira, and more so incidents and tickets sit in the same graph as your code. Start free, no card required.

The FastAPI codebase mapped by graphify. Every node is a concept, colors are detected subsystems, and the whole thing is clickable in graph.html.

Get started (30 seconds). Needs Python 3.11.5–3.14 and uv (or pipx):

uv tool install graphifyy      # install the CLI (or: pipx install graphifyy)
graphify install               # sets up Claude Code (the default)

Using a different assistant? Name it explicitly:

graphify cursor install              # Cursor
graphify install --platform codex    # Codex (invoke with $graphify, not /graphify)

See pick your platform for all 20+ assistants.

Then, in your AI assistant:

/graphify .

That's it. You get three files:

graphify-out/
├── graph.html       open in any browser: click nodes, filter, search
├── GRAPH_REPORT.md  the highlights: key concepts, surprising connections, suggested questions
└── graph.json       the full graph: query it anytime without re-reading your files

The persisted graph includes graph.schema_version so integrations can detect incompatible format changes, plus graph.graphify_version identifying the Graphify release that produced it.

One install, any assistant, any OS. Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, and 20+ more, on macOS, Linux, and Windows: pick your platform.


See it in action

Once the graph is built you query it instead of reading files. Real output, graphify run on the FastAPI codebase shown above:

$ graphify explain "APIRouter"
Node: APIRouter
  Source:    routing.py L2210
  Community: 2
  Degree:    47

Connections (47):
  --> RequestValidationError [uses] [INFERRED]
  --> Dependant [uses] [INFERRED]
  --> .get() [method] [EXTRACTED]
   DefaultPlaceholder  ModelField

Every edge carries a confidence tag (EXTRACTED = explicit in the source, INFERRED = derived by resolution), so you can tell what was read directly from what was inferred. graphify query "" returns a scoped subgraph for a plain-language question, and graphify path A B traces how any two things connect, ending with the path's overall confidence: that of its weakest hop.


What it does

What you get out of the box:

CapabilityWhat you get
Most-connected componentsThe concepts everything flows through, the hubs of the graph (also called *god nodes*)
SubsystemsThe graph split into cohesive groups (Leiden *communities*), each with an LLM-free label
Cross-file linkscalls / imports / inherits / mixes_in resolved across ~40 languages via tree-sitter AST
Query, path, explainAsk a question, trace the path between two things, or explain one concept, all against graph.json
Rationale + doc refs# NOTE: / # WHY: comments and ADR/RFC citations become first-class nodes linked to the code
Beyond codeDocs, PDFs, images, and video/audio all map into the same graph
Local-firstCode is parsed locally with tree-sitter (no LLM, nothing leaves your machine); only the semantic pass over docs/media calls a backend, and only if you configure one
[!TIP] Running this across many repos or a monorepo? Graphify does it continuously, with cross-repo links, SDLC-wide code review, formal verification, and Sentry/Jira connectors. Start free, no card required →

When to reach for Graphify

Reach for the graph when you need to understand a codebase, not just read through it:

SituationWhat to ask Graphify
Joining an unfamiliar project"Explain how the main components connect."
Changing a shared component"Trace its callers and dependencies."
Investigating a bug"Show the path between this endpoint and storage."
Revisiting previous work"Find the relevant design decisions and notes."

Benchmarks: 0.497 recall@10, 0 LLM credits

BenchmarkMetricgraphifyField
LOCOMO (n=300)recall@100.497mem0 0.048, supermemory 0.149
LOCOMO (n=300)QA accuracy45.3%supermemory 49.7%, mem0 27.3%
LongMemEval-S (n=50)QA accuracy76%tied with dense RAG
ERPNext cross-tool (n=6)key-fact coverage82.0%grep/read baseline 70.8%
Graph buildLLM credits0per-token for most systems

Every system ran on the same harness with the same model and budgets, scored by a judge blind-validated against a second judge (90.6% agreement, Cohen's kappa 0.81). Full per-system tables, the code-intelligence result, and reproduction commands: BENCHMARKS.md.


Documentation

Full guides and reference live at docs.graphify.com:


Prerequisites

RequirementMinimumCheckInstall
Python3.11.5–3.14python --versionpython.org
uv *(recommended)*anyuv --version`curl -LsSf https://astral.sh/uv/install.sh \sh`
pipx *(alternative)*anypipx --versionpip install pipx

macOS quick install (Homebrew):

brew install [email protected] uv

Windows quick install:

winget install astral-sh.uv

Ubuntu/Debian:

# uv manages its own Python, so this is the only step you need:
curl -LsSf https://astral.sh/uv/install.sh | sh
# or use the system Python with pipx:
sudo apt install python3 python3-pip pipx

Install

[!IMPORTANT] Official package: The PyPI package is graphifyy (double-y). Other graphify* packages on PyPI are not affiliated. The CLI command is still graphify.

The official source repository is Graphify-Labs/graphify.

The two-command quickstart is at the top of this README. This section covers the install methods, project-scoped installs, and every supported platform.

Install methods (pick one):

uv tool install graphifyy   # recommended, isolated env (if 'graphify' isn't found after, run: uv tool update-shell)
pipx install graphifyy      # alternative
pip install graphifyy       # may need PATH setup, see Troubleshooting below

Then run graphify install once. It detects which assistant you run and registers the skill, so there is no per-assistant setup. Open your AI assistant and type /graphify .

To install the assistant skill into the current repository instead of your user profile, add --project:

graphify install --project
graphify install --project --platform codex

Project-scoped installs write under the current directory, for example .claude/skills/graphify/SKILL.md or .agents/skills/graphify/SKILL.md (plus a references/ sidecar the skill loads on demand), and print a git add hint for files that can be committed. Per-platform commands that support project-scoped installs accept the same flag, for example graphify claude install --project or graphify codex install --project.

[!TIP] Hitting command not found, a pip-on-Mac/Windows issue, PowerShell quoting, uvx usage, git-hook PATH quirks, or strict mode? See Installation and Troubleshooting.

Pick your platform (20+ assistants, click to expand)

PlatformInstall command
Claude Code (Linux/Mac)graphify install
Claude Code (Windows)graphify install (auto-detected) or graphify install --platform windows
CodeBuddygraphify install --platform codebuddy
Codexgraphify install --platform codex (invoke with $graphify)
OpenCodegraphify install --platform opencode
Kilo Codegraphify install --platform kilo
GitHub Copilot CLIgraphify install --platform copilot
VS Code Copilot Chatgraphify vscode install
Aidergraphify install --platform aider
OpenClawgraphify install --platform claw
Factory Droidgraphify install --platform droid
Traegraphify install --platform trae
Trae CNgraphify install --platform trae-cn
Gemini CLIgraphify install --platform gemini
Hermesgraphify install --platform hermes
Kimi Codegraphify install --platform kimi
MiniMax Codegraphify install --platform minimax
Ampgraphify amp install
Agent Skills (cross-framework)graphify install --platform agents (alias --platform skills)
Kiro IDE/CLIgraphify kiro install
Pi coding agentgraphify install --platform pi, plus graphify pi guard install for the native guard
Cursorgraphify cursor install
Devin CLIgraphify devin install
Google Antigravitygraphify antigravity install
Google Antigravity (Windows)graphify antigravity install (auto-detected on Windows)

Codex users also need multi_agent = true under [features] in ~/.codex/config.toml for parallel extraction. CodeBuddy uses the same Agent tool and PreToolUse hook mechanism as Claude Code. Factory Droid uses the Task tool for parallel subagent dispatch. OpenClaw and Aider use sequential extraction (parallel agent support is still early on those platforms). Trae uses the Agent tool for parallel subagent dispatch and does not support PreToolUse hooks, so AGENTS.md is the always-on mechanism.

<
Visits:6 Updated:2026-12-03 AI tools

Related