Maximize agy Usage: Offload Code Reviews to Web Gemini
Review diffs in Gemini on the web and keep your Antigravity (agy) session for building.
This note is completely AI-generated. Check it before you rely on it.
A review reads a lot of code. If you run it in Gemini on the web, your agy session doesn’t have to read that code, which leaves more of it for building. Google doesn’t clearly document how the two sets of limits relate, so compare your own usage before and after.
1. Install Google Drive for desktop
On Windows:
winget install --id Google.GoogleDrive
Sign in with the account you use for Gemini. On Windows, Drive usually appears as its own drive letter, such as G:.
2. Write your diff into Drive
Run this inside your repository, and change G: and origin/main to match your setup:
New-Item -ItemType Directory -Force "G:\My Drive\reviews" | Out-Null
git diff --output="G:\My Drive\reviews\review.txt" origin/main...HEAD
--output lets Git write the file itself, so PowerShell doesn’t change its encoding.
If the diff is large, split it by folder:
git diff --output="G:\My Drive\reviews\review-src.txt" origin/main...HEAD -- src
git diff --output="G:\My Drive\reviews\review-tests.txt" origin/main...HEAD -- tests
You can also ask your coding agent to do this step: tell it which commit to review, and to put the diff and the source files the reviewer needs in that folder.
3. Attach it in Gemini
Choose Add files, then Drive, and pick your files. Gemini accepts up to 10 files in a prompt. Adding from Drive needs Keep Activity turned on and Google Workspace connected to Gemini.
4. Ask for a focused review
Review this diff for correctness bugs only. For each finding give the file,
the line, how it fails and a fix. Skip style comments. End with PASS or FAIL.
5. Hand the findings back
Paste the answer into agy:
Here is a review from Gemini. Check each finding against the code, fix the
real ones, and tell me which ones you rejected and why.
Before you upload
Don’t upload secrets, .env files or code you aren’t allowed to share. With Keep Activity on, read Google’s privacy terms to see how your chats and files may be used.