# Graphify builds a persistent knowledge graph so coding agents stop re-grepping repos

> Original title: Graphify：整仓一次建知识图，少让 Agent 反复 grep

- Source: meng shao
- Published: 2026-10-26T08:56:50.000Z
- Bad Influence: https://badinfluence.news/items/t5mkbtmrxgd2xh72genj2i50q
- Original: https://x.com/shao__meng/status/2114642398936502394

## Summary

Graphify builds a local tree-sitter AST knowledge graph of an entire repository, saved to graphify-out/ as graph.json, graph.html and GRAPH_REPORT.md. Coding agents can then query the graph for call, import and inheritance paths instead of repeatedly grepping files. The post says the claimed 80% cost reduction depends on repository size, whether the graph stays current, and whether agents actually query it.

## Post

Graphify：整仓一次建知识图，少让 Agent 反复 grep

@graphify 的做法：先整仓建持久知识图，再让 coding agent 查图改码，而不每轮任务从头 grep/瞎读文件；省 token、也少迷路；是否真能稳降 80% 花费等营销数字，要看仓规模、图是否保鲜，以及 agent 是否真接进图查询。

开源项目：https://github.com/Graphify-Labs/graphify

三点提炼
1. 持久知识图，不是向量库：对代码做本地 tree-sitter AST（确定性、边标 EXTRACTED / INFERRED）；文档/PDF/多媒体可再走语义层。产物落在 graphify-out/（graph.json + 可点的 graph.html + GRAPH_REPORT.md），之后可 query / path / explain，不必每次重扫全仓。
2. 少反复 grep：口号「map once, not grep forever」；agent 问「认证流怎么走」「A 到 B 几跳」时走图上的 calls/imports/继承等边，而不海量搜字符串。社区检测、god node 等帮助先看见子系统枢纽。
3. 接进 coding agent：uv tool install graphifyy → graphify install 注册 skill，助手里 /graphify .；也可用 graphify-mcp 把已有 graph.json 挂到 Claude Code / Cursor / Codex 等，用 graph_stats、query_graph 一类工具当上下文源。Cloud 另有「常开记忆 / 跨仓」等，与开源 CLI 要分开看。

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHVi4B-abEAAzZBg.jpg&mode=thumb&exp=1795651200&sig=a8360f2a6dc79632)
