-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
Labels
enhancementNew feature or requestNew feature or request