How it works
- You select connected repositories to act as sources.
- Kodus scans each source repo for rule files using the same patterns as Rules File Detection (
CLAUDE.md,AGENTS.md,.cursor/rules/**,.kody/rules/**, and so on). - Each discovered rule file is imported into the global scope and tagged with the source repository it came from.
- During code review of any repository, these global rules are applied alongside that repo’s own rules (subject to inheritance).
Only repositories already connected in your git settings can be used as global sources. This keeps a single source of truth for connected repos and ensures imported rules stay up to date through the Pull Request trigger described below.
Setup
- Open Settings → Code Review → Kody Rules and switch to the global view.
- In the Configuration tab, find Global rule sources.
- Click the repository picker and select one or more connected repositories.
- Click Import selected.
Keeping rules up to date
Imported rules are refreshed automatically and on demand:- 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, so this is cheap.
- Resync now — use the Resync now button to re-scan every configured source on demand. This also covers changes pushed directly to a source repo’s default branch.
Changes pushed directly to a source repository’s default branch (without a Pull Request) are not detected automatically. Use Resync now after a direct push to pick them up.
Removing a source
Removing a repository from the sources list deletes the global rules that were imported from it — they will no longer apply during code review. You’ll be asked to confirm before the removal takes effect. Rules imported from your other sources, and any rules you authored by hand, are never affected.Source repositories are not reviewed
A repository used purely as a source of global rules is treated as a configuration repository, not a codebase. Kodus skips code review on Pull Requests opened in a global rule source, the same way it does for a centralized configuration repository.Plan availability
Access to Global Rule Sources depends on your plan:On the Trial plan, when you import, Kodus imports the first 5 rules it finds across the repositories you selected (in repository file order). A counter on the screen shows how many of your 5 rules are already used, and a confirmation dialog spells out how many more will be added before you import.
Related
- Repository Rules — version-controlled rules scoped to a single repository.
- Rules File Detection — the file patterns Kodus scans for.
- Rules Inheritance — how global, repository, and directory rules combine during review.