@austinit: 嘿,朋友们! 强烈安利 CodeGraph:把整个代码库变成结构化知识图谱的神器! 用 Tree-sitter 精准解析 AST,支持 20+ 语言,直接喂给 Claude/Cursor 等 AI Agent。 改代码前秒看影响范围,上下…

X AI KOLs Timeline 工具

摘要

CodeGraph 是一个将代码库转换为结构化知识图谱的本地优先工具,利用 Tree-sitter 精准解析 AST 并支持 20 多种语言,可直接通过 MCP 协议喂给 Claude、Cursor 等 AI 编码代理,帮助快速分析代码影响范围,减少 token 消耗和工具调用次数。

嘿,朋友们! 强烈安利 CodeGraph:把整个代码库变成结构化知识图谱的神器! 用 Tree-sitter 精准解析 AST,支持 20+ 语言,直接喂给 Claude/Cursor 等 AI Agent。 改代码前秒看影响范围,上下文准到爆炸。实测 token 省 16%,工具调用砍 58%,全程本地超安全。 一条命令启动: npx @colbymchenry/codegraph 重度 AI 写代码的必备! https://colbymchenry.github.io/codegraph/ 值得一试!
查看原文
查看缓存全文

缓存时间: 2026/06/17 13:57

嘿,朋友们!

强烈安利 CodeGraph:把整个代码库变成结构化知识图谱的神器!

用 Tree-sitter 精准解析 AST,支持 20+ 语言,直接喂给 Claude/Cursor 等 AI Agent。

改代码前秒看影响范围,上下文准到爆炸。实测 token 省 16%,工具调用砍 58%,全程本地超安全。 一条命令启动: npx @colbymchenry/codegraph

重度 AI 写代码的必备! https://colbymchenry.github.io/codegraph/

值得一试!


codegraph

Source: https://colbymchenry.github.io/codegraph/

Understand any codebase as a graph

A local-first code-intelligence tool that turns any codebase into a queryable knowledge graph for AI coding agents.

npx @colbymchenry/codegraph

index.tsauth.tsrouter.tsapi/users.tsmiddleware.tstypes/index.tscreateRouterlistUsers

Tree-sitter parsing

Fast, incremental parsing across 20+ languages — accurate symbols and edges drawn from real ASTs, not guesses.

MCP server

Expose the graph to Claude Code, Cursor, Codex, opencode, Hermes, Gemini, Antigravity, and Kiro over MCP — agents answer in a handful of calls.

Impact analysis

Trace callers, callees, and the full impact radius of any symbol before you change a line.

相似文章

@GitHub_Daily: 用 Claude Code 开发项目,代码库一大,每次探索代码结构都要扫一堆文件,工具调用多、速度慢,token 也跟着烧。 于是找到 CodeGraph 这个开源工具,给代码库预建一张语义知识图谱,让 Claude Code 直接查图而…

X AI KOLs Timeline

CodeGraph 是一个开源工具,为代码库预建语义知识图谱,让 Claude Code 直接查图而不是逐文件扫描,从而大幅减少工具调用次数(减少 92%)并提升探索速度(提升 71%),支持 19 种编程语言和 13 个框架。

@VincentLogic: AI 编程助手每次改代码都要把整个项目扫一遍,这 Token 烧得我心疼。 装了 CodeGraph 之后,它不再像无头苍蝇一样用 grep 到处翻文件了。它先在本地建个索引图谱,把函数定义、变量引用、调用关系全理清。AI 想干活,直接查…

X AI KOLs Timeline

CodeGraph 通过本地构建索引图谱,减少 AI 编程助手扫描整个项目的次数,大幅降低 Token 消耗并提升速度,兼容 VS Code、Claude Code 和 Cursor。

@VincentLogic: 这开源项目把 Claude Code 的成本砍了 25%。 它不做新模型,不做新 IDE。 就给 AI coding agent 画了张"代码地图"。 传统玩法:模型读完整个仓库 → 爆 token。 它的玩法:先把代码用 Tree-si…

X AI KOLs Timeline

一个开源项目通过Tree-sitter将代码解析成图结构并存入本地SQLite,为AI coding agent提供代码地图,从而减少token消耗和成本,平均节省57% token,成本降低25%。支持Claude Code、Cursor、aider等工具。