Determine the appropriate diff command (e.g.
,
,
) based on the current git state. If the caller specifies which diff command to use, use that. Do NOT run the diff yourself — each review agent will run it independently to keep the diff out of the main agent's context.
If there are no git changes, review the most recently modified files that the user mentioned or that you edited earlier in this conversation.