Review GitHub code using Gemini Code Assist

  • Gemini Code Assist on GitHub uses a Gemini-powered agent to automatically summarize pull requests and provide in-depth code reviews.

  • You can interact with Gemini Code Assist in pull request comments by asking clarifying questions or using the/gemini tag to ask questions in the context of the pull request.

  • Gemini Code Assist on GitHub is available in a consumer version installed directly in GitHub and an enterprise version installed through Google Cloud, with differences in setup, terms of service, quotas, and configuration options.

  • Once set up, Gemini Code Assist provides an initial review when a new pull request is created, and you can also manually invoke it using commands like/gemini summary or/gemini review.

Gemini Code Assist on GitHub brings the power ofGemini to the pull request process by acting as a code reviewer.Gemini Code Assist on GitHub uses aGemini-powered agent that automatically summarizes pullrequests and provides in-depth code reviews, speeding up reviews andincreasing the quality of code.

Once you'veset up Gemini Code Assist on GitHub,you can invoke Gemini Code Assist at any stage of the pullrequest to review the code. You can interact withGemini Code Assist in the pull request comments directly by:

  • Asking clarifying questions on the review thatGemini Code Assist creates.
  • Prompting Gemini Code Assist by adding the/gemini tag toyour comments to ask questions in the context of the pull request.

Gemini Code Assist will automatically retrieve helpfulinformation from the repository and pull request to perform its tasks.

This document is intended for developers of all skill levels. It assumes thatyou have a working knowledge of GitHub.

Consumer version and enterprise version

Important: The enterprise version of Gemini Code Assist onGitHub is a separate and distinct product fromGemini Code Assist Enterprise.

Gemini Code Assist on GitHub is available in a consumerversion, which you install directly in GitHub, and an enterpriseversion, which you install through Google Cloud.

The following table summarizes the differences between the consumer version andenterprise version:

Consumer versionEnterprise version(Preview)
SetupDirectly in GitHubManaged through Google Cloud
Terms of serviceGoogle terms of serviceGoogle Cloud terms of service
Quotas33 pull requests per day100+ pull requests per day
Style guideSet per-repository within GitHubCan be set either per-repository within GitHub or across multiple repositories from Google Cloud
GitHub support

GitHub

GitHub

GitHub Enterprise Server

GitHub Enterprise Cloud

Use Gemini Code Assist on GitHub

This section provides steps for using Gemini Code Assist onGitHub once you've completed the setup. This section applies to bothconsumer and enterprise versions of Gemini Code Assist onGitHub.

Before you begin

To complete the tasks in this section, make sure you haveset up Gemini Code Assist on GitHub.

Get pull request summary and feedback

To get an initial review for a pull request fromGemini Code Assist, create a new pull request.

When you open the new pull request, Gemini Code Assist providesan initial review. After the review is ready,gemini-code-assist[bot] is automatically added as a reviewer to the pullrequest. Gemini Code Assist adds an issue comment in theConversation tab of the pull request with its feedback, and proceeds to addcomments about modified portions of the code.

Review comments contain the following information:

  • Severity of the issue, given as Critical, High, Medium, and Low
  • Feedback on the issue
  • Code suggestion that can be committed directly from GitHub
  • References to a user-provided style guide

Manually invoke Gemini Code Assist

Gemini Code Assist listens to comments from any pull requestcontributor, and decides whether it should respond.

To manually invoke Gemini Code Assist, you can use thefollowing commands in the main comments page on the pull request as an issuecomment.

CommandDescription
/gemini summaryPosts a summary of the changes in the pull request
/gemini reviewPosts a code review of the changes in the pull request
/geminiManually invokes Gemini Code Assist in comments
/gemini helpOverview of the available commands

Manage the Gemini Code Assist settings

Anyone with permissions to modify GitHub App settings for theorganization can manage the Gemini Code Assist app settings. You canreview the permissions provided to the Gemini Code Assist app, managerepository access, and uninstall the Gemini Code Assist app.

To modify the settings, follow these steps:

  1. On GitHub, click your profile photo and then clickSettings.
  2. In theIntegrations section, clickApplications.A list of GitHub Apps is displayed.
  3. Beside Gemini Code Assist, clickConfigure.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-11-10 UTC.