Here is a neat little trick to simplify guiding AI code reviews. In addition to maintaining agent instructions for code reviews, tell the agent to find a similar already merged pull request, and apply the code review patterns to the current PR. For example, let's say in my repo, I merged a pull request that adds a console.log statement. In my PR review, I change the simple console.log to console.log(**text**) to mark the text as "bold".

So let's say we open another pull request with the following change
1 | console.log('**hello**') |
We can give our agent the following instructions via AGENTS.md or copilot-instructions.md file
1 | When reviewing a pull request, first try finding a pull request merged within the last 90 days |
Without specifics, these instructions simply state:
- find a similar already merged pull request
- if found, apply the same patterns
That's it. Here is the result when I asked Copilot to perform the review in this repository:

Nice.