> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/ai-features/administer-remediation-agent.md). Agents can also search and read this documentation through its [MCP server](https://docs.sonarsource.com/~gitbook/mcp).

# Administer Remediation Agent

Set up SonarQube Remediation Agent with a Sonar-provided LLM or your own provider key, and control access to your repositories and projects.

SonarQube Remediation Agent helps you fix issues found by SonarQube Cloud in pull requests and in your backlog. It generates fix suggestions for eligible issues and verifies the proposed changes before offering them to you.

As an organization admin, use this page to enable the agent, manage repository access, and configure fixes for GitHub, GitLab, or Azure DevOps projects. To learn how the agent works, see [Remediation Agent](https://docs.sonarsource.com/agent-centric-development-cycle/in-your-long-living-branches-the-code-maintenance-loop/remediation-agent.md) in the Agent Centric Development Cycle documentation.

Remediation Agent requires a separate subscription to your SonarQube Cloud Team (annual) or Enterprise plan. To trial or purchase Remediation Agent, contact [our Sales team](https://www.sonarsource.com/products/sonarqube/contact-sales/).

## Choose your LLM option

Your Remediation Agent subscription determines which large language model (LLM) option your organization uses:

* Sonar-provided LLM: Sonar provides the LLM access. You do not need an external provider account or API key. Continue with [Enable your agent](#enable-your-agent).
* Bring your own key (BYOK): You provide an OpenAI or Anthropic API key. [Add and select your key](#configure-and-manage-your-own-llm-key-byok) before enabling remediation workflows. Your provider bills LLM usage to your account.

## Supported DevOps platforms, languages, and issues

* SonarQube Remediation Agent, when enabled, can make automated and manual backlog fix suggestions on private projects bound to GitHub, GitLab, or Azure DevOps. It can make fix suggestions in new pull requests on private GitHub-bound projects and merge requests on private GitLab-bound projects.
* Pull request remediation, available for GitHub- and GitLab-bound projects, fixes new issues in a pull request when the quality gate fails. Azure DevOps-bound projects can use automated and manual backlog remediation.
* The agent can suggest code fixes in your main branch and pull requests for eligible maintainability, reliability, and security issues, including secrets. For static analysis issues, language availability depends on the languages enabled for your organization. Sonar manages which languages are enabled; there is no setting in SonarQube Cloud to change them. To check whether a specific issue is eligible, use **Fixable by Agent** on the **Issues** page.
* The agent can suggest fixes for eligible [Hunter Agent findings](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/issues/with-ai-features/hunter-agent-findings.md) in your main branch.
* The agent can fix dependency vulnerabilities found by Software Composition Analysis (SCA). See [Reviewing and fixing dependency risks](https://docs.sonarsource.com/sonarqube-cloud/advanced-security/reviewing-and-fixing-dependency-risks.md) for details.

GitHub-bound projects also support [Remediation campaigns](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/issues/with-ai-features/remediation-campaigns.md), alongside manual fixes with **Fix with Agent** and scheduled backlog remediation. Campaigns work through related issues in steps and combine changes into one final pull request. They use the Remediation Agent subscription and manual backlog remediation setup.

## Requirements and limitations

* Analysis must be enabled on your repository, either automatic analysis or CI-based analysis.
* Your GitHub, GitLab, or Azure DevOps organization and repository must be bound to your SonarQube Cloud organization and project.

To keep the agent's output manageable, the number of issues it handles at once is limited:

* Automated backlog remediation: each scheduled run opens one pull request for up to five issues in every selected repository.
* Manual backlog remediation with **Fix with Agent**: select up to 20 issues to assign at one time.
* Remediation campaigns (GitHub): a campaign targets up to 200 eligible issues, grouped into steps.
* Pull request remediation: if a pull request introduces more than 20 new issues, the agent is not offered.

{% hint style="warning" %}
Language availability applies to static analysis issues. Hunter Agent findings are eligible regardless of language, but remain subject to rule exclusions and the other Remediation Agent eligibility requirements. Use **Fixable by Agent** on the **Issues** page to find eligible issues.

Installing the SonarQube Agent GitHub app does not make every issue eligible for remediation. Changes to language availability apply to new remediation requests. Work already accepted by the agent may finish.

Validation depends on the language and available tools. Language-specific syntax or lint checks may be unavailable. An unavailable check does not mean that the change passed validation. The agent might not produce a fix for every eligible issue. Review proposed changes before merging them.
{% endhint %}

## Sharing your code with Sonar

If you use SonarQube Remediation Agent, the affected code is processed by Sonar to generate and verify a fix suggestion. Sonar's remediation service sends the affected code snippet to the LLM used by your subscription to generate the suggestion, then verifies the generated code.

If you use the Sonar-provided LLM, see [AI Annex](https://www.sonarsource.com/legal/ai/) in our [Legal Documentation](https://www.sonarsource.com/legal/) for the terms and conditions.

When you use your own provider key, your provider’s usage agreement governs how your data is handled.

## Enable your agent

You must be an organization admin in SonarQube Cloud. Before you connect the agent, bind your project to its GitHub, GitLab, or Azure DevOps repository and enable analysis, using either automatic analysis or CI-based analysis. Then navigate to *Your SonarQube Cloud organization* > **Administration** > **AI capabilities** > **Remediation Agent**.

Connect the agent to your DevOps platform, then select the remediation workflows and projects it can work on.

How you connect the agent depends on your DevOps platform.

### GitHub: install the SonarQube Agent app

A GitHub administrator needs to install the [SonarQube Agent GitHub app](https://github.com/apps/sonarqube-agent). Under **Install app**, select **GitHub**. The administrator will be prompted to install the app on the GitHub organization already linked to your SonarQube Cloud organization. If installed, the agent will be granted:

* Read and write access to code and pull requests
* Read-only access to Actions
* Read-only access to issues and metadata

Choose either **All repositories** or **Only select repositories** to control which repositories the agent can access. Once you've made your selection, select **Install & Authorize** to finish the setup. The installation may take a few seconds to complete.

### Azure DevOps: reuse your platform connection

Azure DevOps does not use a separate app. The agent reuses the personal access token (PAT) captured when your Azure DevOps organization was imported into SonarQube Cloud, so there's no app to install and no install-time repository picker. If your organization is not imported yet, see [Importing an Azure DevOps organization](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/managing-organization/creating-organization/importing-azure-devops-organization.md#create-pat) and [Azure DevOps project binding](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/administering-your-projects/devops-platform-integration/azure-devops.md).

### GitLab: reuse your platform connection

The agent uses the GitLab personal access token (PAT) you entered when you imported your GitLab group into SonarQube Cloud. There’s no separate app to install.

Before you start, make sure:

* Your organization has a Remediation Agent subscription
* Your private GitLab.com project is imported into SonarQube Cloud and has been analyzed
* The PAT has not expired or been revoked, has the `api` scope, and belongs to an account with at least the **Maintainer** role on the GitLab projects where the agent will run

For import and binding instructions, see [Importing a GitLab group](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/managing-organization/creating-organization/importing-gitlab-group.md) and [Configuring GitLab project binding](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/administering-your-projects/devops-platform-integration/gitlab.md). For token permissions, see [GitLab access token scopes](https://docs.gitlab.com/security/tokens/access_token_scopes/).

To enable the agent:

1. Go to *Your organization* > **Administration** > **AI capabilities** > **Remediation Agent**.
2. If your subscription uses BYOK, under **Choose your key**, select your key. See [Select the key for the agent](#select-the-key-for-the-agent).
3. Under **Enable agent**, enable **Manual backlog remediation** to assign issues from your main branch. Enable **Pull request remediation** to request fixes for issues in merge requests.
4. Review **Automated backlog remediation**. Turn it off if you want only on-demand fixes, or configure its schedule and projects as described in [Automated backlog remediation](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/issues/with-ai-features/backlog-fix-suggestions.md#automated-backlog-remediation).
5. Select **Save** after changing the settings.

After saving, [verify your GitLab setup](#verify-your-gitlab-setup).

{% hint style="info" %}
Remediation Agent supports GitLab.com. Support for self-managed GitLab instances is not generally available.
{% endhint %}

#### Verify your GitLab setup

With **Manual backlog remediation** enabled for your organization, start with one eligible backlog issue:

1. Open the project's **Issues** page and select its main branch.
2. Use **Fixable by Agent** to find eligible issues. Select one issue, then select **Fix with Agent**. If no eligible issues are available, use another analyzed project where the agent is enabled.
3. Open the project's **Agent activity** page. Confirm that a run appears, then check its outcome when it finishes.
4. If the agent produces a fix, open the linked merge request in GitLab. Check that it targets the project's main branch and contains the proposed change for the issue you selected. Review the change before merging it, or close the merge request if you do not want to apply the test fix.

A run appearing in **Agent activity** confirms that SonarQube Cloud accepted the request. A merge request with a proposed fix confirms that the agent could read the repository and create a change. The agent might not find a fix for every eligible issue; a run without a fix does not by itself mean setup failed.

To verify scheduled fixes, wait for the next configured run and check **Agent activity**. If no run appears, check that the selected projects have eligible issues, then check the schedule's time zone, project-level overrides, and **Pause when open PRs reach** limit. For merge request fixes, follow [Trigger fixes for a GitLab merge request](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/issues/with-ai-features/pull-request-fix-suggestions.md#trigger-fixes-for-a-gitlab-merge-request).

If a run fails, check that your GitLab PAT is valid and still has access to the project. See [Manage agent access](#manage-agent-access). For provider-key errors, see [Manage and delete keys](#manage-and-delete-keys).

### Select flows and projects

Under **Enable agent**, use **Manual backlog remediation** to control whether you can assign issues with **Fix with Agent** on the **Issues** page. For GitHub-bound projects, this setting also controls whether you can start Remediation campaigns. For GitHub and GitLab, use **Pull request remediation** to control fixes for pull requests or merge requests.

To schedule backlog fixes, select **Automated backlog remediation** at the bottom of the **Enable agent** list. Set the frequency (daily or weekly), the time, and the time zone for the scheduled runs. To cap how many open pull requests the agent keeps active, set a limit under **Pause when open PRs reach**, or select **Don't pause**. Choose **All projects** or **Only selected projects** to control which projects are included in scheduled runs. Project admins can override or disable the schedule for individual projects.

## Configure and manage your own LLM key (BYOK)

This section applies only to subscriptions that use BYOK. You need an OpenAI or Anthropic account. Add a key from that account, connect the agent to your DevOps platform, and select the key before enabling remediation workflows.

Requests use your provider account. Your provider bills LLM usage to that account, and your provider's usage agreement governs how your data is handled.

### Add a provider key

Adding keys is an organization-level task. Navigate to *Your SonarQube Cloud organization* > **Administration** > **AI capabilities** > **LLM API Keys**, then:

1. Choose a provider: **OpenAI** or **Anthropic**.
2. Enter the API key from your provider account.
3. Enter a name to identify the key in SonarQube Cloud.
4. Select **Add key**.

When you add a key, SonarQube Cloud verifies it with the provider. If the key is valid, it's accepted; if it cannot be verified, SonarQube Cloud reports the error and the key is not saved.

You can add up to three keys per organization. Once you reach that limit, the **Add key** option is disabled until you delete a key.

{% hint style="info" %}
SonarQube Cloud selects the model for your provider. SonarQube Cloud uses Claude Opus 4.6 for Anthropic and GPT-5.5 for OpenAI. You do not select a model when you add a key.
{% endhint %}

### How your key is handled

* **Encrypted at rest**: keys are encrypted with AWS Key Management Service (KMS) before they're stored.
* **Never logged**: the key value is not written to logs.
* **Masked when displayed**: after you save a key, SonarQube Cloud only ever shows a masked hint, a few characters from the start and end of the key. The full key is never shown again and is never sent back to the browser, so keep your own copy if you need it elsewhere.

### Select the key for the agent

After you add a key, [connect the agent to your DevOps platform](#enable-your-agent). For GitHub, install the SonarQube Agent app before selecting the key. Azure DevOps and GitLab reuse your existing platform connection.

1. Go to *Your organization* > **Administration** > **AI capabilities** > **Remediation Agent**.
2. Under **Choose your key**, select the key you added. If no key is available, [add a provider key](#add-a-provider-key), then return to select it.
3. Continue with [Select flows and projects](#select-flows-and-projects).

The agent cannot be enabled until a valid key is selected, so the later setup steps stay disabled until you complete this step.

### Manage and delete keys

To review or remove keys, go to *Your SonarQube Cloud organization* > **Administration** > **AI capabilities** > **LLM API Keys**. Each saved key shows its name, provider, and masked hint.

To delete a key, select it and confirm. If you delete the key currently selected for the agent, the agent is disabled until you select another key.

## Usage and allowance

Both LLM options require an active Remediation Agent subscription and available usage allowance. The Sonar-provided LLM does not bypass your subscription's usage limits.

Check your subscription's LLM option and usage under **Billing and usage**. The Remediation Agent entry identifies the option as **uses Sonar LLM** or **uses BYOK (Custom API Key)**. See [Viewing billing or usage information](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/managing-subscription/viewing-billing-and-usage.md) for the access required for your organization or enterprise.

When your allowance is exhausted, the agent blocks new remediation work. Contact [our Sales team](https://www.sonarsource.com/products/sonarqube/contact-sales/) to discuss your allowance.

## Manage agent access

### GitHub

SonarQube Remediation Agent only has access to the bound repositories defined in GitHub. To change repository access, a GitHub administrator who is also a SonarQube Cloud Administrator can navigate in SonarQube Cloud to *Your organization* > **Administration** > **AI capabilities** > **Remediation Agent**. Under Install app, select **Manage Permissions** which takes you to your GitHub Apps page.

Alternatively, a GitHub administrator can navigate in GitHub to *Your GitHub organization* > **Settings** > **Third-party Access** > **GitHub Apps**. Under **Installed GitHub Apps** > **SonarQube Agent**, select **Configure**.

* In GitHub, under **SonarQube Agent** > **Repository access**, add or remove your repositories from the list. When finished, select **Save** to confirm your selection.

### Azure DevOps

The agent's access comes from your Azure DevOps organization binding rather than a separate app. To choose projects for scheduled fixes, switch between **All projects** and **Only selected projects** under *Your organization* > **Administration** > **AI capabilities** > **Remediation Agent**. To change repository-level access, update the personal access token or organization binding in Azure DevOps. See [Azure DevOps project binding](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/administering-your-projects/devops-platform-integration/azure-devops.md).

### GitLab

To choose projects for scheduled fixes, select **All projects** or **Only selected projects** under *Your organization* > **Administration** > **AI capabilities** > **Remediation Agent**. To change repository access, update the PAT used for your GitLab connection or the project permissions of the account that owns the token. Merge requests created by the agent appear under that GitLab account.

### Disable or suspend agent access

A SonarQube Cloud Administrator can disable the agent for any platform: navigate to *Your organization* > **Administration** > **AI capabilities** > **Remediation Agent** > **Enable agent** and unselect the remediation type you want to suspend. After you select **Save**, the agent will not be triggered.

On GitHub, you can also suspend or uninstall the SonarQube Agent app completely. Navigate in GitHub to *Your GitHub organization* > **Third-party Access** > **GitHub Apps** > **SonarQube Agent** > **Danger zone** and select **Suspend** or **Uninstall**.

* **Suspend** will block the agent's access to your repositories. This is the easiest way to restart the agent when you're ready.
* If you select and confirm **Uninstall**, the SonarQube Agent will be removed from all of your repositories and from your SonarQube Cloud organization. The agent's activity will remain in your PR history, but if you want to use the agent again, you must return to [Enable your agent](#enable-your-agent).

On Azure DevOps and GitLab, there’s no app to suspend or uninstall. Disable the agent in SonarQube Cloud using the steps in this section. To remove access through your GitLab or Azure DevOps connection, revoke its PAT or change the token's permissions. Revoking the PAT also affects other SonarQube Cloud features that use that connection.

## Agent behavior

SonarQube Remediation Agent supports the following workflows:

* **Automated backlog remediation**: The agent runs on a schedule you set, automatically proposing fixes for eligible issues in your main branch without manual assignment. For configuration details, see [Backlog fix suggestions](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/issues/with-ai-features/backlog-fix-suggestions.md#automated-backlog-remediation).
* **Manual backlog remediation**: Select issues from your main branch and assign them to the agent. It opens a new pull request in your repository and groups the fixes you assign by rule key and file type. Each Hunter Agent finding is processed separately, with its own pull or merge request, if a fix is available. For details, see [Backlog fix suggestions](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/issues/with-ai-features/backlog-fix-suggestions.md).
* **Remediation campaigns** (GitHub only): Work through related issues in your main branch in steps. The agent combines changes into one final pull request for you to review. For details, see [Remediation campaigns](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/issues/with-ai-features/remediation-campaigns.md).
* **Pull request remediation** (GitHub and GitLab): When your quality gate fails during pull request analysis, trigger the agent from the **Fix automatically** checkbox in the GitHub comment or from **Fix with Agent** in SonarQube Cloud for a GitLab merge request. The agent opens a separate pull request or merge request targeting your branch. Its behavior and how to engage with it are described on [Pull request fix suggestions](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/issues/with-ai-features/pull-request-fix-suggestions.md).
* **CI/CD failure recovery** (GitHub Actions only): If CI fails on an agent-created PR, the agent automatically reads the build logs, pushes a new commit to address the failures, and waits for CI to run again. The agent retries up to three times. If CI passes, the PR is ready for your review. If CI still fails after three attempts, the agent stops and leaves the PR open for you to fix manually. Recovery applies to PRs created from both pull request remediation and backlog remediation flows.

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>CI/CD failure recovery works only for GitHub Actions workflows. The agent detects CI failures from any provider, but can only read build logs through the GitHub API, which exposes logs for GitHub Actions jobs only.</p></div>

On GitHub, the agent can also respond to review comments on its own PRs. See [Review comment follow-up](https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/issues/with-ai-features/pull-request-fix-suggestions.md#review-comment-follow-up) for eligible comments and repository permissions.

## Unsupported rules

The following rules are not supported by Remediation Agent.

### Unsupported C rules <a href="#unsupported-c-language-rules" id="unsupported-c-language-rules"></a>

c:S1135

c:S1134

c:S1144

c:M23\_001

c:M23\_002

c:M23\_003

c:M23\_005

c:M23\_006

c:M23\_007

c:M23\_011

c:M23\_013

c:M23\_023

c:M23\_025

c:M23\_026

c:M23\_029

c:M23\_034

c:M23\_035

c:M23\_036

c:M23\_037

c:M23\_038

c:M23\_039

c:M23\_041

c:M23\_042

c:M23\_043

c:M23\_044

c:M23\_045

c:M23\_046

c:M23\_047

c:M23\_048

c:M23\_050

c:M23\_051

c:M23\_053

c:M23\_054

c:M23\_057

c:M23\_058

c:M23\_065

c:M23\_066

c:M23\_080

c:M23\_081

c:M23\_082

c:M23\_083

c:M23\_090

c:M23\_091

c:M23\_093

c:M23\_094

c:M23\_099

c:M23\_103

c:M23\_105

c:M23\_106

c:M23\_107

c:M23\_110

c:M23\_112

c:M23\_113

c:M23\_125

c:M23\_126

c:M23\_131

c:M23\_139

c:M23\_142

c:M23\_143

c:M23\_145

c:M23\_146

c:M23\_148

c:M23\_149

c:M23\_150

c:M23\_151

c:M23\_152

c:M23\_154

c:M23\_159

c:M23\_160

c:M23\_162

c:M23\_202

c:M23\_203

c:M23\_204

c:M23\_207

c:M23\_208

c:M23\_210

c:M23\_211

c:M23\_212

c:M23\_213

c:M23\_218

c:M23\_222

c:M23\_224

c:M23\_225

c:M23\_226

c:M23\_233

c:M23\_259

c:M23\_320

c:M23\_321

c:M23\_325

c:M23\_328

c:M23\_331

c:M23\_367

c:M23\_368

c:M23\_369

c:M23\_370

c:M23\_379

c:M23\_380

c:M23\_386

c:M23\_387

c:M23\_388

c:M23\_392

c:M23\_393

c:M23\_398

c:M23\_400

c:M23\_403

c:M23\_406

c:M23\_407

c:MC-2012\_10.1

c:MC-2012\_10.2

c:MC-2012\_10.3

c:MC-2012\_10.4

c:MC-2012\_10.5

c:MC-2012\_11.1

c:MC-2012\_11.3

c:MC-2012\_11.4

c:MC-2012\_11.5

c:MC-2012\_11.8

c:MC-2012\_13.3

c:MC-2012\_13.4

c:MC-2012\_14.1

c:MC-2012\_15.1

c:MC-2012\_15.2

c:MC-2012\_15.3

c:MC-2012\_15.4

c:MC-2012\_15.5

c:MC-2012\_15.6

c:MC-2012\_15.7

c:MC-2012\_16.1

c:MC-2012\_16.2

c:MC-2012\_16.3

c:MC-2012\_16.4

c:MC-2012\_16.5

c:MC-2012\_16.6

c:MC-2012\_17.2

c:MC-2012\_17.7

c:MC-2012\_17.8

c:MC-2012\_18.7

c:MC-2012\_20.10

c:MC-2012\_20.11

c:MC-2012\_20.12

c:MC-2012\_20.13

c:MC-2012\_20.2

c:MC-2012\_20.3

c:MC-2012\_20.4

c:MC-2012\_20.5

c:MC-2012\_20.6

c:MC-2012\_20.9

c:MC-2012\_21.1

c:MC-2012\_21.10

c:MC-2012\_21.3

c:MC-2012\_21.4

c:MC-2012\_21.5

c:MC-2012\_21.7

c:MC-2012\_21.9

c:MC-2012\_3.1

c:MC-2012\_3.2

c:MC-2012\_4.1

c:MC-2012\_4.2

c:MC-2012\_5.1

c:MC-2012\_6.1

c:MC-2012\_6.2

c:MC-2012\_7.1

c:MC-2012\_7.2

c:MC-2012\_7.3

c:MC-2012\_8.12

c:MC-2012\_9.3

c:MC-2012\_D4.12

c:MC-2012\_D4.4

c:MC-2023\_10.1

c:MC-2023\_10.2

c:MC-2023\_10.3

c:MC-2023\_10.4

c:MC-2023\_10.5

c:MC-2023\_11.1

c:MC-2023\_11.3

c:MC-2023\_11.4

c:MC-2023\_11.5

c:MC-2023\_11.8

c:MC-2023\_13.3

c:MC-2023\_13.4

c:MC-2023\_14.1

c:MC-2023\_15.1

c:MC-2023\_15.2

c:MC-2023\_15.3

c:MC-2023\_15.4

c:MC-2023\_15.5

c:MC-2023\_15.6

c:MC-2023\_15.7

c:MC-2023\_16.1

c:MC-2023\_16.2

c:MC-2023\_16.3

c:MC-2023\_16.4

c:MC-2023\_16.5

c:MC-2023\_16.6

c:MC-2023\_17.11

c:MC-2023\_17.2

c:MC-2023\_17.7

c:MC-2023\_17.8

c:MC-2023\_18.7

c:MC-2023\_20.10

c:MC-2023\_20.11

c:MC-2023\_20.12

c:MC-2023\_20.13

c:MC-2023\_20.2

c:MC-2023\_20.3

c:MC-2023\_20.4

c:MC-2023\_20.5

c:MC-2023\_20.6

c:MC-2023\_20.9

c:MC-2023\_21.1

c:MC-2023\_21.10

c:MC-2023\_21.21

c:MC-2023\_21.24

c:MC-2023\_21.3

c:MC-2023\_21.4

c:MC-2023\_21.5

c:MC-2023\_21.7

c:MC-2023\_21.9

c:MC-2023\_3.1

c:MC-2023\_3.2

c:MC-2023\_4.1

c:MC-2023\_4.2

c:MC-2023\_5.1

c:MC-2023\_6.1

c:MC-2023\_6.2

c:MC-2023\_7.1

c:MC-2023\_7.2

c:MC-2023\_7.3

c:MC-2023\_8.12

c:MC-2023\_9.3

c:MC-2023\_D4.12

c:MC-2023\_D4.4

c:MC-AMD1\_10.1

c:MC-AMD1\_10.2

c:MC-AMD1\_10.3

c:MC-AMD1\_10.4

c:MC-AMD1\_10.5

c:MC-AMD1\_11.1

c:MC-AMD1\_11.3

c:MC-AMD1\_11.4

c:MC-AMD1\_11.5

c:MC-AMD1\_11.8

c:MC-AMD1\_13.3

c:MC-AMD1\_13.4

c:MC-AMD1\_14.1

c:MC-AMD1\_15.1

c:MC-AMD1\_15.2

c:MC-AMD1\_15.3

c:MC-AMD1\_15.4

c:MC-AMD1\_15.5

c:MC-AMD1\_15.6

c:MC-AMD1\_15.7

c:MC-AMD1\_16.1

c:MC-AMD1\_16.2

c:MC-AMD1\_16.3

c:MC-AMD1\_16.4

c:MC-AMD1\_16.5

c:MC-AMD1\_16.6

c:MC-AMD1\_17.2

c:MC-AMD1\_17.7

c:MC-AMD1\_17.8

c:MC-AMD1\_18.7

c:MC-AMD1\_20.10

c:MC-AMD1\_20.11

c:MC-AMD1\_20.12

c:MC-AMD1\_20.13

c:MC-AMD1\_20.2

c:MC-AMD1\_20.3

c:MC-AMD1\_20.4

c:MC-AMD1\_20.5

c:MC-AMD1\_20.6

c:MC-AMD1\_20.9

c:MC-AMD1\_21.1

c:MC-AMD1\_21.10

c:MC-AMD1\_21.3

c:MC-AMD1\_21.4

c:MC-AMD1\_21.5

c:MC-AMD1\_21.7

c:MC-AMD1\_21.9

c:MC-AMD1\_3.1

c:MC-AMD1\_3.2

c:MC-AMD1\_4.1

c:MC-AMD1\_4.2

c:MC-AMD1\_5.1

c:MC-AMD1\_6.1

c:MC-AMD1\_6.2

c:MC-AMD1\_7.1

c:MC-AMD1\_7.2

c:MC-AMD1\_7.3

c:MC-AMD1\_8.12

c:MC-AMD1\_9.3

c:MC-AMD1\_D4.12

c:MC-AMD1\_D4.4

c:MC-AMD2\_10.1

c:MC-AMD2\_10.2

c:MC-AMD2\_10.3

c:MC-AMD2\_10.4

c:MC-AMD2\_10.5

c:MC-AMD2\_11.1

c:MC-AMD2\_11.3

c:MC-AMD2\_11.4

c:MC-AMD2\_11.5

c:MC-AMD2\_11.8

c:MC-AMD2\_13.3

c:MC-AMD2\_13.4

c:MC-AMD2\_14.1

c:MC-AMD2\_15.1

c:MC-AMD2\_15.2

c:MC-AMD2\_15.3

c:MC-AMD2\_15.4

c:MC-AMD2\_15.5

c:MC-AMD2\_15.6

c:MC-AMD2\_15.7

c:MC-AMD2\_16.1

c:MC-AMD2\_16.2

c:MC-AMD2\_16.3

c:MC-AMD2\_16.4

c:MC-AMD2\_16.5

c:MC-AMD2\_16.6

c:MC-AMD2\_17.2

c:MC-AMD2\_17.7

c:MC-AMD2\_17.8

c:MC-AMD2\_18.7

c:MC-AMD2\_20.10

c:MC-AMD2\_20.11

c:MC-AMD2\_20.12

c:MC-AMD2\_20.13

c:MC-AMD2\_20.2

c:MC-AMD2\_20.3

c:MC-AMD2\_20.4

c:MC-AMD2\_20.5

c:MC-AMD2\_20.6

c:MC-AMD2\_20.9

c:MC-AMD2\_21.1

c:MC-AMD2\_21.10

c:MC-AMD2\_21.21

c:MC-AMD2\_21.3

c:MC-AMD2\_21.4

c:MC-AMD2\_21.5

c:MC-AMD2\_21.7

c:MC-AMD2\_21.9

c:MC-AMD2\_3.1

c:MC-AMD2\_3.2

c:MC-AMD2\_4.1

c:MC-AMD2\_4.2

c:MC-AMD2\_5.1

c:MC-AMD2\_6.1

c:MC-AMD2\_6.2

c:MC-AMD2\_7.1

c:MC-AMD2\_7.2

c:MC-AMD2\_7.3

c:MC-AMD2\_8.12

c:MC-AMD2\_9.3

c:MC-AMD2\_D4.12

c:MC-AMD2\_D4.4

c:MC-AMD3\_10.1

c:MC-AMD3\_10.2

c:MC-AMD3\_10.3

c:MC-AMD3\_10.4

c:MC-AMD3\_10.5

c:MC-AMD3\_11.1

c:MC-AMD3\_11.3

c:MC-AMD3\_11.4

c:MC-AMD3\_11.5

c:MC-AMD3\_11.8

c:MC-AMD3\_13.3

c:MC-AMD3\_13.4

c:MC-AMD3\_14.1

c:MC-AMD3\_15.1

c:MC-AMD3\_15.2

c:MC-AMD3\_15.3

c:MC-AMD3\_15.4

c:MC-AMD3\_15.5

c:MC-AMD3\_15.6

c:MC-AMD3\_15.7

c:MC-AMD3\_16.1

c:MC-AMD3\_16.2

c:MC-AMD3\_16.3

c:MC-AMD3\_16.4

c:MC-AMD3\_16.5

c:MC-AMD3\_16.6

c:MC-AMD3\_17.11

c:MC-AMD3\_17.2

c:MC-AMD3\_17.7

c:MC-AMD3\_17.8

c:MC-AMD3\_18.7

c:MC-AMD3\_20.10

c:MC-AMD3\_20.11

c:MC-AMD3\_20.12

c:MC-AMD3\_20.13

c:MC-AMD3\_20.2

c:MC-AMD3\_20.3

c:MC-AMD3\_20.4

c:MC-AMD3\_20.5

c:MC-AMD3\_20.6

c:MC-AMD3\_20.9

c:MC-AMD3\_21.1

c:MC-AMD3\_21.10

c:MC-AMD3\_21.21

c:MC-AMD3\_21.24

c:MC-AMD3\_21.3

c:MC-AMD3\_21.4

c:MC-AMD3\_21.5

c:MC-AMD3\_21.7

c:MC-AMD3\_21.9

c:MC-AMD3\_3.1

c:MC-AMD3\_3.2

c:MC-AMD3\_4.1

c:MC-AMD3\_4.2

c:MC-AMD3\_5.1

c:MC-AMD3\_6.1

c:MC-AMD3\_6.2

c:MC-AMD3\_7.1

c:MC-AMD3\_7.2

c:MC-AMD3\_7.3

c:MC-AMD3\_8.12

c:MC-AMD3\_9.3

c:MC-AMD3\_D4.12

c:MC-AMD3\_D4.4

### Unsupported C# rules

csharpsquid:S1133

csharpsquid:S1134

csharpsquid:S1135

csharpsquid:S1144

csharpsquid:S3776

### Unsupported C++ rules <a href="#unsupported-cpp-rules" id="unsupported-cpp-rules"></a>

cpp:S1135

cpp:S1134

cpp:S1144

cpp:M23\_001

cpp:M23\_002

cpp:M23\_003

cpp:M23\_005

cpp:M23\_006

cpp:M23\_007

cpp:M23\_011

cpp:M23\_013

cpp:M23\_019

cpp:M23\_023

cpp:M23\_025

cpp:M23\_026

cpp:M23\_029

cpp:M23\_034

cpp:M23\_035

cpp:M23\_036

cpp:M23\_037

cpp:M23\_038

cpp:M23\_039

cpp:M23\_041

cpp:M23\_042

cpp:M23\_043

cpp:M23\_044

cpp:M23\_045

cpp:M23\_046

cpp:M23\_047

cpp:M23\_048

cpp:M23\_049

cpp:M23\_050

cpp:M23\_051

cpp:M23\_053

cpp:M23\_054

cpp:M23\_055

cpp:M23\_057

cpp:M23\_058

cpp:M23\_061

cpp:M23\_064

cpp:M23\_065

cpp:M23\_066

cpp:M23\_080

cpp:M23\_081

cpp:M23\_082

cpp:M23\_083

cpp:M23\_087

cpp:M23\_089

cpp:M23\_090

cpp:M23\_091

cpp:M23\_092

cpp:M23\_093

cpp:M23\_094

cpp:M23\_096

cpp:M23\_097

cpp:M23\_099

cpp:M23\_100

cpp:M23\_101

cpp:M23\_103

cpp:M23\_105

cpp:M23\_106

cpp:M23\_107

cpp:M23\_110

cpp:M23\_112

cpp:M23\_113

cpp:M23\_125

cpp:M23\_126

cpp:M23\_131

cpp:M23\_133

cpp:M23\_134

cpp:M23\_135

cpp:M23\_139

cpp:M23\_142

cpp:M23\_143

cpp:M23\_145

cpp:M23\_146

cpp:M23\_147

cpp:M23\_148

cpp:M23\_149

cpp:M23\_150

cpp:M23\_151

cpp:M23\_152

cpp:M23\_154

cpp:M23\_158

cpp:M23\_159

cpp:M23\_160

cpp:M23\_162

cpp:M23\_163

cpp:M23\_165

cpp:M23\_170

cpp:M23\_171

cpp:M23\_172

cpp:M23\_173

cpp:M23\_179

cpp:M23\_184

cpp:M23\_187

cpp:M23\_191

cpp:M23\_193

cpp:M23\_194

cpp:M23\_196

cpp:M23\_201

cpp:M23\_202

cpp:M23\_203

cpp:M23\_204

cpp:M23\_207

cpp:M23\_208

cpp:M23\_210

cpp:M23\_211

cpp:M23\_212

cpp:M23\_213

cpp:M23\_218

cpp:M23\_220

cpp:M23\_222

cpp:M23\_223

cpp:M23\_224

cpp:M23\_225

cpp:M23\_226

cpp:M23\_228

cpp:M23\_229

cpp:M23\_233

cpp:M23\_235

cpp:M23\_239

cpp:M23\_246

cpp:M23\_247

cpp:M23\_259

cpp:M23\_260

cpp:M23\_278

cpp:M23\_279

cpp:M23\_280

cpp:M23\_286

cpp:M23\_287

cpp:M23\_320

cpp:M23\_321

cpp:M23\_324

cpp:M23\_325

cpp:M23\_327

cpp:M23\_328

cpp:M23\_329

cpp:M23\_330

cpp:M23\_331

cpp:M23\_338

cpp:M23\_341

cpp:M23\_342

cpp:M23\_343

cpp:M23\_351

cpp:M23\_355

cpp:M23\_356

cpp:M23\_357

cpp:M23\_358

cpp:M23\_359

cpp:M23\_360

cpp:M23\_363

cpp:M23\_364

cpp:M23\_365

cpp:M23\_367

cpp:M23\_368

cpp:M23\_369

cpp:M23\_370

cpp:M23\_372

cpp:M23\_373

cpp:M23\_376

cpp:M23\_377

cpp:M23\_378

cpp:M23\_379

cpp:M23\_380

cpp:M23\_381

cpp:M23\_386

cpp:M23\_387

cpp:M23\_388

cpp:M23\_389

cpp:M23\_390

cpp:M23\_392

cpp:M23\_393

cpp:M23\_394

cpp:M23\_398

cpp:M23\_400

cpp:M23\_403

cpp:M23\_404

cpp:M23\_406

cpp:M23\_407

cpp:M23\_408

cpp:M23\_409

### Unsupported Java rules

java:S120

java:S1133

java:S1134

java:S1135

java:S1144

java:S1228

java:S3776

### Unsupported JavaScript rules

javascript:S1134

javascript:S1135

javascript:S1144

javascript:S1874

javascript:S3776

### Unsupported PHP rules

php:S1134

php:S1135

php:S1144

### Unsupported Python rules

python:S1134

python:S1135

python:S1144

python:S3776

### Unsupported TypeScript rules

typescript:S1134

typescript:S1135

typescript:S1144

typescript:S1874

typescript:S3776

### Secrets rules

The agent can suggest fixes for eligible secrets issues.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/ai-features/administer-remediation-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
