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.

code-session-memory: Automatic Vector Memory for AI Coding Sessions

code-session-memory: Automatic Vector Memory for AI Coding Sessions

August 15, 2026

code-session-memory provides automatic vector memory for various AI coding tools like OpenCode, Claude Code, Cursor, VS Code, Codex, and Gemini CLI. It indexes new messages into a vector database after each AI agent turn, enabling semantic search across all your past coding sessions. This tool ensures memory is shared across different platforms, enhancing developer productivity.

TypeScriptAIDeveloper Tools
Cloudflare Computer: Give Your Agent a Virtual Filesystem

Cloudflare Computer: Give Your Agent a Virtual Filesystem

August 14, 2026

Cloudflare Computer is an innovative project that provides a virtual filesystem within a Durable Object, allowing agents to interact with a persistent state. It offers pluggable execution backends, including containerized Linux environments and serverless Workers, enabling flexible and powerful agent computing. Currently in preview, it's ideal for experiments and prototypes leveraging Cloudflare's edge infrastructure.

TypeScriptCloudflareDurable Objects
SwarmClaw: Self-Hosted AI Agent Runtime for Autonomous Swarms

SwarmClaw: Self-Hosted AI Agent Runtime for Autonomous Swarms

August 13, 2026

SwarmClaw is an open-source, self-hosted AI agent runtime and multi-agent framework designed for autonomous agent swarms. It offers durable agent memory, MCP tools, schedules, and delegation, supporting over 23 LLM providers including Claude, GPT, Gemini, OpenRouter, and Ollama. This platform serves as a practical alternative to solutions like Claude Code and LangChain for those seeking self-hosted AI agent orchestration.

AI AgentsMulti-Agent FrameworkSelf-Hosted
json-render: The Generative UI Framework for Dynamic Interfaces

json-render: The Generative UI Framework for Dynamic Interfaces

August 12, 2026

json-render is a powerful Generative UI framework that allows developers to create dynamic, personalized user interfaces from natural language prompts. It ensures reliability by constraining AI-generated output to predefined components and actions, offering a predictable and safe way to build cross-platform UIs.

TypeScriptGenerative UIAI

Source repository

Open the original repository on GitHub.

17 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 ❤️