# Migrating from CodeRabbit to Deep Review

Deep Review is Aikido's pull request reviewer. It reads the change with context beyond the diff, posts comments on the pull request, and remembers accepted risk from your team's replies.

Use this guide to map a CodeRabbit setup onto Deep Review, import the learnings you still want, and retire CodeRabbit without a sudden change in what developers see.

## Choose your migration path

You don't need the same path for every repository. Start with the path that matches how heavily the team relies on CodeRabbit today.

| Path | Use this when | What to do |
| --- | --- | --- |
| Move to Deep Review directly | CodeRabbit mostly reviews pull requests and stores a modest set of learnings. | Enable Deep Review, import learnings, point branch protection at Aikido, then disable CodeRabbit. |
| Run both temporarily | You want to compare comments on a few pull requests before you change required checks. | Enable Deep Review and import learnings first. Leave CodeRabbit installed until the comments look right, then remove it from required checks. |

## Map CodeRabbit concepts to Deep Review

| CodeRabbit concept | Aikido equivalent | Notes |
| --- | --- | --- |
| Pull request review | [Deep Review](https://help.aikido.dev/docs/docs-es/deep-review/how-deep-review-works.md) | Aikido comments on the pull request and posts the **Aikido Security: Deep Review** check. |
| Review profile (`quiet`, `chill`, `assertive`) | [Strictness](https://help.aikido.dev/docs/docs-es/deep-review/configure-deep-review.md#choose-a-strictness-level) | `quiet` maps to **High Risk Only**, `chill` to **Normal**, and `assertive` to **Assertive**. |
| Learnings | [Deep Review memory](https://help.aikido.dev/docs/docs-es/deep-review/memory.md) | Import them with the API below. Memory stores accepted risk and known false positives for one repository. |
| `@coderabbitai` replies | [Reply in plain language](https://help.aikido.dev/docs/docs-es/deep-review/how-deep-review-works.md#reply-in-natural-language) | Reply on the pull request. You don't need to mention Aikido. A lasting explanation is stored in memory. |
| Ask for a fix in chat | [AutoFix](https://help.aikido.dev/docs/docs-es/autofix-and-remediation/overview-aikido-autofix.md) | Reply to the finding and ask for a fix. Aikido opens a pull request when AutoFix is enabled. |
| Path instructions and `.coderabbit/instructions/` | [`AGENTS.md`](https://help.aikido.dev/docs/docs-es/ai-and-dev-tools/guide-an-audit-with-repository-files.md) | Use this for trust boundaries, intentional behavior, and what should still be reported. The memory import skips instructions that only ask the reviewer to report, check, or enforce something. |
| Code guidelines (`AGENTS.md`, `CLAUDE.md`, `.cursor/`) | The same files | Deep Review already reads `AGENTS.md`, `CLAUDE.md`, `.claude/`, and `.cursor/`. No import is required. |
| Path filters | [`.aikido` exclude paths](https://help.aikido.dev/docs/docs-es/code-scanning/scanning-practices/ignore-via-code-with-aikido-files.md) | A pull request that only changes excluded files is skipped, and you are not charged. |
| Related repositories | [Linked repositories](https://help.aikido.dev/docs/docs-es/deep-review/link-repositories.md) | Link a repository when the review needs context that lives outside the pull request. |
| Linters and analyzer tools | [SAST](https://help.aikido.dev/docs/docs-es/code-scanning/scanning-practices/sast-by-aikido-supported-languages-and-security-focus.md), [Code Quality](https://help.aikido.dev/docs/docs-es/code-quality/code-quality-overview.md), secrets, and dependency scanning | Deep Review reads those findings on the pull request and takes them into account. |
| Custom pre-merge checks | [Custom SAST and IaC rules](https://help.aikido.dev/docs/docs-es/code-scanning/scanning-practices/add-custom-sast-iac-rules.md) and [custom code rules](https://help.aikido.dev/docs/docs-es/code-quality/add-custom-code-rules.md) | A finding from that rule fails the pull request through [PR gating](https://help.aikido.dev/docs/docs-es/pr-and-release-gating/aikido-ci-gating-functionality.md) when it meets your severity threshold. |

## Prerequisites

- The repositories are [connected to Aikido](https://help.aikido.dev/docs/docs-es/code-scanning/connect-your-source-code.md).
- You can open CodeRabbit **Review** → **Learnings** and export them.
- A workspace admin can create an API client. Importing memory requires the `repositories:write` scope. Listing repositories requires `repositories:read`.

## How the import works

Send each repository's learnings with [Add Deep Review memory](https://apidocs.aikido.dev/reference/addcoderepodeepreviewmemory).

Memory can only stop a finding from being reported. Send learnings that describe accepted behavior or a known false positive, and include the path or area when you have it. Instructions that ask Deep Review to look for, report, or enforce something are skipped. Put those in `AGENTS.md`, or create a custom rule when you want them enforced on every change.

Aikido rewrites the instructions in the background. This can take a few minutes. Deep Review must already be enabled for the repository.

## Migration checklist

### Step 1: Export learnings for one repository

In the CodeRabbit app, open **Review** → **Learnings**. Filter the table to the repository you are migrating, then click **Export CSV**.

CodeRabbit downloads `learnings.csv`. The **Learning** column is the text to import. When the **File** column is set, keep that path with the learning so the exception stays narrow.

Skip learnings you no longer agree with. Leave pending learnings on the **Pending approvals** tab out of the import until someone approves them.

### Step 2: Enable Deep Review

Go to [**Manage PR/MR Checks**](https://app.aikido.dev/repositories/prs?regionRedirect=1), select the repository, and turn on **Perform Deep Review of PRs**. Set strictness to the level that matches the CodeRabbit profile: **High Risk Only**, **Normal**, or **Assertive**.

See [Configure Deep Review](https://help.aikido.dev/docs/docs-es/deep-review/configure-deep-review.md).

### Step 3: Copy the Aikido repository ID

Open the repository in Aikido. The number in the URL is the ID you send to the API. For `https://app.aikido.dev/repositories/12345`, the ID is `12345`.

To look it up for several repositories, call [List code repositories](https://apidocs.aikido.dev/reference/listcoderepos) and use `id`. `external_repo_numeric_id` is the ID from GitHub, GitLab, Bitbucket, or Azure DevOps, and the memory API rejects it.

### Step 4: Create an API client

A workspace admin creates the client on the [REST API integration page](https://app.aikido.dev/settings/integrations/api/aikido/rest?regionRedirect=1). Include the `repositories:write` scope. Include `repositories:read` as well when you list repositories from the API.

See [API authorization](https://apidocs.aikido.dev/reference/authorization). Call the same host you use to log in: `https://app.aikido.dev`, `https://app.us.aikido.dev`, or `https://app.au.aikido.dev`.

### Step 5: Add the learnings to memory

Send that repository's learnings with [Add Deep Review memory](https://apidocs.aikido.dev/reference/addcoderepodeepreviewmemory). Separate learnings with newlines, and keep the file path in the text when the export has one.

Create a token first. See [API authorization](https://apidocs.aikido.dev/reference/authorization).

A successful call starts the update. Aikido rewrites the instructions in the background, which can take a few minutes. Repeat for each repository. Use that repository's learnings and its own Aikido ID.

### Step 6: Review what was stored

Wait a few minutes, then open the repository and go to **Insights** → **Review Memory**.

Instructions that ask Deep Review to report or enforce something are not stored. Copy those into `AGENTS.md` or a custom rule. See [Guide Agents with Repository Files](https://help.aikido.dev/docs/docs-es/ai-and-dev-tools/guide-an-audit-with-repository-files.md).

### Step 7: Move the rest of the CodeRabbit configuration

- Copy path instructions from `.coderabbit.yaml` (`reviews.path_instructions`) or from `.coderabbit/instructions/` into `AGENTS.md` when they describe how the system is meant to work.
- Copy path filters into a [`.aikido` file](https://help.aikido.dev/docs/docs-es/code-scanning/scanning-practices/ignore-via-code-with-aikido-files.md).
- Turn on the Aikido PR checks that replace CodeRabbit's linters: SAST, Code Quality, secrets, and dependency scanning.
- [Link repositories](https://help.aikido.dev/docs/docs-es/deep-review/link-repositories.md) when a review needs another repository for context.

### Step 8: Switch required checks

After a few pull requests look right, require **Aikido Security: Deep Review** in branch protection and remove the CodeRabbit check.

Disable CodeRabbit on the repository so it stops commenting. You can leave `.coderabbit.yaml` in git until nothing else reads it.

## Cutover checklist

Before you disable CodeRabbit on a repository, confirm that:

- Deep Review is on, and strictness matches the review profile you used.
- **Review Memory** shows the accepted risks you meant to keep.
- Instructions that ask for a check live in `AGENTS.md` or a custom rule.
- Path filters are in `.aikido` where you still want those files skipped.
- Required checks point at Aikido.
- Developers know they can reply on the pull request to ignore a finding, add context, or ask for a fix.

## Troubleshooting

| What you see | What to do |
| --- | --- |
| Deep Review is not enabled for this code repo. | Turn on **Perform Deep Review of PRs** for that repository, then call the API again. |
| Code repo not found. | Use the Aikido repository `id` from the URL or from [List code repositories](https://apidocs.aikido.dev/reference/listcoderepos). |
| Aikido AI couldn't add these instructions to the memory | Retry once. If it still fails, shorten the instructions and send them in smaller batches. |
| Review Memory does not include the learnings | Wait a few minutes. If they still do not appear, the text was already in memory, or it asked Deep Review to report or enforce something. Put rules you still want enforced in `AGENTS.md` or a custom rule. |

If a CodeRabbit rule still has no Aikido equivalent, see [Contact Support](https://help.aikido.dev/docs/docs-es/miscellaneous-info/contact-support.md).

## Related

- [Cómo funciona Deep Review](https://help.aikido.dev/docs/docs-es/deep-review/how-deep-review-works.md)

- [Configurar Deep Review](https://help.aikido.dev/docs/docs-es/deep-review/configure-deep-review.md)

- [Memoria de Deep Review](https://help.aikido.dev/docs/docs-es/deep-review/memory.md): Qué recuerda la memoria de Deep Review a partir de las respuestas en pull requests y dónde consultarla.

- [Guiar a los agentes con archivos del repositorio](https://help.aikido.dev/docs/docs-es/ai-and-dev-tools/guide-an-audit-with-repository-files.md): Confirma archivos markdown en el repositorio para que los agentes de Aikido puedan seguir tu arquitectura, tus límites de confianza y los riesgos aceptados.
