improve tool scans the PR code changes, and automatically generates meaningful suggestions for improving the PR code.
Example usage
- Suggestions Overview
- Selecting a Specific Suggestion
- Committable Code Comments

How to use the improve tool
Manual usage
Comment on the PR:
Learn more about automatic usage of tools.
improve tool is:
improve tool will run automatically on every PR, without any additional configurations. Edit this field to enable/disable the tool, or to change the configurations used.
Code suggestions elements
Each generated suggestion consists of three key elements:- A single-line summary of the proposed change.
- An expandable section containing a description of the suggestion.
- A diff snippet showing the recommended code modification (before and after).
Interactive options
After using theimprove tool, you can immediately trigger actions and apply changes with simple checkbox clicks:
- Apply this suggestion** button**: Clicking this checkbox instantly converts a suggestion into a committable code change. When committed to the PR, changes made to code that was flagged for improvement will be marked with a check mark, allowing developers to easily track and review implemented recommendations.
- More button: Triggers additional suggestions generation while keeping each suggestion focused and relevant as the original set
- Update** button**: Triggers a re-analysis of the code, providing updated suggestions based on the latest changes
- Author self-review** button**: Interactive acknowledgment that developers have opened and reviewed collapsed suggestions
Configuration options
Configuration options table
Configure theimprove tool by setting configurations under the pr_code_suggestions part in your configuration file.
General options
| Possible configurations | Default value | What they do |
|---|---|---|
extra_instructions | none | Optional extra instructions for the tool. For example: “focus on the changes in the file X”, “Ignore changes in …” |
commitable_code_suggestions | false | If set to true, the tool will display the suggestions as committable code comments. |
enable_chat_in_code_suggestions | true | If set to true, Qodo will interact with comments made on code changes it has proposed. |
dual_publishing_score_threshold | -1 (disabled) | Minimum score threshold for suggestions to be presented as committable PR comments. |
focus_only_on_problems | true | If set to true, suggestions will focus primarily on identifying and fixing code problems, and less on style considerations like best practices, maintainability, or readability. |
persistent_comment | true | If set to true, the improve comment will be persistent, meaning that every new improve request will edit the previous one. |
suggestions_score_threshold | 0 | Any suggestion with importance score less than this threshold will be removed. |
apply_suggestions_checkbox | true | Enable a checkbox to create a committable suggestion. |
enable_more_suggestions_checkbox | true | Enable a checkbox to generate more suggestions. |
enable_help_text | true | If set to true, Qodo will display a help text in the comment. |
enable_chat_text | true | If set to true, Qodo will display a reference to the PR chat in the comment. |
publish_output_no_suggestions | true | If set to true, Qodo will publish a comment even if no suggestions were found. |
wiki_page_accepted_suggestions | true | If set to true, Qodo will automatically track accepted suggestions in a dedicated wiki page called .pr_agent_accepted_suggestions. |
allow_thumbs_up_down | false | If set to true, all code suggestions will have thumbs up and thumbs down buttons. Note that this feature is for statistics tracking. It will not affect future feedback from the AI model. |
Params for number of suggestions and AI calls
| Possible configurations | Default value | What they do |
|---|---|---|
auto_extended_mode | true | Enable chunking the PR code and running the tool on each chunk. |
num_code_suggestions_per_chunk | 3 | Number of code suggestions provided by the ‘improve’ tool, per chunk. |
max_number_of_calls | 3 | Maximum number of chunks. |
Other features of the improve tool
Best Practices
Another option to give additional guidance to the AI model is by creating a best_practices.md file in your repository’s root directory. You can also setup a wiki page in GitHub.Extra instructions
Extra instructions are important. Theimprove tool can be configured with extra instructions, which can be used to guide Qodo to a feedback tailored to the needs of your project.
Be specific, clear, and concise in the instructions. With extra instructions, you are the prompter. Specify the relevant sub-tool, and the relevant aspects of the PR that you want to emphasize.
Examples of extra instructions:
Dual publishing mode
Dual publishing mode allows code suggestions to appear as commit-ready comments in the PR. This mode helps highlight suggestions that are more critical. To activate dual publishing mode, use the following setting:Self-review
Platforms supported: GitHub, GitLab
improve tool to add a checkbox below the suggestions, prompting users to acknowledge that they have reviewed them.
In your configuration file, set:

Make self-review mandatory
To enforce self-review before merging, add the following to your configuration file:
Auto-approval
Platforms supported: GitHub, GitLab, Bitbucket
- Auto-approval by commenting
- Auto-approval when the PR meets a condition
- Review effort score

- No code suggestions

Automatic updates on new commits - the Update button
When new commits are pushed after a recent code suggestions report on a pull request, an Update button appears (as shown below). Clicking this button triggers the/improve tool, which:
- Detects what’s changed since the last report
- Generates suggestions based on those new changes
- Merges these suggestions with the overall PR feedback, highlighting recent updates
- Marks change-related comments with a note and an asterisk (*), including a link to this page for easy reference
- Stay focused: Get feedback on the most recent changes first
- Stay organized: Comments related to new commits are clearly marked
- Stay efficient: Tackle feedback in order, starting with what’s new



