Skip to content

INSTRUCTION focus on Branch/Remote Changes only #17

@1ilin

Description

@1ilin

The current INSTRUCTION 1 is

1. **Execute the required command** to retrieve the changes: `git diff -U5 --merge-base origin/HEAD`.

This is too broad for every scenario; sometimes I just want the agent to review my local (uncommitted) changes. I suggest changing this part to let the agent decide based on the user's input:

1. **Analyze User Intent & Select Command**: Determine which code changes to review based on the user's input.
    a. Local/Uncommitted Changes**
        If the user mentions "local", "working tree", "uncommitted", "current", or "latest work" (e.g., "review my local changes"), execute:
        `git diff -U5 HEAD`
    b. Branch/Remote Changes (Default)**
        If the user mentions "PR", "remote", "branch", "comparison", or gives no specific scope, execute:
        `git diff -U5 --merge-base origin/HEAD`

The text above is just an example to demonstrate the idea. Please feel free to adjust it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions