Plan requirement: Linked repositories are available on Teams and Enterprise plans (trial included as a preview). Free plans do not include cross-repo context.This is different from sharing coding standards across repositories (org-level rules and inheritance). Linked repositories share source context for a review, not review rules.
What it does
For a repository under review, you declare up to 3 linked repositories in the same organization. During the review:- Kody first checks whether the PR diff touches anything boundary-shaped — a fast, fixed check that costs nothing.
- If the diff looks like it touches a contract surface (DTOs, exports, string literals, status keys, API-shaped paths, and similar), the cross-repo tools are enabled.
- Linked repos are cloned lazily only when Kody actually needs to read or search them.
- Findings are still anchored only to lines in the PR under review — linked code is evidence, not a second review target.
Configure in the dashboard
Linked repositories are per repository, not global. Relationships are directional: links onfrontend apply only when reviewing PRs in frontend.
- Open Code Review Settings.
- Select a specific repository (not Global).
- Open the Linked Repositories page in that repository’s menu.
- Add sibling repos that are already connected to your organization.
- Optionally set:
- Instructions — free-text hint for Kody (e.g. “REST API this frontend consumes”).
- Ref — optional branch/tag pin. Leave empty to use the automatic ref cascade (below).
- Save.
Configure in kodus-config.yml
You can also declare links in the repository config file:
repository(required): full name of a repo connected to the organization (owner/repo).instructions(optional): short description of why the link exists.ref(optional): pin a branch, tag, or commit. When omitted, Kody uses the ref cascade.
linkedRepositories: [] means the feature is off.
How the ref is chosen
For each linked repository, Kody tries refs in this order and uses the first one that clones successfully:- PR description override for that repo (see below)
- Config
refpin (if set) - Open PR on the linked repo whose head branch matches the PR’s head branch
- The PR head branch name on the linked repo
- The linked repo’s default branch
- Fallbacks:
main, thenmaster
Override the ref from the PR description
For a one-off review (for example, review against a specific backend PR), mention the linked repo in the title or description of the PR under review. Overrides only apply to repositories that are already linked in config. Supported forms:
Examples:
When cross-repo context activates (boundary gate)
Even with links configured, Kody does not always open sibling repos. A cheap, deterministic gate scans added lines in the PR diff and activates only when it finds boundary surface, such as:- String literals (path segments, codes, event names, etc.)
- Exports (
export function, types, classes, …) - Enums / types / interfaces
- Object or payload field keys
- Status / state / error-code style identifiers
- Contract-like file paths (
dto,schema,api,client,openapi,proto, …)
What Kody can and cannot do with linked repos
Can:- Search and read files in linked repositories when the gate is on
- Use your instructions to understand the relationship
- Cite linked code as supporting evidence in a finding on the current PR
- Post review comments on files that exist only in a linked repository
- Review the entire linked repo as if it were the PR
- Link repositories outside the organization or that are not connected to Kodus
- Exceed the soft cap of 3 linked repositories per reviewing repo
Transparency at the end of the review
When linked repositories were part of the run, review metadata records which repos were configured, which refs were resolved (and from which source: description, pin, open PR, head branch, or default), and whether the boundary gate activated. Failed or skipped links surface as warnings rather than failing the whole review.Recommended setups
Prefer narrow, directional links (the consumer points at the producer) over linking every repo to every other.
Related guides
- Linked Repositories settings reference — the settings page, field by field
- How to share coding standards across repositories — org-level rules and inheritance (not source context)
- How to review PRs with project-specific context — memories, file references, custom prompts, MCP
- How to reduce code review noise — keep reviews focused when you add more context