---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/pr-ca-review.md
  - https://sourcecraft.dev/portal/docs/ru/sourcecraft/operations/pr-ca-review.md
  - href: en/sourcecraft/operations/pr-ca-review.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
title: AI code review of a pull request in SourceCraft
description: How to use SourceCraft Code Assistant AI code review to analyze pull requests and get code improvement recommendations.
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt


<!-- source: en/sourcecraft/operations/ca-review.md -->
# AI code review of a pull request in SourceCraft

<!-- source: en/_includes/sourcecraft/disable-ai-features-note.md -->
{% note warning %}

SourceCraft uses the capabilities of AI models within Yandex. For this to work, some of your [organization's](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/index.md#org) data needs to be sent to Yandex.

In private organizations, you can [disable](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/disable-ai-features.md) data transfers to Yandex, but this will limit [Code Assistant](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/code-assistant.md)'s capabilities.

{% endnote %}
<!-- endsource: en/_includes/sourcecraft/disable-ai-features-note.md -->

<!-- source: en/_includes/sourcecraft/ai-review-description.md -->
SourceCraft is equipped with a built-in system for automated AI code review of [pull requests](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/index.md#pr). The AI assistant analyzes code changes, detects potential errors, architectural issues, and style inconsistencies, and provides code quality improvement recommendations.

With AI code review, you can save time on manual reviews, enhance code robustness and readability, and accelerate the change acceptance process.
<!-- endsource: en/_includes/sourcecraft/ai-review-description.md -->

To run a pull request:
1. Open the SourceCraft [home page](https://sourcecraft.dev).
1. On the ![image](../../_assets/console-icons/house.svg) **Home** tab, under ![image](../../_assets/console-icons/layout-tabs.svg) **Your craftspace**, navigate to ![image](../../_assets/console-icons/archive.svg) **Repositories**.
1. Select a repository.
1. Under ![image](../../_assets/console-icons/code.svg) **Code** on the repository page, go to ![image](../../_assets/console-icons/code-pull-request.svg) **Pull requests**.
1. Select a pull request.
1. Go to the ![image](../../_assets/console-icons/circle-exclamation.svg) **Overview** tab, hover over the ![image](../../_assets/console-icons/circle-exclamation.svg) **AI code review** row and click **Run**.

    Once the pull request is processed, the indicator next to the **AI code review** row will change to ![image](../../_assets/console-icons/circle-check.svg).

    ![image](../../_assets/console-icons/arrows-3-rotate-right.svg) **SourceCraft Review Bot** will add to the pull request its comments with code improvement recommendations and a general comment describing the changes that were made.

#### Useful links {#see-also}

* [Getting started with SourceCraft Code Assistant](https://sourcecraft.dev/portal/docs/en/code-assistant/index.md)
* [AI in SourceCraft](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/code-assistant.md)
* [Editing code in SourceCraft Code Assistant](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/code-edit.md)
* [Chat with Code Assistant in SourceCraft](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/ca-chat.md)
<!-- endsource: en/sourcecraft/operations/ca-review.md -->