---
title: "Can different packages in a monorepo have different AI review rules? | Proofline"
description: "Yes. Scope the instruction to the package that owns the behavior."
url: https://proofline.sh/learn/monorepo-review-rules/
---

[Learning center](/learn/)

# 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.

Code review The Proofline team November 19, 2026 1 min read

## 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](https://docs.coderabbit.ai/configuration/guides/monorepo)

## 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](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Where do I put custom instructions for Copilot code review?](/learn/copilot-review-instruction-file/)
    
    Code review The Proofline team November 19, 2026 1 min read
    
-   ### [How do I exclude generated files from AI code review?](/learn/exclude-generated-review-files/)
    
    Code review The Proofline team November 19, 2026 1 min read
