# AI Code Assurance

AI Code Assurance features in SonarQube Server and SonarQube Cloud help you set appropriate standards for projects containing AI-generated code. A combination of tools—project labels, a default quality gate, and externally published project badges—helps ensure your AI projects meet security and code quality standards.

For more information, see [Set your AI standards](https://docs.sonarsource.com/sonarqube-cloud/standards/ai-code-assurance/overview) for SonarQube Cloud and the [AI Code Assurance overview](https://docs.sonarsource.com/sonarqube-server/quality-standards-administration/ai-code-assurance/overview) for SonarQube Server.


---

# 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.sonarsource.com/agent-centric-development-cycle/features/ai-code-assurance.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.
