Codegraph is a versatile code analysis library and CLI designed to rapidly provide structural insights into repositories without requiring a full editor or Language Server Protocol (LSP) setup. It's tailored for both human developers and AI agents, enabling quick understanding of unfamiliar codebases, assessing the impact and risk of diffs, navigating code effectively, and answering complex questions fast. It supports a wide array of source and graph-first languages, offering features like dependency graphs, symbol indexing, semantic chunking, and comprehensive PR review bundles.
主要功能
01Multi-language dependency graphs, including imports and workspace resolution
02SQLite export and an interactive browser graph viewer app
03Semantic chunking for code and text files, including SFC block splitting
041 GitHub stars
05Per-file symbol indexes with go-to-definition and find-references
06PR impact analysis and review bundles mapping diffs to changed symbols
使用案例
01Rapidly triage and understand unfamiliar code repositories
02Assess diff impact and risk during pull request reviews
03Integrate with AI agents for enhanced code navigation and analysis