YouMind
登录

Stop Babysitting AI Agents and Wire Google Antigravity With Gemini 4 Neon (Full Setup)

@gippp69
英语2026年11月27日
321K
139
13
32
181

TL;DR

This article details a comprehensive 7-step setup for using Gemini 4 Neon within Google Antigravity, emphasizing the importance of rigorous verification ('no receipt, no merge') to maximize performance and reliability in AI-assisted coding workflows.

Most people drop Gemini 4 Neon into a chat window, ask for a feature and merge whatever comes back. That is the weakest version of this model.

On SWE-sweep, Google's bug fixing test on large codebases, the same Neon scores 12.8% in a bare harness and 39.0% inside Google Antigravity (Google). Artificial Analysis puts its average cost at $6.86 per coding task there.

Below is the exact 7 step agent setup and 5 copy-paste prompts that make your agents prove every fix before you merge.

Plus the real numbers with a source next to each, 8 posts from Google and builders, 4 talks and 6 tools. One rule runs through all of it: no receipt, no merge.

1. The numbers that matter

text
1Gemini 4 Neon, public facts (as of Nov 26, 2026)
2launched Nov 18, 2026
3API price, input $3.00 per 1M tokens
4API price, cached input $0.15 per 1M tokens (95% off)
5API price, output $15.00 per 1M tokens, thinking included
6API context window 1,048,576 tokens
7max output 65,536 default, up to 1,048,576 with long decode
8context inside Antigravity up to 512K tokens
9thinking levels Low, Medium, High, Extra (xhigh in the CLI)
10
11AA Intelligence Index 61, #3 overall (xhigh)
12AA Coding Agent Index 58.6, #1 overall
13SWE-sweep 12.8% mini-SWE, 39.0% in Antigravity
14Terminal-Bench 4.1 65.2%
15Vals Index 70.9%, #2
16Agent Arena Index 1336, #2, 4,200+ real agent sessions

Sources: price, rollout and every benchmark come from Google's launch post (blog.google). The exact token limits and the note that thinking tokens bill as output come from the model page (AI Studio). The 512K limit and thinking levels come from Antigravity's model docs.

Read that 512K line twice. The API gives you 1M tokens, the Antigravity app gives you up to 512K. Planning to paste a whole monorepo into one chat? Plan for the smaller number.

https://x.com/GoogleDeepMind/status/2123167884411077030

Google DeepMind's launch post: Neon sits between Carbon and Hydrogen, built for software engineering, knowledge work and science.

2. Why the setup beats the model

Google built Neon for long agent runs. The launch post says it "cuts down on redundant file reads, shares progress as it works, and handles context compaction reliably in long sessions." Those skills only pay off when the harness asks for them.

Artificial Analysis saw the same thing from the outside. In the Antigravity CLI, Neon at xhigh scored 59 on their Coding Agent Index, 3 points ahead of Carbon at 55, in line with Claude Code running Claude Fable 5.2 (58) and Claude Opus 5.5 (58).

https://x.com/ArtificialAnlys/status/2123170648772288540

Artificial Analysis puts Neon in the Antigravity CLI at 59 on its Coding Agent Index, next to Claude Code setups at 58.

Then the money line from the same thread: Neon in Antigravity averages $6.86 per task, against $12.61 for Claude Opus 5.5 (max) and $15.47 for Claude Fable 5.2 (xhigh). On their Intelligence Index runs, Neon took about 21 minutes per task against about 36 for Carbon, at roughly 110 output tokens per second against 57.

Against Carbon, the two sources differ, so quote the right one:

  • Google: 32% lower cost per task at the default High level (Antigravity blog).
  • Artificial Analysis: about 17% lower on its own index, and Neon is Google's fourth model in seven weeks (AA on X).

Bottom line: Neon in a bare chat window is not the Neon in these numbers. The rest of this guide is the setup.

3. Check your plan first

