How it works
- You select connected repositories to act as sources.
- Kodus scans each source repository’s default branch for rule files, in the same locations and with the same template as Repository Rules (
.kody/rules/,rules/**/*.md, and so on). - Each rule file becomes a global rule, shown on the global Kody Rules page with the file it came from.
- During code review of any repository, these global rules apply alongside that repository’s own rules, subject to inheritance.
- Instructions written for coding agents (
CLAUDE.md,AGENTS.md,.cursor/rules/**) are not imported. Global rules imported from them in the past are kept but frozen; see Coding-Agent Instructions.
Only repositories already connected on the Repositories page can be sources, so imported rules stay up to date through the pull request trigger described below.
Setup
- In the sidebar, pick Global in the scope picker at the top of the Code review group, then open Kody Rules.
- Click Configuration to open the side sheet, and find Global rule sources.
- Click the repository picker and select one or more connected repositories.
- Click Import selected.
Keeping rules up to date
- On merge: when a pull request is merged in a source repository, its rule files are re-scanned and the global rules are updated. Unchanged files are skipped.
- Resync now: re-scans every source on demand. Use it after a push straight to a source repository’s default branch, which is not detected automatically.
Removing a source
Removing a repository from the list deletes the global rules imported from it, so they stop applying during code review. You are asked to confirm first. Rules from your other sources, and rules you wrote by hand, are not affected.Source repositories are not reviewed
A repository used as a source of global rules is treated as a configuration repository, not a codebase. Kodus skips code review on pull requests opened in it, the same way it does for a centralized configuration repository.Plan availability
On the Trial plan, a counter shows how many of the 5 rules are used, and a confirmation dialog says how many more will be added before you import.
Related
- Repository Rules: the rule file locations and template Kodus imports.
- Rule Inheritance: how global, repository and directory rules combine during review.