// summary
code-review-graph builds a structural map of your codebase using Tree-sitter to provide AI assistants with precise, context-aware information. By tracking changes incrementally and calculating the blast radius of modifications, it significantly reduces token consumption during code reviews. The tool integrates seamlessly with various AI coding platforms via the Model Context Protocol to ensure only relevant code is analyzed.
// technical analysis
code-review-graph is a structural analysis tool designed to optimize AI coding assistants by reducing token consumption through intelligent context pruning. By utilizing Tree-sitter to build a persistent graph of code entities and their relationships, it enables AI models to focus only on the 'blast radius' of specific changes rather than scanning entire repositories. This approach addresses the inefficiency of current AI coding tools that often re-read large codebases, providing a significant performance boost and cost reduction in complex development environments.
// key highlights
// use cases
// getting started
To begin, install the package using 'pip install code-review-graph', then run 'code-review-graph install' to auto-configure your AI coding tools. Execute 'code-review-graph build' to parse your codebase into a structural graph. Once configured, you can interact with the graph through your AI assistant using commands like 'Build the code review graph for this project'.