text
1Who gets Neon inside Antigravity
2Free and Google AI Plus no Neon (Gemini 4 Hydrogen instead)
3Google AI Pro, paid yes, within the shared Gemini quota
4Google AI Pro, standard trial limited models, lower quota
5Google AI Ultra yes, highest quota, reset every 5 hours
6Gemini Enterprise yes
7
8leaving on Nov 30, 2026 Gemini 4 Argon, Gemini 3.8 Flash,
9 GPT-OSS-120b, Claude Sonnet 4.6, Claude Opus 4.6

Sources: Models and Plans.

Three traps:

  1. Trials are not paid plans. Standard Google AI Pro trials get a lower quota and fewer models. Neon missing on Pro? Check for a trial before you file a bug.
  2. Neon is the default for new chats on every plan that has it, but its default thinking level in the app is Medium. Pick High or Extra on purpose for hard work.
  3. Four models leave on November 30. If your rules or scripts name Argon or a Claude 4.6 model, update them this week.

4. Step 1: ground it before it writes

The classic agent failure is a confident call to an API that no longer exists. Antigravity's verification and guardrails guide says to ground the agent in "real workspace files, package manifests," or the Google Developer Knowledge MCP server, not model memory.

That server is official. It searches Google's public developer docs, including Antigravity, ADK, Firebase, Android, Google Cloud and ai.google.dev, through three tools: search documents, get documents and answer a query (Google for Developers). Antigravity connects to it with Application Default Credentials, so there is no key to paste into the app.

Connect it once, then open every real task with Prompt 1:

text
1Before you write any code, ground yourself.
2
31. Read package.json (or pyproject.toml) and list the exact
4 versions of every library this task touches.
52. For every Google API, SDK or CLI flag you plan to use, look
6 it up with the Developer Knowledge MCP server and quote the
7 doc name next to it.
83. If a doc search returns nothing for a feature, stop and tell
9 me. Do not guess an API from memory.
104. Output a short "Grounding receipt": library, version, the
11 doc you checked, and one line on what you will call.
12
13Then wait for me to say go.

Google says Neon recorded its "lowest fabrication rate yet in internal Google Antigravity testing." Lowest is not zero. The grounding receipt turns "probably right" into "here is the doc."

5. Step 2: a plan you sign

Set the Plan Review Policy to Always Ask and Antigravity pauses on every implementation plan before a single file changes. The plan command always waits for your approval (guardrails docs).

Plans are artifacts, alongside code diffs, architecture diagrams, images and browser recordings (Artifacts docs). You leave inline feedback on the plan "before it modifies any local files."

For daily work, pick Orchestrator. It is not a router. Neon plans in a read-only phase, Hydrogen does the edits, builds and tests, and control goes back to Neon when "a verification step fails twice" or the plan left a design choice open (Models docs). On Pro and Ultra you set the planner and executor under Settings, Models, Orchestrator Settings.

Prompt 2, added to every plan request:

text
1Write the plan, then stop.
2
3The plan must include:
4- Files you will touch, and files you promise not to touch.
5- The exact checks you will run at the end (type check, lint,
6 unit tests, browser check) and what "pass" looks like.
7- Conditions that should trigger a re-plan.
8- One risk I might not see.
9
10Keep it under 25 lines. I will comment inline before you start.

Watching a long run just got easier too.

https://x.com/antigravity/status/2125032843550028030

Antigravity shipped progress checklists: track every step live and expand the full breakdown when you want to double check the work.

6. Step 3: fence in your machine

A receipt means nothing if the agent can wander. Antigravity gives you four layers (guardrails guide):

  • Permission presets: Request Review, Default, Auto or Turbo. Default runs commands in the sandbox and asks outside it.
  • Terminal sandbox: OS level isolation (Linux namespaces, macOS sandbox-exec, Windows 11 24H2+). Outbound network is blocked by default, and files like .ssh and .env are off limits.
  • Deny rules: evaluated Deny, then Ask, then Allow, whatever preset you picked.
  • Hooks: scripts that run every single time, unlike a line in your prompt.

My standing Deny list:

text
1command(sudo)
2command(rm -rf)
3command(git push)
4command(regex:curl .*)
5write_file(.git/)
6write_file(.env)

Now the hook that makes Neon earn its "done." Antigravity reads hooks from a hooks.json file in your project's .agents folder (Hooks docs). A Stop hook can answer "continue," and the agent goes back to work with your reason injected as a message:

