Overview
A custom agent is a reviewer your team writes for one concern: architecture boundaries, duplicated code, a security policy, end-to-end test coverage. Each agent has:- Instructions: what to look for, what to ignore, and what proof a finding needs
- Files: the globs it reviews. It runs only when a pull request changes one of them
- Skills & docs: guides from the repository it follows
- Tools: read-only plugins, your team’s CLIs and ast-grep rules
- Comments & model: its tag, format, severity floor, comment limit, writing style and model
@kody -v, not in Try it. Saved agents, skills and docs are kept and run again after an upgrade.
Skills, docs and tools
Best practices
Where to find them
Open Code review → What to review. The Custom agents section sits below the review categories, with a New agent button and a link to Skills & docs. Each row shows the agent’s switch, its tag color, the first line of its instructions, chips for its files, skills, docs and tools, and what it did lately (for example9 PRs · 15 posted · 30 days). Click a row to open the agent’s page. The ⋯ menu has Edit, Try it and Delete.
customAgents and knowledge keys in kodus-config.yml are ignored, and the review says so in its closing comment. See FAQ.Levels
Agents follow the scope picker at the top of the Code review group, like the rest of your settings.Create an agent
Click New agent
Pick a starting point
Shape it on its page
Try it, then turn it on
The agent page
The page has a status line (on/off, the files it runs on and what it posted in the last 30 days), four cards, and the Try it panel. Changes on the page are kept with Save. When the agent’s latest runs failed or stopped before finishing, the status line says so, with the reason and what fixes it: Change the model when the model is gone or the account can’t use it, Open AI providers for a rejected key or an account out of credits. It clears once a run finishes.Instructions
Files & knowledge
* or **:
.env*, *.pem, *.key, *.p12, *.pfx, *.jks, *.keystore, id_rsa* and other SSH keys) are never handed to an agent from the ignored paths, even by a glob that names them.
A pull request whose changed files are all ignored is still reviewed by an agent that names one of them, and only by it: Kody’s own review has nothing to look at.
Tools
What the agent can run besides reading the code, all read-only towards your systems: Plugins (MCP), CLIs (up to 3) and, under Advanced, Structural search (ast-grep rules). See Skills, docs and tools.Comments & model
Try it
Try it runs the agent as it is on screen, saved or not, on one pull request of the repository. Nothing is posted.Paste a pull request link
Read the result
- Warnings: what the run lost, such as no checkout (the agent read only the diff), a CLI that could not be installed, or a skill or doc that could not be used
- Skills opened, with the reference files the agent read
- Tool calls, each with its input and output, including CLI output
- Findings: each one kept, dropped or unverified, with the reason, the rule it quotes, and the Comment that would post
Change and run again
Run one agent on a pull request
Comment on a pull request with the agent’s command name on the first line:How agents run in a review
Pick the agents
Review
Check every finding
Apply the agent's settings
Merge with the main review
Post
Limits
FAQ
Why didn't my agent run?
Why didn't my agent run?
- It is off. New agents start off.
@kody -v <name>runs it anyway. - No changed file matches its Files globs, or every match is in Except.
- Its files are in the repository’s ignored paths and its globs don’t name them. Name the files explicitly (see Files & knowledge).
- Its files were deleted in the pull request.
- At a repository with its own list, an agent added at the global level later doesn’t reach it.
- At a directory, the review used the repository’s settings (for example, the pull request touched two configured directories).
Why was a finding dropped?
Why was a finding dropped?
- The quote is not in the guide on the branch it is read from (paraphrased, or the guide changed only in the pull request).
- The finding is outside what the agent’s instructions ask for.
- The verifier found no support for it in the code.
- It was below the agent’s minimum severity, or over its comment limit.
- Kody’s review reported the same problem and kept its comment.
Why is a guide from another repository not applied?
Why is a guide from another repository not applied?
- The repository is no longer connected to Kodus (unselected in Git settings, renamed, or its access revoked). Connect it again, then pick it under Other repository….
- The integration’s repositories could not be listed at that moment. The next review tries again.
- The file is not on that repository’s default branch, or on the branch or tag you set.
Can I configure agents in kodus-config.yml?
Can I configure agents in kodus-config.yml?
customAgents and knowledge in kodus-config.yml are not read. The closing comment says: “kodus-config.yml: customAgents is not read from this file; configure custom agents in the app.”Can a pull request change the rules it is judged by?
Can a pull request change the rules it is judged by?
What happens to past comments when I delete an agent?
What happens to past comments when I delete an agent?