Migrating from CodeRabbit to Deep Review
Move CodeRabbit pull request reviews to Deep Review, including learnings.
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 | Aikido comments on the pull request and posts the Aikido Security: Deep Review check. |
Review profile (quiet, chill, assertive) | Strictness | quiet maps to High Risk Only, chill to Normal, and assertive to Assertive. |
| Learnings | Deep Review memory | Import them with the API below. Memory stores accepted risk and known false positives for one repository. |
@coderabbitai replies | Reply in plain 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 | 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 | 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 | A pull request that only changes excluded files is skipped, and you are not charged. |
| Related repositories | Linked repositories | Link a repository when the review needs context that lives outside the pull request. |
| Linters and analyzer tools | SAST, Code Quality, 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 and custom code rules | A finding from that rule fails the pull request through PR gating when it meets your severity threshold. |
#Prerequisites
- The repositories are connected to Aikido.
- You can open CodeRabbit Review → Learnings and export them.
- A workspace admin can create an API client. Importing memory requires the
repositories:writescope. Listing repositories requiresrepositories:read.
#How the import works
Send each repository's learnings with Add Deep Review memory.
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
#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.
#Enable Deep Review
Go to Manage PR/MR Checks, 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.
#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 is12345.To look it up for several repositories, call List code repositories and use
id.external_repo_numeric_idis the ID from GitHub, GitLab, Bitbucket, or Azure DevOps, and the memory API rejects it.#Create an API client
A workspace admin creates the client on the REST API integration page. Include the
repositories:writescope. Includerepositories:readas well when you list repositories from the API.See API authorization. Call the same host you use to log in:
https://app.aikido.dev,https://app.us.aikido.dev, orhttps://app.au.aikido.dev.#Add the learnings to memory
Send that repository's learnings with Add Deep Review memory. Separate learnings with newlines, and keep the file path in the text when the export has one.
Create a token first. See API 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.
#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.mdor a custom rule. See Guide Agents with Repository Files.#Move the rest of the CodeRabbit configuration
- Copy path instructions from
.coderabbit.yaml(reviews.path_instructions) or from.coderabbit/instructions/intoAGENTS.mdwhen they describe how the system is meant to work. - Copy path filters into a
.aikidofile. - Turn on the Aikido PR checks that replace CodeRabbit's linters: SAST, Code Quality, secrets, and dependency scanning.
- Link repositories when a review needs another repository for context.
- Copy path instructions from
#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.yamlin 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.mdor a custom rule. - Path filters are in
.aikidowhere 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. |
| 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.