Blog/How to Review Code with Gemini 4 Neon (Antigravity CLI and API)

How to Review Code with Gemini 4 Neon (Antigravity CLI and API)

24 November 2026

Start a Gemini 4 Neon code review with the exact change you plan to merge. At MegaLens, we tested Gemini 4 Neon in the Antigravity CLI with a fresh copy of the proposed code for each review. You can use the CLI for a review from your terminal or use the paid API if you are building your own review workflow. The run times in this article come from the CLI.

Review a change from your terminal

  1. Open a clean copy of the repository at the commit you want reviewed. For a pull request, that is the commit at the head of the proposed branch. Find both that commit ID and the base commit ID so the review knows which changes belong to this pull request. A copy also makes it easy to compare the state of the files before and after the review.
  2. Sign in to the Antigravity CLI once before using print mode. Keep the instruction focused on finding bugs introduced by the change, with enough detail to locate each problem and see what happens when the code runs.
  3. Put the plain request below in review_request, substituting your actual BASE and HEAD commit IDs, then run the command from your copy of the repository. This selects the same CLI model and effort level we used in the benchmark. The shorter example prompt below does not reproduce our private benchmark instruction.
review_request="Review the changes from BASE to HEAD for bugs introduced by this pull request. Do not edit files. Give the file, line and effect of each finding."
agy -p "$review_request" --model gemini-4-neon-high --effort high

Check the result before treating the review as complete. A process that exits with an error can leave you with no report. Check the error output for denied tool actions too: the CLI can exit successfully even when it could not run a needed tool. Once you have a report, compare its findings with the proposed change and check that your working copy still matches the code you intended to review. Antigravity print mode and permissions

We used a fresh copy each time and checked the Git status and diff before and after the runs. The report records no detected changes to those copies. In the later batch, we ran 14 reviews one at a time. All completed, with a median wait of 5.85 minutes and a range of 2.4 to 11.3 minutes. In the earlier batch, one case received repeated HTTP 429 responses and returned no review. A 429 signals a usage or rate limit. If you build around the CLI, keep a failure visible as a separate outcome so it cannot be mistaken for a successful review with nothing to report.

Call the Gemini API directly

The Gemini API lists the model as gemini-4-neon. Google's pricing page lists it on the paid tier. The CLI name in the command belongs to the Antigravity setup we tested. Follow Google's API quickstart with the model gemini-4-neon. Put your review request and diff in the text input, then read the returned text alongside the same revision. Google's Gemini API quickstart · Gemini 4 Neon model page

Start with the diff, the lines your change adds and removes, and the nearby code needed to understand it. For example, if a change alters how a function handles an empty value, include the relevant caller so you can check what it expects back. Keep track of which revision you sent. That makes it possible to check the findings against the same code even after someone pushes another commit.

Save the usage counts along with the review. At Google's standard paid rates, a million fresh input tokens cost $3, a million cached input tokens cost $0.15, and a million output tokens cost $15, including thinking. A short report can still involve a lot of reasoning or repeated reads of code. We used the Antigravity usage logs to estimate API cost. Our timings and bug results came from Antigravity, so measure cost and completion time on your own API calls. Google's Gemini 4 Neon pricing

Check whether the review helped

Open the code for each finding and trace what would have to happen for the reported bug to occur. Can that input reach the changed code? Does another part of the program already handle it? If the problem still looks real, try to reproduce the behavior with a focused test and verify what the affected user or caller would see.

If you are deciding whether to use Gemini 4 Neon regularly, try it on a change with a bug you already know about. You will have something concrete to check even if the report is empty. On our selected set, one scored Gemini 4 Neon run caught 16 of 27 known bugs judged catchable from the information available at review time (95% Wilson range, 41% to 75%). The failed review counts as a miss. We selected public pull requests that merged after a CodeRabbit review and received a later bug fix. The original set was frozen before the saved comments were read; this Gemini 4 Neon test came later. We never ran CodeRabbit ourselves. We used its own saved reviews on public pull requests. CodeRabbit had flagged 4 of the 27 bugs (95% Wilson range, 5.9% to 32%). As we wrote in the original benchmark, “These are bugs merged despite a CodeRabbit review, not a count of everything CodeRabbit catches.” Original benchmark and MegaLens Standard results

OpenAI's GPT-6.2 Sol and GPT-6.2 Astra first judged the Gemini 4 Neon reviews. Anthropic's Claude Fable 5.2 has now checked the same 27 cases. All three agreed on which 16 bugs were caught. The separate sample of 60 findings still has only the two OpenAI judges. The MegaLens Standard and CodeRabbit numbers here come from a different judge pair, Anthropic's Claude Fable 5.2 and Google's Gemini 4 Carbon. The selected cases and different judge groups limit what we can say about a head to head result. Original benchmark method and scoring rules

FAQ

Do I need to give Gemini 4 Neon the whole repository?

We gave the CLI a fresh copy of the proposed code. If you put together an API request yourself, start with the changes and the code they depend on. When a finding depends on a caller or a condition outside the diff, open that code before deciding whether the finding holds.

Should I let the tool fix findings during the review?

Start with the report so you can check whether each finding applies. In our benchmark we measured bug catches and checked the copies for changes. A useful review gives you a specific issue to verify before you decide how to fix it.

What if Gemini 4 Neon finishes and reports nothing?

A completed review with no findings means the tool returned a report without flagging a problem. Keep your usual checks in place. The known bugs Gemini 4 Neon missed show why an empty report cannot decide whether a change is ready to merge.

What MegaLens does

Gemini 4 Neon caught three bugs both MegaLens Standard runs missed. MegaLens Deep had already caught all three. MegaLens Standard also caught bugs that Gemini 4 Neon missed. On the 11 bugs missed by Standard's first run and CodeRabbit's saved reviews, Deep alone and Deep with Gemini 4 Neon each caught 8 of 11 (95% Wilson range, 43% to 90%). That result describes this selected subset, using the different judge groups described above. We are adding Gemini 4 Neon to MegaLens. A second review can give you another concrete place in the code to check.

MegaLens reviews your code with AI models from different companies, so another model can help cover the first model's blind spots. The GitHub Action can review pull requests automatically. You can also start a review from Claude Code, Cursor or another supported tool. A paid Standard review costs about $1, depending on how you buy credits. Your first 3 Standard reviews are free, with no seat fee. MegaLens pricing and offer details

Gemini 4 Neon caught bugs our current MegaLens Standard reviewer missed. In a separate sample of 60 of its findings judged from the pull request diffs, 37 were called real by both judges (95% Wilson range, 49% to 73%), zero were called false by both judges (95% Wilson range, 0% to 6%), and 23 were mixed or uncertain (95% Wilson range, 27% to 51%). That combination is what we look for when adding a model.

One model is not enough to catch every bug in this test. MegaLens brings reviews from different models together to help cover their blind spots. Because of this performance, we're adding Gemini 4 Neon to MegaLens. Try MegaLens free: 3 reviews