Plan requirement: Linked repositories are available on Teams and Enterprise plans, and during the trial. Free plans do not include cross-repo context. Self-hosted needs an Enterprise license.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.
- In the scope picker at the top of the Code review group in the sidebar, pick a specific repository (not Global).
- Open Linked repositories (it only appears at repository scope).
- Click Add repository and pick sibling repos that are already connected to your organization.
- Optionally, click a link to set:
- Instructions · optional — free-text hint for Kody (e.g. “REST API this frontend consumes”).
- Branch / ref pin · optional — branch/tag pin. Leave empty to use the automatic ref cascade (below).
- Click Save settings.
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. The file is only read when Prefer kodus-config.yml settings (Code review → General) is on for the repository, and its list replaces the one set in the web app. See the settings reference.
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:
owner/repo@branch pin wins over a PR reference wherever it appears, and among mentions of the same form the last one wins. Mentions of repos that are not linked are ignored (they do not create new links).
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
- Use more than 3 linked repositories per reviewing repo (in
kodus-config.yml, entries after the third are dropped)
What the review shows
When Kody read a linked repository, the comment it posts when the review ends includes Additional context used: with the repository and ref it read, for exampleorg/backend-api@main or the open PR it used. No line means no linked repository was read. A link that can’t be fetched or isn’t connected to the organization is skipped, and the review continues without it.
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, category instructions, MCP
- How to reduce code review noise — keep reviews focused when you add more context