Skip to content

Conversation

@raky291
Copy link
Contributor

@raky291 raky291 commented Jan 7, 2026

Summary

This PR adds support for the Antigravity terminal in the /terminal-setup command

Details

The changes include:

  1. Detection: "Antigravity" is now detected by searching for the string "antigravity" in the environment variables (VSCODE_GIT_ASKPASS_MAIN) or in the parent process name (on non-Windows systems).

  2. Configuration: Antigravity is a fork of VS Code and uses a similar configuration structure (Antigravity folder in the user configuration directories).

  3. Keybindings: keybindings.json is now automatically configured to send the correct sequence (\r\n) when pressing Shift+Enter and Ctrl+Enter, just like in VS Code, Cursor, and Windsurf.

Related Issues

#15467

How to Validate

  1. Open the Antigravity IDE
  2. Install the Gemini CLI Companion extension
  3. Open Gemini in the Antigravity terminal
  4. Run the command /terminal-setup
  5. You should see the message "Added Shift+Enter and Ctrl+Enter keybindings to Antigravity."

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • Windows
      • npm run
      • npx
      • Docker

@raky291 raky291 requested a review from a team as a code owner January 7, 2026 04:19
@google-cla
Copy link

google-cla bot commented Jan 7, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @raky291, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request extends the terminal setup utility to include support for the Antigravity IDE. By integrating Antigravity, the utility can now detect this specific VS Code fork and automatically configure its keybindings, ensuring a consistent and functional experience for users interacting with the Gemini CLI Companion extension within the Antigravity terminal.

Highlights

  • Antigravity Terminal Support: The terminal setup utility now officially supports the Antigravity IDE, a fork of VS Code, allowing for automated configuration.
  • Enhanced Terminal Detection: Antigravity is detected by checking for the string "antigravity" within the VSCODE_GIT_ASKPASS_MAIN environment variable or the parent process name (on non-Windows systems).
  • Automated Keybinding Configuration: The utility automatically configures keybindings.json in Antigravity to send "\r\n" for Shift+Enter and Ctrl+Enter, ensuring consistent behavior with other supported IDEs like VS Code, Cursor, and Windsurf.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for the Antigravity terminal, a fork of VS Code, to the terminal setup utility. The changes correctly follow the pattern established for other VS Code forks like Cursor and Windsurf, including detection via environment variables and parent process names, and configuration of keybindings. My review focuses on improving maintainability by refactoring duplicated detection logic. I've suggested consolidating the checks for different terminals into loops to make the code cleaner and easier to extend in the future. None of the provided rules were applicable to these comments, so they remain unchanged.

@jacob314 jacob314 added the status/need-issue Pull requests that need to have an associated issue. label Jan 7, 2026
Copy link
Collaborator

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@raky291
Copy link
Contributor Author

raky291 commented Jan 7, 2026

Hi @jacob314, I updated the branch but I don't see the option to merge it into main, would you help me?

@jacob314 jacob314 enabled auto-merge January 8, 2026 00:15
@jacob314
Copy link
Collaborator

jacob314 commented Jan 8, 2026

Done. Merge should happen as soon as the bots go green.

@gemini-cli gemini-cli bot added priority/p1 Important and should be addressed in the near term. and removed status/need-issue Pull requests that need to have an associated issue. labels Jan 8, 2026
@jacob314 jacob314 added this pull request to the merge queue Jan 8, 2026
Merged via the queue into google-gemini:main with commit 01d2d43 Jan 8, 2026
26 checks passed
@raky291 raky291 deleted the feature/add-antigravity-terminal branch January 8, 2026 21:19
sumansaurabh pushed a commit to sumansaurabh/gemini-cli that referenced this pull request Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority/p1 Important and should be addressed in the near term.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants