ai-codegraph skill
✓ VerifiedPerforms semantic code intelligence by querying symbol relationships, call chains, and blast radius via an MCP server.
- GitHub stars
- 65
- Files
- 1
- Last commit
- Nov 11, 2026
- License
- Apache-2.0
- Allowed tools
- —
What does the ai-codegraph skill do?
ai-codegraph performs semantic code intelligence by querying symbol relationships, call chains, and blast radius via an MCP server.
Summary generated from the skill's SKILL.md.
About the ai-codegraph skill
Analyzing complex code relationships and dependency chains is what developers achieve using this tool. Instead of relying on literal text searches, an agent loads this skill to perform semantic intelligence by querying symbol relationships, call paths, and the blast radius of specific changes. It is designed for agents that need to understand how different parts of a codebase interact through polymorphism, imports, or implementations.
When an agent uses the codegraph_explore tool, it receives structured data including verbatim source code grouped by file, call paths that account for dynamic dispatch, and summaries of what depends on a queried symbol. This is specifically intended for graph-based questions rather than simple file discovery or text matching. While it provides deep context for multi-turn sessions, it is not a replacement for grep or find when performing literal searches.
What an agent can do with it
- 1Trace function call chainsAsk the agent to explain how a specific piece of logic works by following its execution path across multiple files.
Written from the skill's SKILL.md. Every use case is checked against a quote from it.
How to install the ai-codegraph skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the ai-codegraph skill in Claude Code
~/.claude/skills/ai-codegraph/SKILL.md
$ npx degit arcasilesgroup/ai-engineering/skills/ai-codegraph ~/.claude/skills/ai-codegraphInstall the ai-codegraph skill in Claude Code (project)
.claude/skills/ai-codegraph/SKILL.md
$ npx degit arcasilesgroup/ai-engineering/skills/ai-codegraph .claude/skills/ai-codegraphInstall the ai-codegraph skill in Codex
~/.agents/skills/ai-codegraph/SKILL.md
$ npx degit arcasilesgroup/ai-engineering/skills/ai-codegraph ~/.agents/skills/ai-codegraphInstall the ai-codegraph skill in Gemini CLI
~/.gemini/skills/ai-codegraph/SKILL.md
$ npx degit arcasilesgroup/ai-engineering/skills/ai-codegraph ~/.gemini/skills/ai-codegraphInstall the ai-codegraph skill in Claude.ai
npx degit arcasilesgroup/ai-engineering/skills/ai-codegraph ai-codegraph && zip -r ai-codegraph.zip ai-codegraph # claude.ai → Customize → Skills → + → Create skill → Upload a skill → ai-codegraph.zip
Automated checks
Ran Nov 14, 2026Full report →Passed our automated checks. That is not a security audit: read the scripts before you let an agent run them. How checks work · What to fix for more points
- Source repository linked and reachablearcasilesgroup/ai-engineering/skills/ai-codegraph is public and reachablegithub.com/arcasilesgroup/ai-engineering/tree/HEAD/skills/ai ↗Pass
- Open source license (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Pass
- Commit or release in the last yearLast commit 2026-11-11github.com/arcasilesgroup/ai-engineering/commits ↗Pass
- No download-and-run or credential theft in scriptsNo scripts in the skill folderPass
- No hidden instructions in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/arcasilesgroup/ai-engineering/blob/HEAD/skills/ai ↗Pass
- Pre-approved tools are scopedNo pre-approved tools; the agent asks before using onegithub.com/arcasilesgroup/ai-engineering/blob/HEAD/skills/ai ↗Pass
- SKILL.md follows the Agent Skills formatthe description does not say when to use the skillgithub.com/arcasilesgroup/ai-engineering/blob/HEAD/skills/ai ↗Finding
SKILL.md
View on GitHubai-codegraph — semantic code intelligence via MCP
What it produces
Nothing written. This skill reads the code graph and returns structured answers: verbatim source grouped by file, call paths (including dynamic dispatch), and blast radius summaries. The agent uses these to answer graph questions without grepping every file.
When to use CodeGraph vs find/grep
| Question | Tool | Why |
|---|---|---|
| "How does X work?" | codegraph_explore |
Follows call chains across files |
| "What calls function Y?" | codegraph_explore |
Graph traversal, follows polymorphism |
| "If I change this interface, what breaks?" | codegraph_explore |
Blast radius via edge traversal |
| "What does this module depend on?" | codegraph_explore |
Import edges in the graph |
| "Find all TODOs" | grep |
Literal text search, faster |
| "Where is X defined?" | find |
Simple path lookup |
| "Find all files importing X" | grep |
Literal text match |
| "Show me the test for this function" | find + grep |
Convention-based lookup |
Rule of thumb: graph questions → CodeGraph. Text questions → find/grep.
Steps
-
Check availability — is CodeGraph installed?
which codegraph && codegraph --versionIf missing:
npm i -g @colbymchenry/codegraph -
Check daemon — is the daemon running?
test -S .codegraph/daemon.sock && echo "running" || echo "not running"If not running:
codegraph serve --mcp & -
Check index — is the project indexed?
codegraph statusIf not indexed:
codegraph init -
Query — use
codegraph_exploreMCP tool:query: natural language or symbol/file namesmaxFiles: default 12, increase for broad questions
-
Interpret results — CodeGraph returns:
- Verbatim source grouped by file (with line numbers)
- Call paths (calls, imports, extends, implements)
- Blast radius summary (what depends on the queried symbol)
Per-surface MCP configuration
CodeGraph is an MCP server, not a governance hook. Each surface reads its own config:
| Surface | Config file | Key |
|---|---|---|
| Claude Code | ~/.claude.json (global) or .mcp.json (project) |
mcpServers.codegraph |
| Cursor | ~/.cursor/mcp.json (global) or .cursor/mcp.json (project) |
mcpServers.codegraph |
| Copilot VS Code | .vscode/mcp.json (local) or user mcp.json |
servers.codegraph |
| Copilot CLI | ~/.copilot/mcp-config.json |
mcpServers.codegraph |
| opencode | ~/.config/opencode/opencode.jsonc |
mcp.servers.codegraph |
| OMP | Import from ~/.claude.json or add manually |
— |
| Pi | pi-codegraph-extension or @isac322/pi-codegraph |
— |
Stdio launch shape (all surfaces):
{
"type": "stdio",
"command": "codegraph",
"args": ["serve", "--mcp"]
}
Lifecycle
Lane: light Writes: nothing (read-only tool server) Read by: any agent that needs graph queries Dies: on session end Next: none — the agent decides when to use it based on the question type
Anti-patterns
- Do NOT use for literal text search (
grepis faster) - Do NOT use for file discovery (
find/globis faster) - Do NOT use CodeGraph AND grep for the same question — pick one
- DO remember: CodeGraph leaves 82% more context resident after multi-turn sessions (vendor data: 67k vs 18k tokens after 3 turns). On small repos (<300 files), the cost may outweigh the benefit.
Source
- Repository: https://github.com/colbymchenry/codegraph
- License: MIT
- Stars: ~71k
- Version: 1.6.0 (measured 2026-09-22)
- Integration evidence:
.codegraph/codegraph.dbin this workspace
Source: ai-engineering (own), Apache-2.0.
Files in this skill
1ai-codegraph skill questions
How do I install the ai-codegraph skill in Claude Code?
Run npx degit arcasilesgroup/ai-engineering/skills/ai-codegraph ~/.claude/skills/ai-codegraph. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the ai-codegraph skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.
When should I use CodeGraph instead of grep?
Use CodeGraph for graph-based questions like following call chains, understanding polymorphism, or determining blast radius. Use grep for literal text searches.
How do I install CodeGraph?
You can install it globally using the command npm i -g @colbymchenry/codegraph.