Skip to main content
GitHub GitLab Bitbucket
Git Integration (formerly Qodo Merge) – AI code review agents for pull requests. This documentation describes the Qodo v1 experience. For the Qodo v2 documentation, click here.
The custom_prompt tool scans the PR code changes, and automatically generates suggestions for improving the PR code. It shares similarities with the improve tool, but with one main difference: the custom_prompt tool will only propose suggestions that follow specific guidelines defined by the prompt in the pr_custom_prompt.prompt configuration. With this tool, you are the prompter. Be specific, clear, and concise in the instructions. Specify relevant aspects that you want the model to focus on.

How to use the custom_prompt tool

Manual usage Comment on the PR:
Automatic usage To run the tool automatically when a new issue is opened, add it to your configuration file:

Configuration options

Configure the custom_prompt tool by setting configurations under the pr_custom_prompt part in your configuration file.

Example usage

An example of a possible prompt defined in the configuration file:
The prompt should be specific and clear, and be tailored to the needs of your project. Results obtained with the prompt above: