CodeGraph: Supercharge AI Coding Agents with Semantic Code Intelligence

This repository profile is provided by osrepos.com, an open source repository discovery platform.

CodeGraph: Supercharge AI Coding Agents with Semantic Code Intelligence

Summary

CodeGraph is a powerful, pre-indexed code knowledge graph designed to enhance AI coding agents like Claude Code, Cursor, and Codex. It significantly reduces token usage and tool calls, offering a faster and more cost-effective way for agents to understand codebases. This 100% local solution provides semantic code intelligence, improving agent efficiency and accuracy.

Repository Information

Analyzed by OSRepos on May 25, 2026

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

CodeGraph is a powerful, pre-indexed code knowledge graph designed to supercharge AI coding agents such as Claude Code, Cursor, Codex, OpenCode, and Hermes Agent. By providing semantic code intelligence, CodeGraph allows these agents to understand codebases more efficiently, leading to significantly fewer tokens consumed and fewer tool calls. This 100% local solution processes symbol relationships, call graphs, and code structure, enabling agents to query an instant knowledge graph rather than scanning files.

Installation

Getting started with CodeGraph is straightforward, with no Node.js required for the bundled runtime.

For macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh

For Windows (PowerShell):

irm https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.ps1 | iex

If you already have Node.js, you can use npm:

npx @colbymchenry/codegraph        # zero-install
# or
npm i -g @colbymchenry/codegraph

After installation, initialize your project:

cd your-project
codegraph init -i

This command builds the per-project knowledge graph index and configures any project-local agent surfaces.

Examples

CodeGraph provides a rich command-line interface for interacting with your codebase's knowledge graph.

Initialize a project:

codegraph init -i

Search for symbols by name:

codegraph query UserService --kind class --json

Build context for AI agents based on a task:

codegraph context "fix login bug" --format markdown --max-nodes 20

Find test files affected by changes:

git diff --name-only | codegraph affected --stdin --quiet

Why Use CodeGraph

CodeGraph dramatically improves the efficiency and cost-effectiveness of AI coding agents. When an agent like Claude Code explores a codebase, it typically spawns "Explore agents" that scan files, consuming tokens with every tool call. CodeGraph replaces this with a pre-indexed knowledge graph, allowing agents to query instantly.

Key Benefits from Benchmarks:
Across 7 real-world open-source codebases, CodeGraph delivered an average of:

  • 35% cheaper
  • 57% fewer tokens
  • 46% faster
  • 71% fewer tool calls

Key Features:

  • Smart Context Building: Returns entry points, related symbols, and code snippets in one tool call, eliminating expensive exploration.
  • Full-Text Search: Instantly find code by name across your entire codebase.
  • Impact Analysis: Trace callers, callees, and the full impact radius of any symbol before making changes.
  • Always Fresh: Uses native OS file events for debounced auto-sync, keeping the graph current as you code with zero configuration.
  • 19+ Languages: Supports a wide array of languages including TypeScript, Python, Go, Rust, Java, C#, and many more.
  • Framework-aware Routes: Recognizes web-framework routing files and links URL patterns to their handlers across 14 frameworks.
  • 100% Local: No data leaves your machine, no API keys, no external services, relying solely on a local SQLite database.

Links

Related repositories

Similar repositories that may be relevant next.

TencentDB Agent Memory: Enhancing AI Agents with Layered Long-Term Memory

TencentDB Agent Memory: Enhancing AI Agents with Layered Long-Term Memory

July 7, 2026

TencentDB Agent Memory provides AI agents with fully local, long-term memory through a 4-tier progressive pipeline, eliminating external API dependencies. It significantly reduces token usage and improves task success rates by employing symbolic short-term memory and layered long-term memory. This innovative approach helps agents learn workflows and retain context more effectively.

AI AgentLong-Term MemoryLLM
Llama Cloud Services: Knowledge Agents and Management in the Cloud

Llama Cloud Services: Knowledge Agents and Management in the Cloud

July 3, 2026

Llama Cloud Services offers tools for building knowledge agents and managing data in the cloud. It provides robust capabilities for parsing various document types, including PDF, DOCX, and PPTX, into structured formats. Users should note that this repository is deprecated, with migration recommended to the new `llama-cloud` packages for continued support and improved performance.

document parsingpdf processingstructured data
FreeLLMAPI: Stack 16 Free LLM Tiers for 1.7 Billion Tokens/Month

FreeLLMAPI: Stack 16 Free LLM Tiers for 1.7 Billion Tokens/Month

June 27, 2026

FreeLLMAPI is an OpenAI-compatible proxy that aggregates the free tiers of 16 LLM providers, offering access to approximately 1.7 billion tokens per month. It simplifies access to diverse models through a single endpoint, featuring smart routing, automatic failover, and encrypted key storage. This powerful tool is designed for personal experimentation, allowing developers to leverage multiple free LLM resources efficiently.

TypeScriptLLMAI
Voicebox: The Open-Source AI Voice Studio for Cloning and Dictation

Voicebox: The Open-Source AI Voice Studio for Cloning and Dictation

June 25, 2026

Voicebox is an innovative open-source AI voice studio that allows users to clone voices, generate speech in multiple languages, and dictate into any application. It provides a comprehensive, local-first voice I/O stack, offering a powerful alternative to cloud-based solutions. This tool ensures complete privacy and control over your voice data, running entirely on your local machine.

AIVoice CloningSpeech Synthesis

Source repository

Open the original repository on GitHub.

9 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️