Pre-indexed code knowledge graph for Claude Code, Codex, Cursor, Gemini, and other AI agents. Instead of repeatedly grepping and reading files, CodeGraph parses your codebase once into a structured map of functions, classes, imports, and call relationships — so agents navigate with fewer tool calls and far less token spend. Supports 19+ languages, works 100% locally, integrates via CLI, MCP, or Agent Skill.
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install codegraph或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install codegraph⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/codegraph/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
CodeGraph 是一款 AI 智能体 技能,为你的 AI 助手赋予强大的新能力。Pre-indexed code knowledge graph for Claude Code, Codex, Cursor, Gemini, and other AI agents. Instead of repeatedly grepping and reading files, CodeGraph parses your codebase once into a structured map of functions, classes, imports, and call relationships — so agents navigate with fewer tool calls and far less token spend. Supports 19+ languages, works 100% locally, integrates via CLI, MCP, or Agent Skill.
安装只需几秒,即可在 AI 工作流中立即使用。
CodeGraph 通过模型上下文协议(MCP)直接与 Cursor、Claude Code、Gemini CLI、Codex CLI 集成,让你的 AI 智能体获得默认情况下没有的专业工具。
安装后,你可以在对话中自然地调用其功能——只需描述你想做的事,AI 助手就会使用 CodeGraph 来完成。
安装 CodeGraph 只需几秒。将技能文件夹放到对应目录:
# 个人级(所有项目可用)
~/.claude/skills/codegraph/
# 项目级(仅当前项目)
.claude/skills/codegraph/
放置好技能文件夹后,重启你的 AI 客户端(Claude Code、Cursor、Gemini CLI、OpenClaw 等)。之后可以用 /codegraph 主动调用,或让 AI 根据上下文自动发现并使用。
CodeGraph 兼容 Cursor、Claude Code、Gemini CLI、Codex CLI。它遵循开放的 MCP(模型上下文协议)标准,无需任何修改即可在所有兼容 MCP 的 AI 客户端上运行。
安装 CodeGraph 后,可以对 AI 说这些话来触发它
Help me get started with CodeGraph
Explains what CodeGraph does, walks through the setup, and runs a quick demo based on your current project
Use CodeGraph to pre-indexed code knowledge graph for Claude Code, Codex, Cursor, Ge...
Invokes CodeGraph with the right parameters and returns the result directly in the conversation
What can I do with CodeGraph in my ai agent workflow?
Lists the top use cases for CodeGraph, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/codegraph/ 目录(个人级,所有项目可用),或 .claude/skills/codegraph/(项目级)。重启 AI 客户端后,用 /codegraph 主动调用,或让 AI 根据上下文自动发现并使用。
CodeGraph 支持 Cursor、Claude Code、Gemini CLI、Codex CLI,可与这些 AI 平台无缝集成,扩展其能力。
CodeGraph 可免费安装使用。请查阅仓库了解许可证信息。
Pre-indexed code knowledge graph for Claude Code, Codex, Cursor, Gemini, and other AI agents. Instead of repeatedly grepping and reading files, CodeGraph parses your codebase once into a structured map of functions, classes, imports, and call relationships — so agents navigate with fewer tool calls and far less token spend. Supports 19+ languages, works 100% locally, integrates via CLI, MCP, or Agent Skill.
I need to work with knowledge-graph and code-navigation
Recognizes the task, selects CodeGraph as the right tool, and completes it without leaving the chat
Automate my ai agent tasks using CodeGraph
Identifies repetitive steps in your workflow and sets up CodeGraph to handle them automatically