SonarQube Remediation Agent

Assign issues to the SonarQube Remediation Agent and generate AI CodeFix suggestions in SonarQube Cloud.

AI features are only available in SonarQube Cloud Team and Enterprise plans. See the Subscription plans page for more details.

SonarQube Remediation Agent backlog fixes

circle-check

You can reduce technical debt by selecting issues from your list and letting the SonarQube Remediation Agent propose fixes in a new pull request. A new Assign to Agent button on the Issues page lets you send selected issues to the agent so it can generate a fix proposal for you to review.

The Backlog fixes feature runs only on the main branch. It must be enabled by selecting Backlog fixes from the AI capabilities page in SonarQube Cloud. For step-by-step instructions to enable the Backlog fixes, see the Enable your agent article on the SonarQube Remediation Agent page.

Only eligible issues can be assigned to the agent. If you select a mix of eligible and non-eligible issues, a warning appears and you are told that only eligible issues will be sent to the service. The Assign to Agent button stays greyed out until at least one eligible issue is selected. For details on which issues are eligible, see the Requirements and limitations article.

When you select Assign to Agent, the agent opens a new pull request in GitHub, authored by the SonarQube Remediation Agent. An estimated time to fix notification will pop up and the agent's activity will visible on the Agent activity page when the PR is available.

Select one or more issues to fix using the SonarQube Remediation Agent to fix issues in your backlog.

Reviewing agent fixes in GitHub

The PR summary (in GitHub) includes information for each issue in the same format you expect see in an issue’s rule description from any SonarQube product. The agent’s fix proposal is delivered in a single commit, ready for an engineer to review.

The SonarQube Remediation Agent's PR will contain a list of Fixed Issues with information that includes the issue's rule description and the accompanying information as found with every SonarQube rule. Issues will be grouped together in unique commits defined by the unique rule that was violated; sometimes more than one issue fix suggestion will be in a commit.

Agents in your pull request

It's possible to get AI-generated fix suggestions in your pull request for Java, JavaScript/TypeScript, and Python projects when the quality gate fails with new issues introduced. Seethe Agents in your GitHub pull request page for the full details.

AI-generated fix suggestions

Sonar's AI CodeFix is available to provide fix suggestions for select rules and languages using Anthropic's Claude Sonnet 4 (recommended) or OpenAI's GPT-5.1.

Last updated

Was this helpful?