Skip to content

feat(agents): streamline code review across local changes, branch diffs, and pull requests #2783

Description

The Code Review agent will provide one review workflow for two audiences: authors who want grounded feedback before opening a pull request, and reviewers who need to assess an existing pull request. Review target selection will be independent from review profile selection so local changes, branch diffs, and pull requests can share the same orientation, dispatch, evidence validation, and reporting contracts.

Before dispatch, the workflow will present a decision-ready view of the change areas, preliminary signals, evidence references, selected perspectives, omitted perspectives, and recommended depth. Findings will affect the verdict only after their evidence has been validated, and perspectives that return no output will receive one full-context retry before being reported as unavailable.

Acceptance Criteria

  • A reviewer can explicitly select local changes, a branch diff, or a pull request as the review target.
  • Review target selection remains independent from Standard, Full, and Custom review profile selection.
  • Pull request input accepts a URL or number and resolves repository and base-branch context before review.
  • Orientation groups the change into coherent areas and includes preliminary signals with concrete evidence references.
  • One confirmation presents the proposed areas, perspective ownership, omitted perspectives with rationale, and recommended depth with rationale.
  • Accessibility is selected only when the changed surfaces are user-facing or otherwise accessibility-sensitive.
  • Findings with missing, out-of-scope, or contradictory evidence remain visible as rejected findings and do not affect finding counts or the final verdict.
  • A perspective that produces no output is retried once with the full dispatch context before it is marked unavailable.
  • The pull request review prompt delegates to the same Code Review workflow instead of maintaining a separate review implementation.
  • Behavior evaluations cover target and profile selection, decision-ready confirmation, evidence rejection, and no-output retry behavior.
  • Generated agent documentation and plugin metadata are synchronized with the final artifact set.

Out of Scope

Related

Evidence Source

  • Stakeholder input: support both pre-PR author review and pull request review through a streamlined Code Review experience.
  • Prototype evidence: branch feat/code-review-pr-changes demonstrates the intended agent, skill, prompt, evaluation, documentation, and packaging changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentsCustom chat agents (.agent.md)featureNew feature triggering minor version bumpneeds-triageRequires triage and prioritization

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions