Skip to main content
Kody can write a description of what a pull request changes. Open Code review → What Kody writes; the settings are in the PR summary section. They can be set at Global, Repository and Directory scope. The page’s preview (Show preview / Hide preview) shows how the summary lands on a sample pull request.

Write a summary

Turn on Write a summary on every pull request. It is on by default. With it off, Kody writes no summary and the options below are disabled. Kody writes the summary in the language set under Kody Language in General.

When the PR already has a description

Choose what Kody does with a description the author wrote:
  • Replace (default) — writes a new description from scratch.
  • Concatenate — adds the summary to the end of the existing description.
  • Complement — reads the existing description and writes one that highlights only what is new or relevant.
Replace and Complement keep the lines of the old description that link a task, such as Closes #12, AB#12 or a tracker link, at the top of the new one. Concatenate leaves the whole description in place. Kody’s text sits between two hidden comment markers, so a re-run updates that block instead of stacking a new one.

When new commits arrive

Choose what happens to Kody’s summary when commits are pushed after the pull request opened:
  • Do nothing (default) — the summary stays as it is.
  • Concatenate new summary — a summary of the new commits is added to Kody’s existing block.
  • Replace Kody’s summary — Kody’s block is replaced with a summary of the whole pull request.
Only Kody’s block changes. Text the author wrote stays.

Summary instructions

The optional Summary instructions field tells Kody what the summary should focus on or leave out. The Examples chips add ready-made lines.
  • “Focus on security changes and performance impacts”
  • “Summarize concisely, highlighting modified public APIs”
Instructions can also refer to what the review found, for example to mention the highest severity. Instructions can reference repository files; see External References. Try on a real PR runs the current settings on one of your pull requests. It is available when the summary is on and you can read pull requests. The preview runs before any review, so it shows no review findings.
On a very large pull request that does not fit the model’s context in a few passes, Kody skips the summary.
A description that exceeds the provider’s limit is cut with a truncation note: 4,000 characters on Azure DevOps, 32,768 on Bitbucket and 65,536 on GitHub. Kody keeps its summary short on Azure DevOps to leave room for the existing description.

YAML

The file is only read once Prefer kodus-config.yml settings is on. See General.