codegraph  by colbymchenry

Semantic code intelligence for AI agents

Created 1 month ago
269 stars

Top 95.6% on SourcePulse

GitHubView on GitHub
Project Summary

CodeGraph enhances Claude Code's ability to understand and navigate codebases by providing a local, semantic knowledge graph. It targets developers using Claude Code for complex coding tasks, offering significant reductions in token usage and tool calls by replacing inefficient file scanning with instant graph queries.

How It Works

CodeGraph builds a local SQLite database containing a semantic knowledge graph of the codebase, including symbol relationships and call graphs. When Claude Code agents need to explore code, they query this graph via an MCP server instead of performing slow, token-intensive file scans. This approach provides instant lookups, enabling faster and more efficient code exploration.

Quick Start & Requirements

  • Primary install/run command: npx @colbymchenry/codegraph (interactive installer) or npm install -g @colbymchenry/codegraph (global install).
  • Prerequisites: Node.js >= 18.0.0.
  • Setup: The interactive installer configures Claude Code automatically. Projects require initialization via codegraph init.
  • Links: npm package

Highlighted Details

  • 100% Local Processing: Operates entirely on the user's machine without external services or API keys.
  • Multi-Language Support: Indexes over 19 languages, including TypeScript, Python, Go, Rust, Java, and C#.
  • Semantic Search: Enables finding code by meaning, not just exact text matches.
  • Automatic Index Syncing: Integrates with Claude Code hooks to keep the code intelligence index updated in real-time.
  • Performance Gains: Claims approximately 30% fewer tokens and 25% fewer tool calls for Claude Code agents.

Maintenance & Community

No specific details on maintainers, sponsorships, or community channels (like Discord/Slack) are provided in the README. Bug reports and feature requests are managed via GitHub issues.

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: Permissive MIT license allows for commercial use and integration with closed-source projects.

Limitations & Caveats

Requires Node.js to be installed. Initial indexing time can vary significantly based on project size. Some languages (e.g., Swift, Kotlin) have basic support. The tool's primary benefit is realized within the Claude Code ecosystem.

Health Check
Last Commit

3 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
9
Issues (30d)
14
Star History
154 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.