
Enable Auto-sync rules from repo in your settings
What is Rules File Detection?
Rules File Detection automatically detects and imports configuration files from popular AI coding tools and assistants in your repository. This ensures Kody understands and respects your existing coding standards without requiring manual setup.Supported Rule Files
Kodus automatically detects and imports the following rule file patterns:Cursor
.cursorrules
- Main Cursor rules file (legacy).cursor/rules/**/*.mdc
- Cursor rules in subdirectories
GitHub Copilot
.github/copilot-instructions.md
- Copilot instructions.github/instructions/**/*.instructions.md
- Detailed instruction files
Claude
CLAUDE.md
- Claude-specific rules.claude/settings.json
- Claude configuration settings
Windsurf
.windsurfrules
- Windsurf IDE rules
Sourcegraph Cody
.sourcegraph/**/*.rule.md
- Cody rule files
OpenCode
.opencode.json
- OpenCode configuration
Aider
.aider.conf.yml
- Aider configuration.aiderignore
- Aider ignore patterns
Generic/Internal Rules
.rules/**/*
- Generic rules directory.kody/rules/*
- Kody-specific rulesdocs/coding-standards/**/*
- Documentation-based coding standards
How It Works
Initial Setup
- Enable Auto-sync: Toggle the “Auto-sync rules from repo” option in your settings
- First Sync Modal: A modal will appear asking if you want to sync for the first time
- Repository Scan: When you confirm, Kodus scans your entire repository for supported rule files
- Rule Generation: An LLM processes the found files and automatically creates corresponding Kody Rules
Ongoing Synchronization
- Automatic Updates: Sync happens automatically when a Pull Request is closed
- File Changes Detected:
- New rule files → Creates new Kody Rules
- Modified rule files → Updates existing Kody Rules
- Deleted rule files → Removes corresponding Kody Rules
If you manually edit a Kody Rule that was created from an IDE rule file, your changes will be overwritten the next time the corresponding file is modified and synced.