Managing code reviews can be a daunting task, but with the power of AI, it doesn’t have to be. Today, we will explore how to use the codereview.gpt Chrome extension to harness ChatGPT’s capabilities to review Pull Requests (PRs) and Merge Requests (MRs) seamlessly.
Overview
This extension simplifies your code review process by allowing you to receive feedback from ChatGPT directly within your browser. Imagine ChatGPT as your diligent assistant, sifting through lines of code while you focus on other tasks. It even provides visual feedback like the example shown in the video below:
https://user-images.githubusercontent.com/4030927207372123-46d7ee8c-bd3e-4272-8ccb-4639f9f71458.mp4
Usage
To get started with codereview.gpt, follow these steps:
- Navigate to a GitHub Pull Request or GitLab Merge Request that you want a review for.
- Fill in your OpenAI API token in the Settings of the Chrome Extension.
- Click the extension icon.
- Receive code review comments in the popup window!
Note: Running reviews multiple times often yields different feedback. For larger PRs, it’s advantageous to request multiple reviews to capture diverse insights.
FAQ
Q: Are the reviews 100% trustworthy?
A: No, while this tool assists in spotting bugs, it may provide feedback that sounds plausible but is incorrect—this is often referred to as “hallucination.” If this occurs, simply re-run the review.
Q: What aspects of the Pull Request or Merge Request are considered during the review?
A: The model analyzes the code changes and commit messages in a patch format, in addition to the PR/MR description.
Q: Does the extension post comments on the Pull Request page?
A: Unfortunately, no. You will have to manually copy and paste the output if you’d like to include the feedback as PR comments.
Q: Is this a GPT wrapper?
A: Yes, but it—like any tool—serves an essential function. It’s designed to enhance your development workflow.
Q: Why would you want this?
- To streamline code review processes.
- To learn about coding best practices.
- To catch bugs you may have missed.
- To enjoy tasks while also appearing diligent!
Installation
Getting the extension is simple! You can install codereview.gpt either through the Chrome Web Store or by building the source locally.
From the Chrome Web Store (Recommended)
Go to the Chrome Web Store and add codereview.gpt.
From Source
- Clone the repository using the command:
git clone fooand navigate into it:cd foo. - Install the dependencies:
npm install. - Run the build script:
npm run build. - Open
chrome:extensionsin your browser. - Enable Developer Mode and click the “Load unpacked” button, navigating to the build directory in your project.
Troubleshooting
If you encounter issues, consider the following tips:
- Ensure your OpenAI API token is correctly entered in the settings.
- Check your internet connection, as the extension requires an active connection to fetch data.
- If the extension fails to load or review, try reloading the extension or your browser.
- Sometimes, simply re-running the review can yield better results due to varying feedback.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

