Codegraph

•
12
•

Analyzes multi-language codebases to build dependency graphs, symbol indexes, and impact reports for rapid understanding and navigation by agents and humans.

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.

Características Principales

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

Casos de Uso

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