Skip to content

feat(review): codebase-aware context beyond the diff (cross-file analysis) #55

Description

@devops-thiago

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

  • I have searched for existing issues and this is not a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededjavaPull requests that update java code

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions