A tool for agents and humans to understand a repo, assess diff impact/risk, navigate code, and answer questions fast.
README
Codegraph is a small multi-language code analysis library and CLI for understanding repos quickly. It builds dependency graphs, symbol indexes, go-to-definition results, find-references results, semantic chunks, architecture drift reports, and PR review and impact artifacts across source languages plus graph-first document, stylesheet, and template formats.
It is built for agent and human workflows that need repo structure fast without standing up a full editor or LSP stack.
Use Codegraph when you need fast structural answers about a repo without relying on a full editor session or language-server setup.
inspect returns a bounded repo summary plus next commands:
{
"backend": {
"native": { "available": true }
},
"files": {
"total": 80,
"byLanguage": { "ts": 80 }
},
"hotspots": [
{
"file": "/workspace/codegraph/src/indexer.ts",
"fanIn": 16,
"fanOut": 27,
"score": 59
}
],
"duplicates": {
"total": 1