python
1.agents/hooks.json
2{
3 "lint-after-edits": {
4 "PostToolUse": [
5 {
6 "matcher": "write_to_file|replace_file_content|multi_replace_file_content",
7 "hooks": [{ "command": "npm run lint --silent", "timeout": 60 }]
8 }
9 ]
10 },
11 "no-done-while-red": {
12 "Stop": [
13 { "command": "./scripts/receipt-check.sh", "timeout": 300 }
14 ]
15 }
16}
17
18scripts/receipt-check.sh
19#!/usr/bin/env bash
20if npm test --silent > /dev/null 2>&1; then
21 echo '{"decision":"stop"}'
22else
23 echo '{"decision":"continue","reason":"Tests are red. Fix the root cause. Do not delete or loosen assertions."}'
24fi

This is the best setup step in the whole guide. Your agent cannot tell you it is finished while the suite is red.

Gipp 🦅 - inline image

7. Step 4: make the browser see it

Unit tests never open a page. The guardrails docs say it plainly: "passing unit tests do not prove the page renders cleanly." Blank canvases, broken layouts and 404 assets sail straight through.

Antigravity's built-in browser closes that gap. On personal accounts (v2.30.0+) it isolates localhost by port, masks sign-in and payment frames, and asks once before any upload.

https://x.com/antigravity/status/2120556423474028576

Antigravity on Browser use: research, write code and verify it live, you choose what to log into, and downloads pause until you approve them.

Prompt 3, after every UI change:

text
1Verification pass, no new features.
2
31. Run the unit tests and paste the summary line.
42. Start the dev server.
53. Use /browser to open the main flow on a desktop viewport
6 and a 390px mobile viewport.
74. For each viewport, report: console errors (count and text),
8 failed network requests, horizontal overflow yes or no.
95. Save a screenshot of each viewport as an artifact.
106. If anything fails, fix it and run this whole pass again.
11
12Finish with a table: check, result, evidence link.

That final table is the receipt. A row with no evidence did not happen.

8. Step 5: read the tests first

Google names this failure mode in its own docs: "Weakened or deleted assertions. The suite still passes after loosening checks." An agent under pressure can turn a test green by making the test weaker.

The fix is a habit. The Review pane (Cmd + Option + O on Mac) shows Uncommitted, Branch or Agent Edits diffs with inline comments. In the CLI, the diff command has All Changes, Per Turn and Commit Tree views, and pressing c on any line attaches feedback to your next prompt.

Open the test files before the code. Or hand the job to a second reader with Prompt 4:

text
1You are a read-only reviewer. Do not edit any file.
2
3Look only at the diff of this branch against main.
41. List every test file that changed.
52. For each one, flag any assertion that was removed, loosened,
6 skipped, or replaced with a weaker check. Quote the old and
7 new lines.
83. Flag any new mock that hides a real API call.
94. Flag any change outside the files listed in the approved plan.
10
11Verdict: SAFE TO MERGE or NEEDS WORK, plus the 3 lines I
12should read myself.

For high stakes changes, the docs suggest a swarm with the verifier pinned to a different model, so a second model checks that the old assertions survived.

9. Step 6: run a security pass

Most people skipped this part of the launch post. It is where Neon's numbers are loudest (Google):

text
1Gemini 4 Neon, security numbers from Google
2AutoBaxBench, hard tier 76%, state of the art
3SEC-bench Pro 90.5%, about half the cost per challenge
4WebExploitBench v1.2 51.26%, at half the cost of large models
5CWE-bench v2 70.7%, 3.4% uplift over Carbon
6
7behavior evals
8shortcuts on coding cheating eval 2.45%, lowest of any Gemini 4 model
9cheating on Terminal-Bench 4.0 0.0%
10agent honesty eval 99.2% pass rate
11misaligned action rate 0.09%

One caveat from the same post: the specialised Neon for cyber goes to trusted defenders through the Fairwind Program. The app gives you the everyday model. A read-only sweep before you ship still costs one prompt, Prompt 5:

