> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qodo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Commit code fixes directly in the pull request

> Qodo can generate code suggestions that you can apply directly to your pull request with a single click.

GitHubGitLab

The **Committable code suggestions** feature provides commit-ready fixes directly in code review comments. For small, isolated findings like a redundant check, an off-by-one, or a missing guard clause, there's no need to switch to your local environment. Qodo analyzes the finding, generates a precise fix, and lets you apply it with a single click. Committable suggestions are scoped to changes that are self-contained and easy to verify, so you can apply them with confidence knowing the fix won't introduce new issues.

This feature uses GitHub's native suggestion workflow, allowing you to incorporate feedback directly into your pull request from review comments. For more information, see [Incorporating feedback in pull requests](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request). As with any AI-generated code change, review the proposed diff before applying it to confirm it is appropriate for your codebase.

You'll find **Committable code suggestions** listed under the Committable code suggestion section in the Qodo feedback panel.

## Rules and guidelines

Not every finding qualifies for a committable suggestion, and that's intentional. A suggestion is only committable when it meets all of the following criteria:

* The finding is inline (line-level, not a general comment)
* It touches a single file
* The fix is five lines or fewer

Fixes that span multiple files, involve complex logic, or could introduce unintended side effects are deliberately excluded. The goal is confidence: if Qodo offers a committable suggestion, it's because the fix is contained, verifiable, and safe to apply directly.

## Enable Suggest committable fixes

### Configure committable fixes in the Qodo portal (Recommended)

1. Log in to the Qodo portal.
2. Navigate to **Configurations** > **Remediation**.
3. Enable **Suggest committable fixes**.

Enabled by default. For more information, see [Configure Remediation settings in the Qodo portal](https://docs.qodo.ai/configuration/remediation.md).

### Configure committable fixes in .pr\_agent.toml

```toml theme={null}
[review_agent]
enable_commitable_suggestions = true
```

| Value | Behavior |
| - | - |
| `true` | Auto-attaches committable suggestions to eligible inline findings |
| `false` (default) | Disables committable suggestions |

## Review and commit the suggestions

1. In your PR, expand the **Committable code suggestion** comment. A diff is displayed showing the suggested fix.

   ![Commitable Code suggestion](https://mintcdn.com/qodo/-mBkQ6pUUtDiW4e8/images/code-review/code-review-commitable-code-suggestion.png?fit=max\&auto=format\&n=-mBkQ6pUUtDiW4e8\&q=85\&s=3e37f36ff30031f4e3d07e66989bb570)

   A diff is displayed providing the options to apply the changes.

   ![Apply commitable suggestion](https://mintcdn.com/qodo/-mBkQ6pUUtDiW4e8/images/code-review/code-review-expanded-commitable-code-suggestion.png?fit=max\&auto=format\&n=-mBkQ6pUUtDiW4e8\&q=85\&s=adde9cf228b9fbceeeedf5b5a83e8247)

2. Click one of the following options:

   * Click **Apply Suggestion** to commit the fix immediately.
   * Click **Add suggestion to batch** to accumulate multiple changes and commit them together.

## Related resources

* [Anatomy of a Qodo Code Review](https://docs.qodo.ai/code-review/comment-anatomy.md): The parts of the review comment and how to read them.
* [Remediate findings in pull requests](https://docs.qodo.ai/code-review/remediate-findings-in-prs.md): Fix findings using chat or the remediation agent.
* [Customize the code review experience](https://docs.qodo.ai/configuration.md): What you can configure, and where to configure it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.