Introduction to CodeRabbit

Last Updated : 25 Jul, 2025

CodeRabbit is an AI-powered code reviewer that delivers context-aware feedback on pull requests within minutes, reducing the time and effort needed for manual code reviews. It complements manual reviews by providing a fresh perspective and catching issues that manual reviews often miss, enhancing the overall review quality.

Developers can interact directly with the CodeRabbit bot within their existing Git platform's pull request interface to add context, ask questions, or even have the bot generate code. Over time, CodeRabbit learns from user input and improves its suggestions.

Core Features of CodeRabbit

CodeRabbit offers a range of features that make it ideal for students:

  • Instant Feedback: Reviews your code as soon as you save changes, pointing out errors and suggesting fixes.
  • Easy Integration: Works with GitHub, GitLab, and IDEs like VS Code, fitting into tools you already use.
  • Natural-Language Chat: Ask CodeRabbit questions like, “Why is this wrong?” or “How can I improve this?” and get clear answers in plain English.
  • Learns Your Style: Adapts to your coding preferences over time, making suggestions more relevant to your projects.
  • Code Summaries: Automatically summarizes your changes, making it easier for you (or your teammates) to understand what your code does.
  • Free for Open-Source: Use all features for free on public repositories, with affordable plans for private projects at https://www.coderabbit.ai/

These features make CodeRabbit like having a mentor who’s always available, helping you write cleaner code and learn faster.

Git platform integration

CodeRabbit integrates in just a few clicks with many popular Git platforms:

  • GitHub, GitHub Enterprise Cloud, GitHub Enterprise Server,
  • GitLab, GitLab Self-Managed
  • Azure DevOps
  • Bitbucket Cloud

Getting Started with CodeRabbit

Here’s how students can set up CodeRabbit in just a few minutes. You’ll need a GitHub account (free to create) and a project to test it with.

Steps to Sign Up on CodeRabbit Website

Lets see the steps to sign up on CodeRabbit website,

Step 1: Visit the official website and sign up with GitHub.

website
official website

Step 2: Authorize CodeRabbit on the GitHub authentication page.

Step 3: In the dashboard, find "Add Repositories" or "Connect Repository".

add-repo
Add Repositories

Select the repository we want from the list.

repo-access
Selecting repository

Step 4: Confirm, now every time we make a pull request(PR) in the selected repository, CodeRabbit will review it automatically.

Tip for Beginners: If you’re new to Git, think of it as a way to save and share your code versions. You can learn basic Git commands at GitHub’s guide. Alternatively, use CodeRabbit’s VS Code extension to review code locally without Git.

Using CodeRabbit in our IDE

Lets see the steps needed to use code rabbit in our ide.

Step 1: Open the editor and load the folder.

Step 2: In the extension tab, search for CodeRabbit and add the CodeRabbit Extension.

extension-search
extension tab

Install the CodeRabbit extension.

installation
CodeRabbit extension

Step 3: After successful installation, find and select the CodeRabbit logo on the dashboard.

coderabbit-identification
CodeRabbit logo

Click on "Use CodeRabbit for Free".

Screenshot-2025-07-18-132959
CodeRabbit

We will be redirected to GitHub authorization page, after successful authentication we will get a confirmation and then we will be redirected back to our IDE.

Screenshot-2025-07-18-133039
Confirmation page

Step 4: Attach the repository.

  • Locate the folder on our computer and open Git Bash.
  • Type "ls" to see for files present.
  • In the command line type

git init

  • Open the browser, go to the GitHub website and sign in with username and password.
  • Start a "New Repository"
Screenshot-2025-07-18-160032
New Repository

Give a name to repository, choose whether we want to have a public or private repository and also Add a README file.

Screenshot-2025-07-18-160042
name repository

Copy the Repository URL and connect the folder to GitHub repository. In the terminal type the command

git remote add origin "ADD THE URL"

Check for the connection.

git remote -v

Push the files to GitHub

git push -u origin main

Step 5: Select the CodeRabbit panel, we can see Review changes tab, and we can select the type of changes we want to review.

Screenshot-2025-07-18-133835
CodeRabbit panel

Step 6: After selection, review starts.

review-steps

Step 7: After the review is done and if no issues are found it will notify.

no-issue-notification
no issues

If there are issues then the issues are listed.

issues
issues

CodeRabbit provide inline suggestions to improve the program and remove the issue.

INLINE-
inline suggestions

Step 8: After changes are done, try running the program. If all the issues are correctly solved then it will run successfully.

Step 9: Locate Source Control icon and open that.

Screenshot-2025-07-18-154414
Source Control icon

Step 10: Commit the changes with a message.

Screenshot-2025-07-18-154609
changes with a message

Lets see an example,

Open the file which we want to check.

Python
def greet_user(input)
   if input == "hi":
        return "Hello! How can I assist you today?"
    else:
        return "Sorry, I didn't understand."


response = 10 / 0
print(f"Internal calculation result: {response}")

user_input = input("Enter your message: ")
if user_input == "yes"
   print("Great! Let's proceed.")
else:
    print("Please try again or say 'yes'.")

This code has few issues. After review errors are enlisted.

error
errors

Inline suggestions can be seen provided by CodeRabbit.

Screenshot-2025-07-18-131337
Inline suggestions

Code after solving the issue

Python
def greet_user(input):
    if input.lower() == "hi":
        return "Hello! How can I assist you today?"
    else:
        return "Sorry, I didn't understand."


response = "Ready to help!"
print(f"Internal status: {response}")

user_input = input("Enter your message: ")
if user_input.lower() in ["hi"]:
    print(greet_user(user_input))
else:
    print("Please try again or say 'yes', 'yeah', or 'y'.")

Output:

output
output
Comment

Explore