Code-Graph-RAG parses multi-language codebases using Tree-sitter and constructs a knowledge graph in Memgraph to enable natural language querying and editing. The tool supports mixed-language monorepos under a unified schema and includes structural search and replace capabilities via AST patterns. Recent updates add Ruby support through a pluggable ast-grep tier, allowing new languages to be integrated via YAML configuration without custom parsers.
- Uses Tree-sitter for parsing and Memgraph for storing code structure as a knowledge graph.
- Supports unified querying across mixed-language monorepos with a single schema.
- Enables code editing and structural refactoring via AST pattern matching with ast-grep.
- Ruby support added via pluggable ast-grep tier using YAML patterns, no hand-written parser needed.
- Provides agent tools for matching and transforming code structures programmatically.