# AI Remediation

> **Note:** This capability is currently in Early Access (EA) and is not generally available. To request access, please contact OX technical support.

OX AI Remediation allows fixing security issues faster and more efficiently by providing tailored and AI-generated fix suggestions directly in your workflows.

Instead of receiving general guidance, you can now get precise recommendations and even ready-to-apply code changes based on the exact issue information, as follows:

* Providing a detailed explanation and fix per occurrence of the issue in case of aggregations.
* Generating suggested code changes automatically.
* Allowing developers to apply fixes directly from the Git platform and IDE.

### Supported Issue Types

Currently available for a subset of Code Security issues, specifically focused on JavaScript, Java, Python, C#, and with a severity level of Medium or higher.

## How It Works

1. **Issue Detection and Aggregation:** When OX detects a security issue in the code, it identifies all occurrences (aggregations). Each aggregation is analyzed separately to generate a contextual explanation and fix.
2. **AI-Generated Fixes:** For each issue, AI generates a fix suggestion tailored to the specific code segment. The suggestion includes a description, a recommendation, and a remediation proposal.
3. **Your Actions:** Depending on the interface.

### **AI suggestions in Git (GitHub, GitLab)**

AI suggestions are added as comments in the pull/merge request.

* **Commit Suggestion:** Applies the fix directly.
* **Add Suggestion to Batch:** Collects multiple fixes to apply in one commit.

<figure><img src="/files/hjSLQmv2nrixpszQQvSk" alt="" width="563"><figcaption></figcaption></figure>

### **AI suggestions in IDE Extension**

Issues appear with the full AI-generated description and fix.\
You can apply the fix for each aggregation from within the environment.

<figure><img src="/files/pqzXCi4RvAivEX7E55af" alt="" width="563"><figcaption></figcaption></figure>

### **AI suggestions in OX UI**

1. In the **Active Issues** page, go to **Filters** and select **Actions > AI Codefix Available**.
2. Select an issue for which you want to get suggestions and go to issue's **Commits**.

<figure><img src="/files/aR9cyG4lNjHaWguewvNz" alt=""><figcaption></figcaption></figure>

3. Select a fix for the specific commit. AI Remediation suggestion appears.

<figure><img src="/files/xj7S6Q5Pcj7kDUB4Vw9m" alt=""><figcaption></figcaption></figure>

## Disabling AI Remediation

The capability is enabled by default for customers who have requested access to this beta version. You can disable it at any moment.

**To disable AI Remediation:**

1. In the OX platform, go to **Settings > AI**.
2. In the **AI Settings** tab, disable the option that you want.

<figure><img src="/files/0pz5MbqMBA7aUJipY4aa" alt="" width="563"><figcaption></figcaption></figure>

> **Note:** Refer to [AI Privacy](/fix-with-ox/ai-remediation/ai-privacy.md) for information on AI Remediation capability privacy.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ox.security/fix-with-ox/ai-remediation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
