Access Custom Prompts Settings
Why Use Custom Prompts?
Team-Specific Standards
Model Optimization
Focus Control
Communication Style
How Custom Prompts Work
Custom Prompts operate at two levels:Category Prompts
Define what Kody looks for in each review category:- Bug
- Security
- Performance
- Execution breaks (unhandled exceptions)
- Wrong results (incorrect output)
- Resource leaks (files, connections, memory)
- State corruption (invalid object/data states)
- Logic errors (incorrect control flow)
- Race conditions (concurrent access issues)
Suggestion Prompts
Control how Kody communicates each individual suggestion. This customizes the message format and tone that appears in PR comments, like:External References
All custom prompts—Category, Suggestion, and PR Summary—support referencing real files from the codebases Kody can access. When you save an update, Kody automatically detects external references and resolves them for future reviews.- Use
@file:path/to/file.tsto point at files in the repository you’re editing; Kody will try to locate the path locally first. - Include
@repo:org/projectwhen referencing files from another repository or when editing prompts at the global level. - Prefer precise blob-style paths rather than placeholders so the model can reliably find the right file.
- After saving, Kody processes the references in the background. Check the status indicator beside the prompt editor to confirm when resolution completes.
Best Practices
Be Specific to Your Context
Do: Context-Specific
Don't: Too Generic
Avoid Redundancy Between Prompts
Each category should have a distinct focus. Don’t repeat the same instructions across different prompts.Example: Proper Separation
Example: Proper Separation
Anti-pattern: Redundant Prompts
Anti-pattern: Redundant Prompts
Be Careful with Examples
- Good: Pattern Description
- Risky: Specific Example
Keep Suggestions Scannable
For suggestion prompts, make messages easy to scan since developers review many at once:- Good: Clear Structure
- Bad: Wall of Text
Use Context Meaningfully
Only differentiate suggestion formats when there’s a real reason:- Good: Meaningful Difference
- Bad: Superficial Label
Use Cases
Industry-Specific Requirements
Industry-Specific Requirements
Tech Stack Optimization
Tech Stack Optimization
Model-Specific Tuning
Model-Specific Tuning
Severity-Based Communication
Severity-Based Communication
Direct and Concise Feedback
Direct and Concise Feedback
Educational Suggestions
Educational Suggestions
Different Tone for Rules vs Suggestions
Different Tone for Rules vs Suggestions
Troubleshooting
Reviews Are Too Noisy
Reviews Are Too Noisy
- Make prompts more specific and focused
- Add exclusions for patterns you want to ignore
- Raise minimum severity threshold in Suggestion Control
- Check for redundancy between category prompts
Missing Expected Issues
Missing Expected Issues
- Review your prompt for being too narrow or example-specific
- Check if the issue falls under a category you didn’t customize
- Try resetting to default to see if the issue is caught
- Consider if the issue might be classified under a different severity
Inconsistent Results
Inconsistent Results
- Ensure prompts are clear and unambiguous
- Remove conflicting instructions across different prompts
- Check if you’re using examples that are too specific
- Consider if different models in primary/fallback have different capabilities
Not Sure What to Customize
Not Sure What to Customize
- Start by running default reviews for a week
- Note patterns in false positives or missed issues
- Customize only the specific prompt related to those patterns
- Keep other prompts at default until you see a clear need
Frequently Asked Questions
Do custom prompts apply to all repositories?
Do custom prompts apply to all repositories?
- Global settings: Apply to all repositories in your organization
- Per-repository settings: Override global settings for that specific repo
Can I see the default prompts before customizing?
Can I see the default prompts before customizing?
What happens to existing PRs when I change prompts?
What happens to existing PRs when I change prompts?
@kody start-review to apply new prompts to existing PRs.Can I customize prompts with kodus-config.yml?
Can I customize prompts with kodus-config.yml?
kodus-config.yml.Should I customize all prompts or just some?
Should I customize all prompts or just some?
How do custom prompts work with BYOK?
How do custom prompts work with BYOK?
What's the difference between Category prompts and Suggestion prompts?
What's the difference between Category prompts and Suggestion prompts?
Can I use markdown in suggestion prompts?
Can I use markdown in suggestion prompts?
What happens if my suggestion template has syntax errors?
What happens if my suggestion template has syntax errors?
Do suggestion prompts work for both Kody Rules and standard suggestions?
Do suggestion prompts work for both Kody Rules and standard suggestions?
isKodyRule variable to create different messages for rules vs suggestions in the same prompt.