Learning center

Can different packages in a monorepo have different AI review rules?

Yes. Scope the instruction to the package that owns the behavior. Keep a shared requirement at the root when it applies to several packages, especially if a single pull request can change both sides of an interface.

Follow one change through two packages#

Consider a monorepo with a browser app and an email worker. Both render links, but only the worker needs to produce absolute URLs that work outside the site. Give that rule to the worker package. Change a shared URL helper in a trial review and check whether the worker's email template still gets examined when the helper lives outside that folder.

CodeRabbit documents package-specific path instructions and, on supported hosts, nested instruction documents. For a nested document its patterns are relative to the directory containing the package's .coderabbit/ folder. Write down one matching and one nonmatching path before choosing the pattern. Scope CodeRabbit instructions by package

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