Learning center

Why is my AI code reviewer ignoring custom instructions?

First establish whether the reviewer loaded the instruction. Then check whether the changed file matched its scope and whether the diff contained the condition the instruction describes.

Locate the first difference#

For CodeRabbit, commenting @coderabbitai configuration on a pull request shows the resolved settings and their sources. Compare the selected branch, commit, and file with the version you edited. On Copilot, check the repository's code review setting and the path-specific file's matching pattern.

If the configuration matches, try a small change that clearly violates one instruction. Ask for the field or caller that would justify a finding. A generic review summary tells you little about whether the reviewer inspected that line. Save the example diff and observed result when reporting a repeatable miss. Inspect the configuration CodeRabbit used

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading