开源工具Graphify发布v0.9.121 把代码库变成可查询知识图谱降低Agent的Token消耗Open-Source Tool Graphify v0.9.121 Turns Codebases into Queryable Knowledge Graphs, Cutting Agent Token Usage


AI free token/AI免费积分
开源工具Graphify发布v0.9.121 把代码库变成可查询知识图谱降低Agent的Token消耗

Graphify 是一个把代码库(含文档、SQL schema、配置与 PDF)解析成可查询知识图谱的本地工具,以 /graphify 技能形式接入 Claude Code、Cursor 等主流 AI 编程助手,用确定性 AST 解析代替向量检索。最新版本 v0.9.121 发布于2026年11月27日 03:38,采用 Apache-2.0 许可。Graphify 是给 AI 编程助手用的代码库知识图谱工具:在 Claude Code、Cursor、Codex、Gemini CLI 等助手里输入 /graphify,它会用 tree-sitter 做确定性 AST 解析,把整个项目的代码、文档、SQL schema、配置乃至 PDF 映射成一张知识图谱,让 Agent 用查询图的方式理解项目,而不是来回 grep 文件。全程本地运行、不依赖 LLM、不建向量库,图中每条边都标注了来源是源码直接提取还是推断所得,产出 graph.html 可视化、GRAPH_REPORT.md 报告与 graph.json 全量数据三个文件。项目语言为 Python,平台覆盖 macOS、Linux、Windows(CLI),可接入 Claude Code、Cursor、Codex、Gemini CLI 等 20+ 助手。主要功能包括:确定性 AST 解析,代码经 tree-sitter 解析建图,结果稳定可复现,无需调用 LLM,数据不出本机;每条边可解释,连接标注为 EXTRACTED(源码显式存在)或 INFERRED(graphify 推断),信息可信度一目了然;真实图遍历,不用嵌入与向量库,可直接问问题、追溯两个概念之间的路径、解释单个概念;交互式可视化,graph.html 在浏览器中用力导向图展示概念社区,节点可点击、可过滤、可搜索;全量图数据,graph.json 保留完整图结构,可随时查询而无需重读源文件;一键接入助手,graphify install 自动检测已安装的 AI 助手并注册 /graphify 技能;多模态覆盖,除代码外还处理文档、PDF、图片、视频。核心优势在于节省上下文——Agent 查图代替全文检索,显著降低 token 消耗;结果可信赖——确定性解析加边级溯源,回答有据可查;本地优先——代码解析全部在本地完成,源码不上传。快速上手只需三步:安装 CLI(uv tool install graphifyy)、注册技能(graphify install)、在助手会话中执行 /graphify .。

本文来源:https://git.hiwiki.org/zh-CN/repo/graphify-labs/graphify
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

Graphify is a local tool that parses codebases—including documents, SQL schemas, configurations and PDFs—into queryable knowledge graphs. It plugs into mainstream AI coding assistants such as Claude Code and Cursor as a /graphify skill, replacing vector retrieval with deterministic AST parsing. The latest version, v0.9.121, was released on 27 November 2026 at 03:38 under the Apache-2.0 license. Graphify is a codebase knowledge graph tool for AI coding assistants: type /graphify in Claude Code, Cursor, Codex, Gemini CLI and other assistants, and it uses tree-sitter for deterministic AST parsing, mapping an entire project's code, documents, SQL schemas, configurations and even PDFs into a knowledge graph, letting agents understand the project by querying the graph instead of grepping files back and forth. It runs entirely locally, does not depend on an LLM, builds no vector database, and every edge in the graph is labeled as either directly extracted from source or inferred; it produces three files: a graph.html visualization, a GRAPH_REPORT.md report and full graph data in graph.json. The project is written in Python and covers macOS, Linux and Windows (CLI), working with more than 20 assistants including Claude Code, Cursor, Codex and Gemini CLI. Key features include deterministic AST parsing—code is parsed into a graph via tree-sitter, producing stable, reproducible results with no LLM calls and no data leaving the machine; explainable edges—connections are labeled EXTRACTED (explicitly present in source) or INFERRED (deduced by graphify), making information credibility clear at a glance; real graph traversal—no embeddings or vector stores, allowing direct questions, tracing paths between two concepts and explaining individual concepts; interactive visualization—graph.html shows concept communities as a force-directed graph in the browser, with clickable, filterable and searchable nodes; full graph data—graph.json preserves the complete structure for queries at any time without rereading source files; one-click assistant integration—graphify install automatically detects installed AI assistants and registers the /graphify skill; and multimodal coverage—besides code, it handles documents, PDFs, images and video. The core advantage is context savings: agents query the graph instead of full-text retrieval, significantly reducing token consumption; results are trustworthy thanks to deterministic parsing and edge-level provenance; and local-first design means all parsing happens on the machine and source code is never uploaded. Getting started takes three steps: install the CLI (uv tool install graphifyy), register the skill (graphify install), and run /graphify . in an assistant session.

本文来源:https://git.hiwiki.org/zh-CN/repo/graphify-labs/graphify
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry