Category instructions
Each enabled Bug, Performance and Security row on What to review has an Instructions button that opens an editor (What counts as a bug issue, and so on).- The editor shows Kody’s default text. The chip reads Kody’s default until you change it, then Custom.
- Reset to default restores the default. Clearing the text does the same.
- The limit is 2000 characters.
- The button is hidden while the category is off. Business Logic has no instructions here.
Personality instructions
The Personality instructions editor in Kody’s personality (limit 2000 characters, Reset to default available) sets how Kody sounds in every suggestion. It applies on top of each category’s instructions.- Kody’s default keeps each suggestion to two short sentences: the impact, and what to change. When you write your own, that cap no longer applies, so say how long you want suggestions to be.
- Some rules hold whatever you write: Kody does not repeat the suggestion’s title, does not put code blocks in the text because the fix is shown separately, and does not add line numbers.
- It applies to every suggestion except deterministic scanner findings. A custom agent’s own writing instructions replace it for that agent’s findings.
External References
Category instructions, personality instructions and summary instructions can point at files. After you save, Kody detects the references and reads those files in later reviews. A status indicator under the editor shows when processing finishes.@file:path/to/file.ts— a file in the repository being reviewed. Add#L10-L50for a line range.@file:repo-name:path/to/file.ts— a file in another repository.
Setting them in kodus-config.yml
The same fields are available under v2PromptOverrides:
default-kodus-config.yml also contains a v2PromptOverrides.level group. It is accepted but ignored; only categories.descriptions, severity.flags and generation.main reach the review.Tips
- Be specific to your context. “Focus on null dereferences in our Java services and unclosed connections in the DAO layer” works better than “look for bugs”.
- Keep categories apart. Do not repeat the same instruction in Bug, Security and Performance.
- Describe the pattern, not one example. An example such as one exact string concatenation can narrow what Kody flags to that shape.
- Start with one setting. Run the defaults for a week, note the false positives or misses, and change only the instruction that relates to them.
Frequently Asked Questions
Do these apply to all repositories?
Do these apply to all repositories?
Set at Global, they apply to every repository without its own value. A repository or directory can override them.
What happens to existing pull requests when I change them?
What happens to existing pull requests when I change them?
Changes affect new reviews only. Comment
@kody review --force to review the whole of an existing pull request with the new text. Without --force, a review command covers only the commits since the last review.Reviews are too noisy. What should I change?
Reviews are too noisy. What should I change?
Raise Minimum severity to post on What to review (see Severity Threshold), then make the category instructions more specific.
Kody misses an issue it should catch.
Kody misses an issue it should catch.
Check that the category is on and the finding’s severity is not below your threshold. Use Reset to default to see whether your instruction narrowed the review too much.
What is the difference between category and personality instructions?
What is the difference between category and personality instructions?
Category instructions control what Kody analyzes in each category. Personality instructions control how every finding is worded. You can change them independently.