AI资讯大全AIPPXP.CN搜索 ↗
工具介绍 · 附源码包

Graphify: 133,000-star "Code Knowledge Atlas", so that AI no longer relies on grep to flip files, and the token of reading files is cut by 80%Graphify:133,000 星的「代码知识图谱」,让 AI 不再靠 grep 翻文件,读文件的 token 直接砍八成

Agents change a function, often need to read a dozen files before they dare to do it - this is the most expensive part of the token bill. Graphify parses the entire project (code, documentation, SQL, configuration, PDF) into a traversable knowledge graph at once, and then proxies look up the graph instead of flipping the file: ask a sentence to get the relevant subgraph, ask the two concepts to get the shortest path between them. The code part uses tree-sitter to do pure local AST parsing, but the model does not come out of the machine, 133,000 + stars, Apache-2.0.

代理改一个函数,往往要先读十几个文件才敢动手——这才是 token 账单里最贵的部分。Graphify 把整个项目(代码、文档、SQL、配置、PDF)一次性解析成一张可遍历的知识图谱,之后代理查图而不是翻文件:问一句话拿到相关子图,问两个概念拿到它们之间的最短路径。代码部分用 tree-sitter 做纯本地 AST 解析,不过模型、不出机器,133,000+ stars,Apache-2.0。

2026-10-23 更新 · 免费
Graphify:133,000 星的「代码知识图谱」,让 AI 不再靠 grep 翻文件,读文件的 token 直接砍八成

Why it's not another vector index为什么它不是又一个向量索引

Vector Library slices the code into the embedded space, retrieves the similarity, and you never know why it recalled this segment. Graphify builds real graphs: nodes are concepts, edges are deterministic relationships like calls/imports/inherits.

Each edge is labeled with a confidence label: extracted means that it is clearly written in the source code, and inferred means that it is inferred by the tool. Agents can mark evidence when citing conclusions, and you can see at a glance which ones are guesses.

Code parsing uses tree-sitter AST, covering about 40 languages, deterministic, no LLM, zero points; only semantic content such as documents, PDFs, and images will call your configured model.

中文

向量库把代码切块丢进嵌入空间,检索靠相似度,你永远不知道它为什么召回这一段。Graphify 建的是真图:节点是概念,边是 calls / imports / inherits 这类确定关系。

每条边都带置信标签:EXTRACTED 表示源码里明写的,INFERRED 表示工具推断出来的。代理引用结论时能标注证据,你也能一眼看出哪些是猜的。

代码解析用 tree-sitter AST,覆盖约 40 种语言,确定性、无 LLM、零积分;只有文档、PDF、图片这类语义内容才会调用你配置的模型。

After running, you get three documents.跑完你拿到三个文件

graph.html: Open in the browser is a tension map that can be clicked, filtered, and searched, and the color represents the automatically detected community (subsystem).

GRAPH_REPORT.md: Key concepts, unexpected connections, suggestions for follow-up questions, suitable for direct posting into the session as an introduction to the project.

graph.json: Full atlas, then query/path/explain all based on it, without having to re-read the source code.

中文

graph.html:浏览器里打开就是一张力导向图,可点击、可筛选、可搜索,颜色代表自动检测出的社区(子系统)。

GRAPH_REPORT.md:重点概念、意外连接、建议追问的问题,适合直接贴进会话当项目导读。

graph.json:完整图谱,之后 query / path / explain 全部基于它,不必重读源码。

跑完你拿到三个文件

Installation & First Build安装与第一次建图

Requires Python 3.10 + with uv (or pipx). The official package name is graphifyy (double y), and the command is still graphify: uv tool install graphifyy, and then graphify install.

graphify install automatically identifies your assistants (Claude Code, Codex, Cursor, Copilot and more than 20 other platforms) and registers the skills without configuring them one by one.

Type/graphify in the assistant session. You can create a diagram for the current directory; add --update to parse only the changed files, and add --no-viz to skip HTML as long as the report and JSON.

中文

需要 Python 3.10+ 与 uv(或 pipx)。官方包名是 graphifyy(双 y),命令仍是 graphify:uv tool install graphifyy,然后 graphify install。

graphify install 会自动识别你用的助手(Claude Code、Codex、Cursor、Copilot 等 20 多个平台)并注册技能,不需要逐个配置。

在助手会话里输入 /graphify . 即可为当前目录建图;加 --update 只重解析改动过的文件,加 --no-viz 跳过 HTML 只要报告和 JSON。

Download instructions下载说明

The download button provides Graphify v0.9.94 official PyPI source code package (tar.gz, 2.79 MB), including CLI and all skill files, which can be installed offline: pip install./graphifyy-0.9.94.tar.gz.

After installing, run graphify hook install first, and then every time you submit the automatic incremental reconstruction map, the agent is always a new view.

中文

下载按钮提供 Graphify v0.9.94 官方 PyPI 源码包(tar.gz,2.79MB),内含 CLI 与全部技能文件,可离线安装:pip install ./graphifyy-0.9.94.tar.gz。

装完先跑 graphify hook install,之后每次提交自动增量重建图谱,代理永远是新的视图。

Use reminder使用提醒

This article is compiled from public sources and ships with the matching resource. Product features and pricing are subject to the official page. Resources are for learning and exchange only — please respect the original license.

中文

本文整理自公开资料并附上配套资源;涉及产品的功能与价格以官方页面为准。资源仅供学习交流,请遵循来源许可。

资源下载 · Download

⬇ Download · 点击下载:Graphify v0.9.94 官方源码包(2.79MB)

取自 PyPI 官方包 graphifyy 0.9.94 sdist,Apache-2.0,含 CLI、tree-sitter 解析器与 20+ 助手的技能定义。

0阅读0 条评论

阅读与点赞数据保存在你的浏览器本地,欢迎留下你的想法。

评论 文明发言,让讨论更有价值

正能量公益广告今日正能量学一点,用一点;今天种下的种子,会长成明天的能力。去免费下载专区 →广告