Codegraph provides a unique approach to code analysis by parsing repositories with Tree-sitter, building a typed ontology, and generating a comprehensive code graph. It offers powerful insights into code structure, dependencies, and architectural roles, designed to be directly consumable by Large Language Models and developers. Unlike vector-database-dependent solutions, Codegraph uses a simple JSON index and graph algorithms to deliver actionable answers, impact analysis, and guided next steps, all accessible through a CLI, interactive browser viewer, or an MCP server.
主要功能
01Comprehensive impact analysis and dependency tracking
02Nine interactive visualization views in a live-updating browser interface
03Architecture contract enforcement for CI/CD integration
04Tree-sitter parsing across Python, JavaScript, TypeScript, Go, and Rust
050 GitHub stars
06Typed ontology with inferred architectural roles and provenance
使用案例
01Understanding complex codebases and system architecture
02Predicting the blast radius of proposed code changes
03Guiding developers on optimal next steps during development