Review GitHub code using Gemini Code Assist

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

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

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

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

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

Consumer version and enterprise version

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

The following table summarizes the differences between the consumer version and enterprise version:

Consumer version Enterprise version (Preview)
Directly in GitHub Managed through Google Cloud
Terms of service
Google terms of service Google Cloud terms of service
33 pull requests per day 100+ pull requests per day

Per-repository within GitHub

All repositories associated with an account using the settings page

Per-repository within GitHub

Across multiple repositories using Google Cloud

Per-repository within GitHub

Per-repository within GitHub

Across multiple repositories using Google Cloud

GitHub support

GitHub

GitHub

GitHub Enterprise Server

GitHub Enterprise Cloud

Considerations

  • Gemini Code Assist on GitHub does not generate summaries or code suggestions for any files located within the .github/workflows directory. This exclusion helps prevent the introduction of potentially insecure configurations to the repository.

  • The enterprise version uses a Developer Connect connection to connect your GitHub repositories to Google Cloud.

    • This Developer Connect connection is always created in the region us-east1 .

    • This Developer Connect connection must be created using the Code Assist Source Code Managementsection found in Gemini Code Assist Agents & Tools. For instructions, see Set up Gemini Code Assist on GitHub .

What's next

Design a Mobile Site
View Site in Mobile | Classic
Share by: