Problem Statement
Reviews see only the PR diff plus a base..head comparison, so the bot cannot reason about callers/callees outside the diff. Indexing the wider repository to trace logic across file boundaries would catch cross-file bugs that diff-only review misses.
Proposed Solution
Add optional codebase-aware context: pull related files referenced by the diff (definitions/callers of changed symbols) and include them in the prompt, or build a lightweight semantic/dependency index of the repo to retrieve relevant context per review. Bound by cost/latency and the per-PR spend cap (#42). Large, exploratory effort — likely warrants its own spike.
Alternatives Considered
- Diff + base comparison only (current) — cheap and simple, but blind to cross-file impact.
- Full embeddings index — powerful but heavy for a small-footprint self-hosted bot; evaluate scope first.
Priority
Important
Code of Conduct
Problem Statement
Reviews see only the PR diff plus a base..head comparison, so the bot cannot reason about callers/callees outside the diff. Indexing the wider repository to trace logic across file boundaries would catch cross-file bugs that diff-only review misses.
Proposed Solution
Add optional codebase-aware context: pull related files referenced by the diff (definitions/callers of changed symbols) and include them in the prompt, or build a lightweight semantic/dependency index of the repo to retrieve relevant context per review. Bound by cost/latency and the per-PR spend cap (#42). Large, exploratory effort — likely warrants its own spike.
Alternatives Considered
Priority
Important
Code of Conduct