Skip to content

PR-aware reviews #59

Open

Description

@mogul

Problem Statement

OCR reviews do not take into consideration previous discussions or feedback in a PR. They only look at code differences. So if there is

  • another AI or other people leaving feedback
  • discussions and responses with important context about intent and trade-offs decided
  • previous posts and comments from OCR

Then all of that is ignored by OCR. The resulting review feel disconnected, particularly compared with, say, what CodeRabbit does.

Proposed Solution

When I invoke OCR reviews from a GitHub Action, I want to specify a file full of "prior context" that will be first summarized using a first inference request to the configured LLM. Then I want the summary provided as context in the second, actual review request to the configured LLM. The response should not include duplicative findings, only new ones.

Alternatives Considered

No response

Affected Area

Review Agent / LLM interaction

Additional Context

No response

Activity

  1. added
    enhancement
    on Jun 6, 2026
  2. added theissue type on Jun 6, 2026
  3. zshs000 commented on Jun 6, 2026

    @zshs000

    I encountered a similar issue. In the previous review round, OCR produced a mix of valid suggestions and false positives. However, there is no way for me to flag the false positives as incorrect, so the same erroneous suggestions keep resurfacing in subsequent review rounds.

  4. lizhengfeng101 commented on Jun 8, 2026

    @lizhengfeng101
    Contributor

    Thanks for the detailed write-up, @mogul — and @zshs000 for sharing the related pain point about false positives resurfacing.

    This is something we've been thinking about internally. The core challenge is that OCR is designed to be stateless by nature (each invocation is independent), which keeps things simple and predictable but, as you've pointed out, leads to disconnected reviews that ignore prior context and repeat dismissed suggestions.

    We're currently designing an approach to solve this. Our thinking is leaning toward filesystem-based mechanisms to manage state across review instances — for example, persisting prior review context or resolution signals in a way that subsequent runs can pick up without requiring a centralized service. This would fit well with CI-based workflows where the filesystem (or artifacts) is the natural coordination layer.

    Still in the design phase, but this is on our radar. We'll update this issue as the approach solidifies. Feedback and ideas are welcome in the meantime.

  5. mogul commented on Jun 8, 2026

    @mogul
    Author
  6. thurnbauermatthi commented on Aug 13, 2026

    @thurnbauermatthi

    @lizhengfeng101 are there any updates on this one? I am also interested in that feature

  7. lizhengfeng101 commented on Aug 13, 2026

    @lizhengfeng101
    Contributor

    Hi @thurnbauermatthi — thanks for checking in.

    We've been working on this, but progress has been slower than we'd like. We tried a few approaches and the results haven't been satisfying so far.

    Our current implementation adds a dedicated section in the main_task_user prompt to include existing PR comments as context during review. However, the quality of the output with this approach hasn't met our expectations in the examples we've tested.

    If anyone has ideas or experience with a better approach for incorporating prior discussion context into LLM-based reviews, we'd love to hear them. We're very much looking for a solution that produces reliably good results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions