graphify
graphify可将代码库、文档、SQL schema、配置、PDF等项目资产转换为可查询的知识图谱,适配主流AI编码助手,无需依赖向量存储。
这个项目值得继续研究吗?
graphify可将代码库、文档、SQL schema、配置、PDF等项目资产转换为可查询的知识图谱,适配主流AI编码助手,无需依赖向量存储。
- 解决什么问题
- 企业研发团队梳理项目架构、排查关联逻辑时,常需要翻找大量跨文件的代码、文档等资料,效率低且易遗漏关联,使用AI编码助手查询还会产生高额token消耗。
- 适合什么团队
- 适合需要快速梳理项目资产关联、提升研发效率的企业技术团队,以及需要降低AI编码助手token消耗的研发管理团队。
- 使用前注意
- 部署需满足Python 3.10及以上的环境要求,仅代码解析完全本地运行,非代码类资产的语义解析需自行配置AI模型API密钥。
本页用于缩短初步筛选时间,不构成技术、采购或法律结论。 正式使用前请在真实业务数据上验证,并以官方说明与许可证为准。
从官方资料看清能力、部署与采用边界
以下内容依据项目公开 README 或模型卡翻译整理,代码、命令和产品名保持原样。
项目定位
graphify是一款可以将企业研发项目的全量资产(包括代码、文档、SQL schema、配置文件、PDF、音视频等)转换为可查询知识图谱的工具,适配Claude Code、Cursor、Codex、Gemini CLI、GitHub Copilot等15款以上主流AI编码助手,采用Apache-2.0许可证开源,无需依赖向量存储即可实现项目资产关联关系的查询与追溯。
核心能力
graphify的核心能力主要包括以下几类:
- 本地确定性代码解析:代码资产采用tree-sitter AST(抽象语法树,代码的结构化表达形式)解析,过程无需调用大模型,所有数据不会流出企业本地环境,解析结果完全确定。
- 全链路关联可追溯:知识图谱中所有节点的关联边都带有明确标签,EXTRACTED表示关联直接来自原始资产,INFERRED表示关联由工具逻辑推导得出,使用者可明确区分信息来源。
- 多类型资产统一管理:支持将代码、文档、PDF、图片、音视频等不同类型的项目资产纳入同一个知识图谱,统一查询。
- 丰富的查询能力:支持对单个节点的信息解释、两个节点之间的关联路径追溯、自然语言问题查询三类查询场景,无需逐文件翻阅查找信息。
- 内置资产分类能力:可自动识别知识图谱中连接度最高的核心节点,自动将图谱划分为不同的子系统模块,无需额外人工标注。
根据公开的测试数据,graphify在LOCOMO基准测试中recall@10达到0.497,LongMemEval-S基准测试中问答准确率达到76%,ERPNext跨工具测试中关键信息覆盖率达到82%,代码构建图谱过程无需消耗大模型token。
典型使用流程
graphify的使用流程非常简单,仅需几步即可完成单个项目的图谱构建:
- 安装CLI工具:可通过uv执行uv tool install graphifyy安装,也可通过pipx执行pipx install graphifyy安装。
- 绑定AI助手:执行graphify install将工具能力注册到当前使用的AI编码助手中。
- 构建图谱:在AI编码助手中输入/graphify .即可启动当前项目的图谱构建。
构建完成后会生成三个产物:
- graph.html:可在浏览器中打开的交互式图谱页面,支持点击节点、筛选、搜索操作。
- GRAPHREPORT.md:图谱分析报告,包含核心概念、意外关联、建议查询问题等高亮信息。
- graph.json:完整的图谱数据文件,后续查询可直接使用该文件,无需重新解析项目资产。
日常使用时,可通过graphify explain "节点名"查询单个节点的详细信息与关联,通过graphify path "节点A" "节点B"查询两个节点之间的最短关联路径,通过graphify query "自然语言问题"获取对应问题的子图谱结果。
部署环境要求
开源版graphify的部署要求非常低,仅需满足Python 3.10及以上版本的运行环境即可:
- macOS用户可通过Homebrew执行brew install python@3.12 uv快速安装依赖。
- Windows用户可通过winget执行winget install astral-sh.uv安装。
- Ubuntu/Debian用户可通过apt执行sudo apt install python3.12 python3-pip pipx安装。
仅代码资产的解析完全在本地运行,文档、音视频等非代码资产的语义解析需自行配置对应AI模型的API密钥。 如果需要跨多个仓库或整个Monorepo持续构建图谱,可选择官方提供的Graphify Cloud服务,支持跨仓库关联、软件开发生命周期全链路覆盖、对接Sentry、Jira等第三方工具,可降低AI代理的token消耗80%,提供14天免费试用。
许可证与采用建议
graphify采用Apache-2.0许可证开源,企业可自由修改、商用,无额外授权限制。 建议企业首先选择单个内部项目试用,验证图谱构建效率、查询准确率是否符合业务需求,待确认效果后再逐步推广到更多项目;有大规模多仓库管理需求、需要持续同步图谱的团队,可评估官方Cloud服务的适用性。
官方资料与来源
- ai-agents
- antigravity
- ast
- claude-code
- code-analysis
- code-search
- codex
- cursor
- developer-tools
- gemini
- graphify
- graphrag
## Prerequisites | Requirement | Minimum | Check | Install | |---|---|---|---| | Python | 3.10+ | `python --version` | [python.org](https://www.python.org/downloads/) | | uv *(recommended)* | any | `uv --version` | `curl -LsSf https://astral.sh/uv/install.sh \| sh` | | pipx *(alternative)* | any | `pipx --version` | `pip install pipx` | **macOS quick install (Homebrew):** ```bash brew install python@3.12 uv ``` **Windows quick install:** ```powershell winget install astral-sh.uv ``` **Ubuntu/Debian:** ```bash sudo apt install python3.12 python3-pip pipx
该片段来自项目 README,仅用于初步判断;实际部署请以官方文档为准。


核对上游原始说明节选
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
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 | עברית
Cut agent token spend by 80%. Graphify Cloud is always-on memory that governs your agents, keeps code quality high, and proves correctness with formal verification. Start a free 14-day trial →
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 Cloud 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 a free 14-day trial at app.graphify.com.
The FastAPI codebase mapped by graphify. Every node is a concept, colors are detected communities, and the whole thing is clickable in graph.html.
Get started (30 seconds). Needs Python 3.10+ and uv (or pipx):
uv tool install graphifyy # install the CLI (or: pipx install graphifyy)
graphify install # detects your assistant and registers the skillThen, 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 filesThe persisted graph includes graph.schemaversion so integrations can detect incompatible format changes, plus graph.graphifyversion 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.
What it does
What you get out of the box:
| Capability | What you get | |---|---| | God nodes | The most-connected concepts, so you see what everything flows through | | Communities | The graph split into subsystems (Leiden), with LLM-free labels | | Cross-file links | calls / imports / inherits / mixesin resolved across 40 languages via tree-sitter AST | | Query, path, explain | Ask 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 code | Docs, PDFs, images, and video/audio all map into the same graph | | Local-first | Code 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 Cloud does it continuously and cuts agent token spend by 80%, with cross-repo links, SDLC-wide code review, formal verification, and Sentry/Jira connectors. Start a free 14-day trial →
---
Benchmarks: 0.497 recall@10, 0 LLM credits
| Benchmark | Metric | graphify | Field | |---|---|---|---| | LOCOMO (n=300) | recall@10 | 0.497 | mem0 0.048, supermemory 0.149 | | LOCOMO (n=300) | QA accuracy | 45.3% | supermemory 49.7%, mem0 27.3% | | LongMemEval-S (n=50) | QA accuracy | 76% | tied with dense RAG | | ERPNext cross-tool (n=6) | key-fact coverage | 82.0% | grep/read baseline 70.8% | | Graph build | LLM credits | 0 | per-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:
- Quickstart: build your first graph
- CLI reference: every command and flag
- Ask better graph questions: querying patterns
- Configuration: environment variables and tuning
- Supported inputs: languages and file types
- Team workflows and
上游文档较长,此处为节选。完整内容见官方项目。