Skip to main content
| Multi-Repo Analysis requires you to list each related repository by hand. Automatic repository linking complements that workflow: rather than replacing your manual list, CodeRabbit scans your organization for related repositories and links them on your behalf. This is important because most multi-repository projects evolve faster than a hand-maintained list can track, and a stale list silently drops the cross-repo context that reviews rely on.
Automatic repository linking is available on the Pro+ and Enterprise plans. The number of repositories CodeRabbit links is bounded by your plan’s linked-repository limit.
When automatic repository linking is enabled, CodeRabbit scans the repositories across your Git organization and infers how they relate to one another. It examines import statements, dependency manifests, API consumption, and the broader architectural relationships between repositories, then describes each relationship in plain text so the review agent can reason about cross-repository impact. CodeRabbit links repositories on the same platform as the repository under review. Inaccessible repositories are skipped. See Platform requirements for the access each platform requires.

Enabling automatic repository linking

Set automatic_repository_linking under knowledge_base in the repository’s .coderabbit.yaml:
.coderabbit.yaml
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
knowledge_base:
  automatic_repository_linking: true
Automatically linked repositories supplement your manually configured ones; they do not replace the repositories you add through YAML or the web interface. Manually linked repositories are always preserved, and CodeRabbit fills the remaining capacity, up to your plan’s linked-repository limit, with the related repositories it discovers.

During reviews

At review time, automatically linked repositories feed the same cross-repository research as manually linked ones. The repositories CodeRabbit considered appear in the pull request review comment under ℹ️ Review info > 🔗 Linked repositories identified, where each entry is labeled by source as manually or automatically linked. When the changes are self-contained and have no cross-repository impact, CodeRabbit produces no findings, which is expected behavior.

Manual vs automatic linking

Manual and automatic linking work together; they differ only in how the list is maintained.
Manual linkingAutomatic linking
MaintenanceYou add and remove repositories yourselfCodeRabbit discovers and links related repositories for you
Configurationknowledge_base.linked_repositoriesknowledge_base.automatic_repository_linking: true
PlansAll paid plansPro+ and Enterprise
Best forA small, stable set of known dependenciesLarger or fast-changing dependency graphs
Use manual linking when you want precise control over a short, known list, and enable automatic repository linking when you would rather CodeRabbit keep cross-repository context current as your dependencies evolve. The two combine: your manual entries are always kept, and automatic linking fills any remaining capacity.

What’s next

Multi-Repo Analysis

Configure linked repositories manually and learn how cross-repo findings surface in reviews

Plans and pricing

See how many repositories each plan can link