Codebase Graph — Development skill for Claude Code
Code intelligence MCP server — 42-language tree-sitter AST parsing, FalkorDB knowledge graphs, 0.944 MRR search quality.
How to install Codebase Graph
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Phoenixrr2113/codebase-graph and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Codebase Graph does
**Understand your codebase at a glance.** CodeGraph parses your source code, builds a knowledge graph of every function, class, and relationship, then lets you explore, analyze, and query it through AI assistants.
Alternatives in Development
- Understand Anything — Graphs that teach graphs that impress 80.7k ★
- npm 71.9k ★
- Code Review Graph — Local knowledge graph for Claude Code 3.7k ★
README
CodeGraph
**Understand your codebase at a glance.** CodeGraph parses your source code, builds a knowledge graph of every function, class, and relationship, then lets you explore, analyze, and query it through AI assistants.
The Problem
Modern codebases are complex. When you need to:
- Understand impact — "What breaks if I change this function?"
- Find security issues — "Where is user input flowing to SQL queries?"
- Reduce complexity — "Which functions are too complex and need refactoring?"
- Navigate relationships — "What calls this? What does this depend on?"
...you're usually stuck grep'ing through files, hoping you didn't miss something.
The Solution
CodeGraph builds a **queryable knowledge graph** of your entire codebase:
Your Codebase → Tree-sitter Parser → FalkorDB Graph → Insights
42 languages Functions, Classes, Components, Interfaces, Types
74 file extensions CALLS, IMPORTS, EXTENDS, IMPLEMENTS, RENDERS edges
Complexity metrics per function
Knowledge graph with temporal memory
Vector search + cross-encoder reranking
Git history integration
Quick Start
Option A: FalkorDBLite (Embedded, No Docker)
The fastest way to get started. FalkorDBLite runs an embedded database with zero external infrastructure:
# Prerequisites: redis-server (macOS arm64 or Linux x64)
brew install redis # macOS
# Clone and install
git clone https://github.com/your-org/codegraph.git
cd codegraph && pnpm install && pnpm build
# Extract your codebase
pnpm codegraph extract ./src
# Search your codebase
pnpm codegraph search "auth"
A `.codegraph/config.json` file is created automatically:
{
"driver": "falkordblite",
"databasePath": ".codegraph/falkordb",
"graphName": "codegraph"
}
Option B: FalkorDB (Docker)
For development or team/enterprise deployments with a shared graph server:
...
Related Skills
Code Graph MCP
AST knowledge graph MCP server for Claude Code — semantic search, call graph traversal, HTTP route tracing, im
Codeindex
Structural code-intelligence engine in Zig — tree-sitter across 40+ languages, trigram and inverted indexes, d
Benzi
Benzi is compiler-backed code intelligence (Agent+MCP). Claude Code greps; Cursor embeds; Aider maps signature
Pi Codegraph
Pi-agent wrapper around codebase-memory-mcp: derived code knowledge (call graphs, blast radius) over a harness
Agent Skill
A Claude Code plugin marketplace containing the ast-grep skill for powerful structural code search using Abstr
Claude Code Intelligence
Local-first usage intelligence for Claude Code: an OTLP receiver, transcript parsing and quota tracking that a
Related Agents
Apollo Rs
apollo-parser and apollo-compiler APIs, CST/AST, error-tolerant parsing, validation
Router Client
Owns the Anthropic-compatible router HTTP client. Use for /healthz, /v1/models, scrub, RouterError, errorName,
CLI Expert
Expert in building npm package CLIs with Unix philosophy, automatic project root detection, argument parsing,