Code-Graph-RAG: Empowering AI to Understand Codebases via Knowledge Graphs and MCP
adnan_hashmi · x · 2026-08-13
Code-Graph-RAG is an open-source codebase intelligence tool that helps developers understand and modify complex code by building AI-powered knowledge graphs.
- Core Architecture: It uses Tree-sitter for AST parsing across 14 languages, storing functions, classes, modules, and call relationships in the Memgraph graph database, combined with Qdrant for semantic search.
- Key Features:
- Natural Language Queries: Developers can ask questions in plain English (e.g., "What functions handle authentication?"), which the AI translates into precise graph queries.
- Surgical Code Editing: Supports AST-based code replacement with visual diff previews.
- Advanced Analysis: Offers data-flow tracing, dead code detection via call edges, and structure-aware search and replace using ast-grep.
- Integration: Can be seamlessly added as an MCP Server to agent workflows like Claude.
More from coding & agent
- Paper Proposes 'Sleep Phase' for LLMs to Consolidate Memory Offline — rohanpaul_ai · 2026-08-13
- Mine Agent Transcripts for Correction Patterns to Improve Evaluations — jonah_omninode · 2026-08-13
- Correcting an AI Agent Twice Means a Missing Workflow Rule — jonah_omninode · 2026-08-13
- Dopamine Loop for AI Coding Agents: Open-Source Skill Cuts Costs by 30% — AutoProspectAI · 2026-08-13
- Vercel AI SDK Now Supports Any ACP-Compatible Harness with One API — cramforce · 2026-08-13
- GitHub Repo with 36.3k Stars: A Curated List of 500+ AI Agent Projects — _jaydeepkarale · 2026-08-13