text
1Security sweep, read-only. Do not change any file.
2
3Scope: the files changed on this branch, plus anything they import.
4Check for:
5- secrets or tokens in code, config or logs
6- user input reaching SQL, shell, HTML or file paths unescaped
7- auth checks missing on new routes or handlers
8- new dependencies: name, version, why it is needed
9
10For each finding: file and line, severity (high, medium, low),
11how it could be exploited in one sentence, and the smallest fix.
12If you find nothing, say what you checked so I can verify it.

Keep that last line. "Nothing found" without a list of what was checked is not a receipt.

10. Step 7: put receipts on autopilot

The Antigravity CLI has a headless mode for scripts and CI (docs). One prompt in, one JSON envelope out: status, response, run time, turn count and token usage. Diagnostics go to stderr, so stdout stays clean.

Authenticate once in an interactive session first. In CI with no terminal, an unauthenticated run exits with an error instead of hanging.

text
1#!/usr/bin/env bash
2set -euo pipefail
3
4result=$(agy -p "Run the unit tests and the lint. Do not edit files.
5Return: tests passed, tests failed, lint errors, and the names
6of any failing tests." \
7 --model "Orchestrator (Neon)" \
8 --sandbox \
9 --output-format json \
10 --print-timeout 20m)
11
12status=$(echo "$result" | jq -r '.status')
13echo "$result" | jq -r '.response' > receipt.txt
14echo "$result" | jq '.usage' > receipt-usage.json
15
16if [[ "$status" != "SUCCESS" ]]; then
17 echo "Agent run failed: $(echo "$result" | jq -r '.error')" >&2
18 exit 1
19fi

Every flag here is in the docs. Add the json-schema flag if you want the receipt as structured fields instead of text.

Coming from Gemini CLI? The move is mostly automatic. GEMINI.md and AGENTS.md rules work unchanged, one command turns old extensions into plugins, and project skills move from .gemini into .agents (migration docs).

To see the receipts on one screen, Antigravity just added MCP Apps.

https://x.com/antigravity/status/2125315892695216483

MCP Apps in Antigravity: interactive charts, sandboxes, release boards and custom file viewers right inside your workspace.

Gipp 🦅 - inline image

11. The quota math

Receipts cost tokens. Here is what is public about that cost.

On the API, cached input is $0.15 per 1M tokens against $3.00 uncached, a 95% discount. Inside Antigravity, caching is where the team keeps finding quota, and Google DeepMind's Varun Mohan, one of the people building Antigravity, posts the numbers almost daily:

https://x.com/_mohansolo/status/2125337132021780867

Varun Mohan on Nov 24: the new harness release makes Neon use 12% less quota per task and finish tasks 17% faster.

https://x.com/_mohansolo/status/2125641696377712968

Varun Mohan on Nov 25: another 4.5% cache hit gain means 28% more tasks within quota, and close to 75% more Neon usage on the subscription in five days.

How to spend it:

  • Orchestrator for daily work. Google says it finishes faster and uses fewer tokens than running the planner alone.
  • Neon on High or Extra only when every step needs depth. The docs name the cases: distributed systems from scratch, concurrency races, multi repo migrations.
  • Hydrogen for chores. Package upgrades, boilerplate, docs, quick scripts.
  • Overages stay off until you know your burn. On Pro and Ultra, set AI Credit Overages to Never (Plans).

Bonus from the changelog: since v2.35.0 on November 23, the app keeps your local conversation history unlimited instead of pruning after 500. Old receipts stay findable.

12. What builders are actually seeing

The best reaction this week was not a benchmark. It was a builder pointing Neon at a repo he did not write.

https://x.com/ai_for_success/status/2124192968345338206

Antigravity plus Neon went through the NVIDIA MotionBricks repo, found its ONNX models can run locally without an NVIDIA GPU, CUDA or TensorRT, set it up and built an interactive 3D character demo.

That is Step 1 in the wild: read the repo, then decide.

More real signals, good and bad:

  • Builder Sree (@srikanthvaluri) ran the same scene through Antigravity, AI Studio and the Gemini web app and called the Antigravity run "on another level" (post). Same model, different setup.
  • Rollout day was bumpy. One user hit an agent execution error on the first request that worked on retry (post). Treat a first run error as a retry, not a verdict.
  • A Google AI Pro user had Neon in the Gemini web app but not in his Antigravity picker (post). Check the trial trap in section 3 first.

My read: Neon is strong, and it is still a model. It will be wrong sometimes. The receipts mean you find out in minutes, not in production.

13. Watch and read next

Four talks, none of them a "top 10 prompts" video:

  1. Google DeepMind's Vision for Agent-First Development (Kleiner Perkins, 42 min). Varun Mohan and Kevin Hou on building Antigravity. The line that stuck, from Kevin Hou: "If you cannot get your agent to debug itself, to create features without you holding its hand, if you're typing, you will get left behind." https://www.youtube.com/watch?v=xsVD9_cJNYs
  2. AI and Coding: Interview with Varun Mohan (MIT Schwarzman College of Computing, 45 min). MIT's Armando Solar-Lezama interviews him, billed as "Lessons from the Trenches on Building Usable Coding Agents." https://www.youtube.com/watch?v=NvHz_esnSJc
  3. Google Antigravity, the Google IO 2026 keynote demo (Google, 8 min). The live demo of Antigravity 2.0: agent conversations, artifacts and multi agent orchestration, the base this whole guide sits on. https://www.youtube.com/watch?v=T_fnhr5lVBw
  4. Learn 95% of Google Antigravity in 17 Minutes (with Gemini 4 Neon) (Peter Yang, 17 min, sponsored by Google). He builds an open source explainer video skill end to end and ships it on GitHub. https://www.youtube.com/watch?v=7I8B7CQky0Y

Six tools and docs to bookmark:

  1. Google Developer Knowledge MCP server. The grounding source from Step 1. https://developers.google.com/knowledge/mcp
  2. Antigravity SDK. A Python SDK with policies, human in the loop approval, hooks and subagents, installed with pip as google-antigravity. https://antigravity.google/docs/sdk/overview/
  3. Agent Development Kit for Python. Google's open source kit for building, evaluating and deploying agents. https://github.com/google/adk-python
  4. Google's MCP hub. Google's official MCP servers in one repo. https://github.com/google/mcp
  5. Agent Starter Pack. Production templates for agents with CI and CD, evaluation and observability built in. https://github.com/GoogleCloudPlatform/agent-starter-pack
  6. Peter Yang's video explainer skill. The skill from talk 4, a real example of what one Antigravity session ships. https://github.com/petergyang/video-explainer

14. Set it up tonight

text
1The 7 step agent setup, in order
21. Check your plan and model picker (section 3)
32. Connect the Developer Knowledge MCP server, run Prompt 1
43. Set Plan Review Policy to Always Ask, use Prompt 2
54. Add the Deny list and .agents/hooks.json
65. Run Prompt 3 after every UI change
76. Run Prompt 4 on every branch before merge
87. Run Prompt 5, then put the headless script in CI

After that, every change your agent makes arrives with a plan you signed, a fence it could not cross, a browser that saw it, tests nobody weakened, a security pass and a JSON receipt.

The model got cheaper and smarter this month. The setup is what makes it trustworthy.

Bookmark this for the next time an agent tells you "done."

Sources

Official, as of November 26, 2026:

Posts on X:

If you want more breakdowns like this, I post one every couple of days on X and Telegram. Both free.

X: https://x.com/gippp69 Telegram: https://t.me/GipArcAI Substack: https://substack.com/@gippp

一键保存

使用 YouMind AI 深度阅读爆款文章

保存原文、追问细节、总结观点,并在一个 AI 工作空间里把爆款文章沉淀成可复用笔记。

了解 YouMind
写给创作者

把你的 Markdown 变成干净的 𝕏 文章

图片上传、表格、代码块,往 𝕏 上手动重排太痛苦。YouMind 把整篇 Markdown 一键转成干净、可直接发布的 𝕏 文章草稿。

试试 Markdown 转 𝕏

更多可拆解样本

近期爆款文章

探索更多爆款文章