CODE GRAPH ANALYSIS
Analyze the entire codebase to understand file relationships and dependencies.
Typical review tools only examine the lines that changed. GitRabbit is different. It constructs a full Abstract Syntax Tree (AST) graph of your entire repository, tracing imports, class hierarchies, and database structures. When you modify a file, GitRabbit knows exactly which other files in the codebase are impacted by that change.
Key_Capabilities
Impact Propagation Tracking
See how changing a shared interface affects legacy classes in helper subfolders.
Cross-file Reference Validation
Detect broken imports and API changes across multiple repositories.
Structural Insights
Ensures code additions follow established design patterns already present in other modules.
Setup_Sequence
Repository Indexing
During initial installation, GitRabbit builds a code graph in a secure, ephemeral workspace.
Diff Mapping
When a PR is created, GitRabbit map the changed files against the pre-compiled dependency tree.
Propagation Scan
The agent traces imports to ensure changed APIs match expected types in dependent files.
Code_Example
[user-controller.ts] (Changed)
│
└───> Imports: [auth-service.ts] (Valid)
│
└───> Imports: [logging-library.ts] ❌ Broke dependency!
(Parameter 'severity' mismatch detected inside logEvent call)Pro_Tips
- ✦Keep your export paths clean. Resolving circular dependencies makes the GitRabbit code graph analysis up to 3x faster.
- ✦Code graphs are recompiled automatically with every merge into your main branch.
- ✦You can view the interactive codebase visualization in the GitRabbit cloud console.