跪拜 Guibai
← Back to the summary

Gemini 4 Neon Codes Three.js Scenes Near Flagship Quality; Antigravity Gets Token-Saving Playbook and 50% Off

Hello everyone, I'm Brother Er.

These past two days, I've become inseparable from Antigravity and Gemini 4 Neon. Tutorials, code, videos — all handed over to it, and the delivered results are even better than I expected.

image

Instruction following can now sit at the same table as Opus 5.5. It's like when you could only score 60 before, and suddenly you score 90 — teachers and classmates keep praising you (of course, Opus 5.5 is still the one scoring 99).

Additionally, I must tell you good news. Google has now introduced Black Friday discounts up to 50% off, plus the Antigravity reset feature. To be specific, from today until November 26th, Google's Plus and Pro plans get up to 50% off, with extra discounts for new users. Moreover, Antigravity will greatly increase the cache pool size, and Gemini 4 Neon's cache hit rate improves by 4%.

image

A reset card will also be introduced later. I've always been averse to reset — it's pure marketing, and for me subscribed at $500, it's just harm. What I want isn't reset; I want generous quantities. The key is that reset doesn't occur on a fixed cycle. If I burn through it hard this time and then there's no reset, I'd be dumbfounded. I genuinely hope Gemini can rise up!

01. Neon Hands-on Cases

From yesterday's shared content, everyone's enthusiasm for Gemini is high, so today I'll continue digging up some fun cases for Gemini 4 Neon.

image

My only thought is that I hope everyone truly uses it — at least keep one account in hand. When TRAE first launched, I was already using Gemini, and I noticed then that Gemini was better at reading code than Yi or Er. (You know what Yi and Er refer to.) Later, I even felt that Gemini 3.8 Flash's text capability was the best outside of Opus 5.5.

3D Cycling Animation

A well-known community blogger, @AI_Screening, placed Gemini 4 Neon, Claude Opus 5.5, and the flagship Gemini 4 Carbon in the same frame, comparing them with the same Three.js road bike cycling animation.

image

In graphics, drawing a "person riding a road bike" purely from code is an error-prone kinematics constraint problem. Comparing the three frames, the differences are obvious at a glance. Gemini 4 Neon accurately reproduces the rider's leaning posture, helmet and goggles, jersey colors, disc brakes and bottle cage on the orange frame, feet firmly on the pedals, and distant sunset, mountains, and wind turbines have clear depth — the overall shape and spatiality are already close to the higher-priced Carbon.

Particle Art Short Film

Developer @thtbee_ used Gemini 4 Neon in Antigravity to create a Three.js piece titled Artistic Butterflies.

image

This kind of continuous particle animation is difficult because long iterations require maintaining consistency over time. The model must use force field equations to control the generation, speed, and decay rhythm of tens of thousands of particles, and also maintain consistent transitions and lighting between chapters across 57 minutes of multi-round edits.

Solar Punk Pixel City

If you care more about balancing visual detail and cost, check out @notjazii's solar punk riverside pixel city.

image

He sent the same prompt to Gemini 4 Neon and Claude Opus 5.5, both set to their highest reasoning mode. Neon ran for 20 minutes, costing about $3.5; Opus 5.5 ran for 18 minutes, costing about $7.2. Opus 5.5 is indeed better in distant depth, cloud volume, and cherry blossom branch extension. But Neon also made the glass dome, greenery-covered towers, airships, and windmills, and added stone railings with a small orange cat crouching on them, warm sunset ripples and reflections on the water.

Royal Frigate Simulator

The fourth piece comes from @abhinavflac. The author provided no reference examples, only one prompt, and Neon wrote an interactive 3D sailing ship.

image

Neon delivered a complete WebGL simulator featuring the royal frigate HMS Meridian from 1784 with 36 cannons.

3D V12 Engine

The last piece is a real-time interactive V12 engine, AURIGA 65, built with Three.js.

image

The visual quality is already close to industrial CAD rendering. The author set Gemini 4 Neon as the Orchestrator to handle architecture and quality control, with a group of Gemini 4 Hydrogen as Swarm members performing parallel modeling and self-checking. The whole process ran 2.5 hours.

02. Token-Saving Secrets in Antigravity

First, Orchestrator Model Pairing

Many people, when using an Agent, habitually use one main model end-to-end, handing everything from file path searches, variable name changes, and unit test runs to a high-end model. Antigravity's Orchestrator already supports configuring two models separately.

image

In the app, go to Settings > Models > Orchestrator Settings to configure the Planner and Executor separately. The Planner defaults to Gemini 4 Neon, but you can also pick Carbon, Argon, or Claude Opus 5.5; the Executor defaults to Gemini 4 Hydrogen at half the price, and can be swapped to Claude Sonnet 5.5. In the terminal, you can also configure using the agy CLI; type /model, select the Orchestrator row, use left/right keys to choose, and Tab to switch the planning model.

image

Or pass parameters at startup:

agy --model "Orchestrator (Neon)"

Architecturally, the Orchestrator hands off between two models in four steps within the same round:

  1. For each incoming prompt, the Planner first reads the codebase in read-only mode, writes an implementation plan, and specifies which exceptions require re-planning. If it's just a Q&A, answer directly; for small changes, write a short plan and hand off immediately.
  2. Once the plan is ready, the Executor (Hydrogen) takes over the workspace, handling code search, batch file modifications, compilation, and test execution, verifying each step per the plan.
  3. If Hydrogen encounters something it can't handle — e.g., the same validation fails twice consecutively, interface behavior doesn't match expectations, or an unplanned design issue arises — control automatically returns to the Planner. The Planner checks the current session state, patches the implementation plan, and passes it back to Hydrogen to continue.
  4. During long tasks, or when you send new instructions while Hydrogen is executing, the Executor reports current progress to the Planner, who compares against the plan to decide whether to wrap up, continue, or adjust.

For daily feature development, bug fixes, and multi-file refactors, prefer Orchestrator (Neon) and let it hand off automatically within a single round. For tasks that can be split into independent subprojects, use /swarm to launch multiple Agents for parallel development via a bulletin board, then verify with @verifier; only for complex distributed architectures where every step needs maximum reasoning depth do you switch to Gemini 4 Neon or Carbon alone.

Thinking Effort Levels

In the agy CLI, type /effort anytime to bring up a slider to switch the default level, or pass parameters directly for immediate effect:

/effort low
/effort medium
/effort high

If you only want to temporarily lower the level for a simple query without changing the global default, pass --effort when launching the CLI:

agy -p "Summarize the core changes and impact of the last three commits" --effort low

This is how I allocate the four levels: Low for log summaries, document retrieval, and single-file small scripts; Medium for daily business coding and UI prototypes; High for cross-module refactoring and online troubleshooting; Extra only for debugging tricky concurrency bugs or high-precision 3D engineering.

Use /context to Check Usage

Long conversations deplete quota faster, often because tool output logs and resident MCP tool definitions fill up the context window.

image

Typing /context in the agy CLI draws a proportional grid diagram and category breakdown, using three symbols to show where tokens go:

If you have a dozen MCP servers configured globally, their tool schemas appear as a fixed prefix in every request even if the current project uses none, wasting tokens. If you notice MCP tools is high, type /mcp to disable unused services. As for active dialogue, after exploring the codebase or finishing a milestone, don't wait for auto-compression near a full context. Type /compact actively in the CLI; the system compresses lengthy intermediate logs into a checkpoint with two parts, without invoking tools or modifying disk files.

The first part of the checkpoint is a structured continuation summary preserving task goals, changed file paths, test results, and "approaches tried and abandoned." The second part is a session snapshot that fully preserves recent attachments, running background tasks, and still-alive Subagents and Artifacts. Typing /compact alone stops after compression; with a directive, it preserves the key points as requested and continues working:

/compact Preserve the concurrency lock investigation conclusion and the three file paths; next, add concurrency unit tests for the stock deduction interface and run them.

After compression, the CLI prints a before/after comparison, e.g., 142 steps summarized · context 182.4k → ~31.2k, showing exactly how much you saved.

Some more tips: For a quick config or function definition lookup, type /btw <question> for a read-only bypass that doesn't enter the main dialogue history; when you've gone off track or hit a compile error, type /rewind (Revert in the app) to roll back to before the error rather than stacking messages; when unsure of an implementation approach, type /fork to copy a branch to experiment, then switch back to the main line if it fails; when switching to an unrelated new requirement, type /clear (or open a new session) to clear the previous task's context.

Token Budget for Rules and Skills

Finally, the most overlooked token consumption in custom configurations. The project root's AGENTS.md and GEMINI.md have no frontmatter, so they are always_on rules injected in full every time. According to Antigravity's official Rules documentation, the framework sets two budget caps for rules. First, a single rule file after expanding references can be at most 24 KB; beyond that, it's truncated. Second, all active global rules plus always_on rules share a budget of 20000 tokens (separate from plugins, Skills, MCP budgets); once exceeded, the framework replaces the largest rule file with a short - <path>: <description> reference.

image

Here are two official mechanics where knowing the difference saves a lot of tokens. First, when a rule file references an external document, writing @[label](path) inlines the full text of the target file into the rule, consuming fixed input quota every round; writing @filename doesn't inline content — it resolves to an absolute path in the workspace, and the model reads it when needed. For non-core global constraints, prefer @filename to give only a path. Second, move database migrations, Protobuf compatibility, release review, and other scenario-specific standards out of AGENTS.md into .agents/rules/*.md, with YAML frontmatter to choose trigger modes on demand:

---
trigger: glob
globs: "*.sql, migrations/*.py"
description: "Database schema changes and migration script standards"
---

1. When modifying existing tables, don't delete or rename old fields in a single release.
2. When adding indexes to large tables, include online creation parameters to avoid table locks.

Besides glob (auto-activated by file extension), you can choose model_decision (only a path and description summary go into context; full text is read when task-relevant) or manual (loaded only when explicitly @-mentioned, suitable for release checklists). One reminder: files under .agents/rules/ must have valid YAML frontmatter; if missing or using camelCase modelDecision instead of model_decision, Antigravity silently ignores that rule.

Multi-step operation flows can also be turned into Skills placed in .agents/skills/<name>/SKILL.md, exposing only a name and a description. The docs give a practical token-saving tip: if a Skill directory contains helper scripts, instruct the Agent to run --help first and treat the script as a black box, avoiding reading the entire source into context.

03. agy CLI Advanced Tips

If you type agy (the Antigravity CLI) in your terminal, these four tricks are also handy.

Use /usage to Watch Quota

Typing /usage (alias /quota) in agy fetches the latest model configuration and quota status from the backend, opening an interactive panel showing remaining and weekly limits per model group (e.g., Gemini group, Claude and GPT group).

image

Typing /credits shows your remaining AI Premium Credits balance and consumption details for the current billing period.

image

No need to open the panel; the bottom-right status bar of the terminal shows the remaining credit count, with automatic highlighting when it drops below a warning threshold. (Honestly, this design is counter-intuitive; the first time I saw it, I thought my Gemini quota was used up, but it turned out I never use that.)

Use /codesearch and /diff for Verification

Search for symbols and strings by typing /codesearch (alias /cs) in agy to bring up a search panel that doesn't trigger model reasoning and doesn't consume tokens. It defaults to supporting regex and smart case matching; for code snippets containing parentheses or asterisks, add -F for literal search, and use f: to restrict paths or -f: to exclude test files:

/codesearch -F map[string]*UserSession
/codesearch -f:*_test.go NewUserSession

After finding a target, press Enter to preview the corresponding code lines in the panel, and Ctrl+G to open it in an external editor at the corresponding line number.

image

To review changes after code edits, type /diff to open an interactive diff view; press Tab to switch among three views:

Use agy -p Headless Mode

agy supports headless mode: pass a single prompt with -p (aliases --print, --prompt) and it exits after running.

image

Headless mode writes model responses to stdout and routes errors, progress, and permission prompts to stderr, making it suitable for shell pipes or Git hooks. Adding --output-format json yields a single-line JSON with metadata; --output-format stream-json outputs a line-by-line event stream, enabling real-time monitoring of tool calls and token consumption in scripts.

Ending

In the AI era, I think you should use at least one of the big three. If you can have Yi, Er, and San all at once, I can make a bold claim: your productivity already exceeds 99% of competitors. Learn the advantages from the enemy to defeat the enemy. I don't remember who said that, but I think it's worth recommending to my readers. Sometimes change starts from a tiny action; once you start executing, you trigger the hidden powerful self. If you read my content long-term, you'll see I never use negative words. I hope to inject hope and courage. That's not easy, but I'm willing to be the one who looks up at the stars, and I hope you love life and take care of yourself.

See you next time.