AI code reviews in IDE
Get instant feedback on your code changes directly within VS Code or JetBrains IDEs.
Last updated
Get instant feedback on your code changes directly within VS Code or JetBrains IDEs.
Last updated
Bito Inc. (c) 2024
Unlock the power of AI-driven code reviews in VS Code and all JetBrains IDEs (including IntelliJ IDEA, PyCharm, WebStorm, and more) with Bito's AI Code Review Agent. This tool provides real-time, human-like feedback on your code changes, catching common issues before you submit a pull request.
You can start using the Agent immediately—no setup is required!
The AI Code Review Agent helps you improve your code as you develop, so you don't have to wait for days to get feedback. This accelerates development cycles, boosts team productivity, and ensures higher code quality.
The AI Code Review Agent in your IDE includes a default instance called @codereview
, which Bito has preconfigured for you to start using immediately. By default, this instance doesn’t include Git information and that’s why it has basic code understanding.
To unlock more comprehensive AI code reviews with deeper insights into your entire codebase, we recommend configuring the Agent with your Git information. This setup allows Bito to analyze your code changes more effectively by incorporating relevant code blocks from your entire remote repository as context.
You need a Bito 10X Developer paid plan to get started. For more information about costs, please visit our Pricing Page.
A workspace subscribed to the Bito 10X Developer Plan. Read documentation on how to upgrade.
The root of your project must be a Git repository and opened in the supported IDE.
Configure the default @codereview
Agent instance by providing Git information, including the Git provider name (e.g., GitHub, GitLab, Bitbucket) and a Git access token.
You can configure two types of AI Code Review Agent instances to perform in-depth code reviews with advanced code understanding:
My Agents (i.e. the default @codereview
Agent instance):
The @codereview
is a private Agent instance that is unique to each user within a Bito workspace. Each user can set up their own Git information, such as Git provider name, Git access token, and filter settings.
Team Agents:
Team Agent instances are shared across all users in your workspace. You can create a Team Agent instance in Bito Cloud. Refer to the documentation below for more details.
Both My Agents and Team Agents perform code reviews in the same way. The key difference is that My Agents are private to individual users, while Team Agents can be used by anyone in the workspace.
Note that My Agents, including the default @codereview
instance, are not listed on the Configured Agents > Code Review Agent page in Bito Cloud. You can only access these from the Configure my agents option in the Bito IDE extension. See below for more details.
See the following sections for further instructions on configuring both types of Agents in Bito Cloud.
@codereview
Agent instance?In the Bito panel within your IDE, click the menu icon (three horizontal lines) located in the top-right corner.
Click on Configure my agents. If a popup appears asking if you want to open this link, simply click Open.
You will be redirected to a form on the Bito Cloud website. From the dropdown menu, select your preferred Git provider, then enter your Git Access Token. For detailed instructions on configuring the Agent instance for different Git providers, such as GitHub, GitLab, and Bitbucket, refer to this documentation.
Below is a video guide on how to set up a Git Access Token. You will need to enter this token in Bito Cloud when configuring the Agent instance.
In the Bito panel within your IDE, click the menu icon (three horizontal lines) located in the top-right corner.
Click on Configure team agents. If a popup appears asking if you want to open this link, simply click Open.
You will be redirected to the Configured Agents > Code Review Agent page on the Bito Cloud website. From here, you can create a new Agent instance or edit the configuration of an existing one.
To configure the Agent instance, select your preferred Git provider from the dropdown menu, enter your Git Access Token, and assign a name to the instance. For detailed instructions on configuring the Agent instance for different Git providers, such as GitHub, GitLab, and Bitbucket, refer to this documentation.
Open the Bito IDE extension.
Login to your workspace subscribed to the Bito 10X Developer Plan.
Type @
in the chat box to open a menu listing all supported actions.
To start a new code review session, choose @codereview
under MY AGENTS. This default Agent instance is available in all 10X Developer Plan workspaces and requires no setup on your part.
If you have other AI Code Review Agent instances set up in Bito Cloud, you can select them using @<instance_name>
. These Agent instances will be displayed under the TEAM AGENTS section in the popup menu.
Execute agent actions with /
slash commands. The following commands are supported in the Bito chat box:
/review
: Performs a code review. See below for details.
/help
: Displays help content for the agent.
Note: If the default @codereview
Agent instance is not configured with Git information, you will receive a warning popup prompting you to either configure the instance or proceed without configuration. If you choose to continue without configuring the default Agent, it will only provide basic code review capabilities.
For the best quality code reviews, we recommend configuring the Agent with your Git information.
To initiate a code review, type /review
in the Bito chat box and submit. The AI Code Review Agent will analyze the code changes in your current workspace and provide feedback, including a list of issues and suggested fixes. By default, this command reviews the differences between your local changes that are currently in your working directory but not yet staged for commit, and the remote branch.
While the code review runs in the background, feel free to continue working on other tasks. Bito will notify you directly within your IDE once the review is complete. This process generally takes only a few minutes.
You can modify the /review
command with additional parameters:
/review #localchanges
: Reviews the differences between your local changes that are currently in your working directory but not yet staged for commit, and the remote branch. This is the default behavior of the /review
command if no additional parameter is specified.
/review #stagedchanges
: Reviews the differences between your staged changes (ready for commit) and the remote branch.
/review #lastcommit
: Reviews the latest commit in the branch.
/review #commit=<commithash>
: Reviews a specific commit by its hash.
/review #commit=<commithash-1>..<commithash-2>
: Reviews a range of commits between two commit hashes.
Currently, the AI Code Review Agent operates in a non-interactive, command-driven mode. In the future, we plan to introduce interactive/chat-based agents for a more dynamic and engaging code review experience.
You can also invoke the AI Code Review Agent directly from the context menu by right-clicking in the code editor and selecting commands under the "Bito Code Review Agent" menu. This provides faster, on-the-go access to code reviews right where you work.
Note: The context menu option only works with the default @codereview Agent instance. To perform code reviews using Team Agents, please use the Bito panel.
Once the AI code review is complete, you’ll receive a notification in the IDE. You can view the feedback in the Bito Panel, which includes a list of issues and their fixes. Each item will contain the following details:
File name: The file containing the issue.
Importance indicator: Indicates the importance of the issue.
Line numbers: Lines that contain the issue.
Issue description: Description of the identified issue.
Code suggestion: The AI-provided fix for the issue. Collapsed by default, click "Show" to view.
You can click on any specific identified issue to open its suggested code in the diff view.
To check the past code reviews, click the Code Review button in the IDE's status bar near the bottom of the screen. Alternatively, you can click the Session history icon located at the top-right corner of the Bito Panel. This opens the Session history tab within the Bito Panel, which contains a list of all session types (such as chat, code review, etc.). Here, you'll find a list of previous code reviews with their status.
The available code review statuses are:
In Progress: Indicates that the review is currently running.
Complete: Indicates that the review has finished successfully, with feedback already posted in the IDE.
Error: Indicates that the review encountered an issue and couldn't be completed.
To view the code review and AI suggestions, you can open any listed code review by clicking on it from the Session history tab.
Install on VS Code
Install on JetBrains
Get a demo