Skip to main content
Two settings shape what Kody reports and how it reads. Both can be set at Global, Repository and Directory scope.

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.
Kody adds your text to its guidelines for that category. Name your stack and the patterns that matter to you:

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-L50 for a line range.
  • @file:repo-name:path/to/file.ts — a file in another repository.
Mentions such as “follow the guidelines in CONTRIBUTING.md” are detected too. Use precise paths so Kody finds the right file.

Setting them in kodus-config.yml

The same fields are available under v2PromptOverrides:
The file accepts one more group that no page in the app edits: the severity rubric Kody uses to classify a finding.
This changes how Kody classifies findings, not just how it words them. A bad rubric can quietly mute or inflate severities across every review. Start from the defaults in default-kodus-config.yml rather than writing a rubric from scratch.
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.
The file is only read once Prefer kodus-config.yml settings is on. See General.

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

Set at Global, they apply to every repository without its own value. A repository or directory can override 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.
Raise Minimum severity to post on What to review (see Severity Threshold), then make the category instructions more specific.
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.
Category instructions control what Kody analyzes in each category. Personality instructions control how every finding is worded. You can change them independently.