whatisgithub

What is codegraph?

colbymchenry/codegraph — explained in plain English

Analysis updated 2026-05-18

3,101TypeScriptAudience · developerComplexity · 2/5Setup · easy

In one sentence

A tool that pre-indexes your codebase into a local map so Claude Code can answer questions with far fewer tool calls.

Mindmap

mindmap
  root((CodeGraph))
    What it does
      Pre-indexes codebase
      Local SQLite database
      Auto-updates via file watcher
    Benefits
      90 percent fewer tool calls
      70 percent faster responses
      Tracks function calls
    Use cases
      Speed up Claude Code
      Understand large codebases
      Map URL routes to handlers
    Audience
      Developers using Claude Code

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Speed up Claude Code's understanding of a large codebase before asking questions

USE CASE 2

Trace which functions call which other functions across a project

USE CASE 3

Map a web framework's URL routes back to their handler functions

What is it built with?

TypeScriptNode.jsSQLite

How does it compare?

colbymchenry/codegraphdakheera47/job-opsneilsonnn/image-blaster
Stars3,1013,1243,064
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatehard
Complexity2/53/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Runs entirely locally with no API keys required.

Check the repository license file for exact terms, not stated in the explanation.

So what is it?

CodeGraph is a tool that builds a pre-indexed map of your codebase and makes that map available to Claude Code, the AI coding assistant. The idea is to solve a slow and expensive problem: when Claude Code needs to understand a project, it normally explores files one by one using search and read operations, each of which costs tokens (the units AI services charge for). CodeGraph does that exploration work upfront, offline, and stores the results in a local database, so when Claude Code needs to understand your code it queries the pre-built map instead of reading files on demand. The practical result, according to benchmarks shown in the README, is roughly 90 percent fewer tool calls and 70 percent faster responses when Claude Code answers questions about a codebase. The graph tracks which functions call which other functions, where symbols are defined, and how code is connected across files. It also understands routing patterns in web frameworks, so it can link a URL path back to the function that handles it. Everything runs on your own machine, no data is sent anywhere, no API keys are required, and the database is just a local SQLite file (a lightweight database that lives as a single file on disk). A file watcher keeps the graph up to date as you edit code, so you do not need to re-index manually. You set it up by running one command, which installs the tool, configures Claude Code to use it automatically, and indexes your project. It supports over 19 programming languages. The project is built with TypeScript and runs on Node.js. The full README is longer than what was provided.

Copy-paste prompts

Prompt 1
Install CodeGraph and index my current project for Claude Code
Prompt 2
Explain how CodeGraph reduces the number of tool calls Claude Code makes
Prompt 3
How does CodeGraph keep its index up to date as I edit files
Prompt 4
Which programming languages does CodeGraph support for indexing

Frequently asked questions

What is codegraph?

A tool that pre-indexes your codebase into a local map so Claude Code can answer questions with far fewer tool calls.

What language is codegraph written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, SQLite.

What license does codegraph use?

Check the repository license file for exact terms, not stated in the explanation.

How hard is codegraph to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is codegraph for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.