cd /news/ai-agents/learning-about-anything-with-antigra… · home › topics › ai-agents › article
[ARTICLE · art-179263] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Learning about anything with Antigravity

A developer used Google Antigravity's Orchestrator mode to turn a single prompt into Prime Prism 3D, a standalone 167 KB HTML app with a custom WebGL2 engine for exploring prime numbers through interactive 3D visualizations. The agent ran autonomously for 28 minutes, building the app and then running a WebSocket-based verification script that checked WebGL2 health, math assertions like π(100) = 25, and screenshots across two viewport sizes, with visual review of the screenshots catching three rendering bugs that code assertions missed.

recommendation

When an agent builds UI or 3D output, have it capture screenshots at multiple viewport sizes and inspect them visually, since passing code assertions alone missed three rendering bugs here.

more in playbook: Working with AI coding agents
by read5 min views10 publishedDec 1, 2026

Turning a single prompt into a standalone 3D interactive math explorer (and how you can use the same workflow for any topic).

Have you ever tried to learn an abstract concept from a textbook page or a Wikipedia article? Did you stare at static diagrams wishing you could drag a slider to see what actually changes? Have you ever thought about coding a quick visualizer yourself, only to stop at project setup and 3D boilerplate?

With agentic environments like Google Antigravity, you can ask for intuition directly and get a custom interactive playground in minutes.

In this post, you’ll see how to…

…and do it all from just one prompt!

I started with an empty folder, opened Antigravity with Orchestrator mode selected, and typed one request:

/goal
I want to build intuition about prime numbers.
Build a colorful standalone HTML app with interactive 3D animations.

That’s it. No library choices, no UI wireframes, and no list of math theorems to implement.

Every piece of this short prompt pulls its weight:

/goal: Once I hit Enter, Antigravity ran autonomously for 28 minutes. Here is the workflow it executed on its own:

10,000, a custom WebGL2 engine with instanced meshes, star halos, and 3D ribbons, a Number DNA Inspector, a guided tour in 8 steps, and optional Web Audio chimes).build.mjs) validated syntax, confirmed zero external URLs, and emitted one readable index.html (167 KB, around 4,550 lines).verify_app.mjs) over native WebSockets. Opening file:///.../index.html, it checked WebGL2 health, zero console.error events, math assertions (π(100) = 25, π(1000) = 168, 360 = 2³ × 3² × 5, Euler's streak of 40 primes, 41 = 5² + 4², Goldbach pairs for 100 and 210), orbit drag, search, and 10 screenshots across 1440×900 and 1024×768. Note: The project folder stays clean! Because the build sources and test scripts live in Antigravity’s scratch directory, the destination folder holds only one file: index.html.

Passing unit tests doesn’t guarantee a 3D app actually looks good. Because /goal keeps auditing until completion, Antigravity opened every rendered screenshot to inspect the result visually.

That visual review caught three bugs that code assertions missed:

1024px viewports.v_edge glow interpolation flipping across each quad, negated the endpoint width to align extrusion with glow falloff, rebuilt Watching an agent debug its own shaders from screenshots (without a single prompt from me) is where /goal shines.

The result is Prime Prism 3D. Each tab drops you into a live 3D experiment where numbers react to your mouse and sliders.

In Sieve Wave Cascade (shown at the top of this post), each prime p launches a colored shockwave starting at p² that knocks its multiples down into tiles colored by their smallest prime factor. Once the waves pass √N (12 for N = 144), no new composites can fall, and every surviving pillar lights up in gold as a guaranteed prime.

Flip to Factor Tower City , and every composite turns into a stacked tower of colored prime factor bricks (12 = 2 × 2 × 3) beside unbreakable golden prime monoliths.

Why do number theorists repeat 6k ± 1? Wrap integers around a cylinder of modulus M = 6, and four spokes lock immediately to multiples of 2 or 3 (forcing every prime above 3 onto two twin laser rails).

Slide the modulus to M = 30 (2 × 3 × 5), and 22 of 30 spokes go dark on the spot, eliminating 73% of all integers at a glance.

Morph smoothly between Ulam’s square spiral, Sacks’ polar spiral, and a Golden Hex spiral. Turn on Mod 4 coloring to see Fermat’s Two Squares theorem: emerald primes (4k + 1) always equal a² + b² (41 = 5² + 4²), while coral primes ( 4k + 3) never do.

Switch to Sacks Polar and highlight Euler’s n² + n + 41: a green curve threads through 40 consecutive primes before hitting 41² = 1,681.

Switch to π(x) & Zeta Zeros and drag the harmonic slider from 0 to 30: rotating phase rings sculpt a smooth curve into sharp steps at every prime power (Bernhard Riemann's "Music of the Primes" made tangible). In the companion Divisor Waves mode, each prime p sends out a |sin(πx / p)| wave that crushes composites on the front rail while prime spires erupt wherever every wave misses zero.

Below, rainbow arches pair primes p + q = E for any even E ≤ 400. Above floats the Goldbach Comet: pull the E mod 6 slider to watch multiples of 6 (like 210 = 2 × 3 × 5 × 7, with 19 pairs) soar in a golden upper wing with roughly twice as many prime sums!

Antigravity also added thoughtful extras I never asked for: a Number DNA Inspector (1 to 10,000), 15 preset "Aha! Moments" , a Guided Tour in 8 steps, and optional Web Audio chimes.

Because Prime Prism 3D compiles down to a single HTML file with zero external dependencies, there is nothing to install. Open it in your browser, spin the 3D worlds with your mouse or finger, click any integer to inspect its prime factors, or launch the guided tour:

👉 Open Prime Prism 3D in your browser

Note: You can also save the page (Ctrl+S or Cmd+S) as index.html on your computer (it runs 100% offline).

Prime numbers were just one test case. The exact same pattern works whenever a topic feels too abstract on paper:

file:// opening in any browser, and effortless sharing as one file. Want to try it right now? Drop one of these prompts into an empty folder:

/goal I want to build intuition about orbital mechanics, Hohmann transfers, and Lagrange points L4/L5. Build a colorful standalone HTML app with interactive 3D animations. /goal I want to build intuition about Fourier series, overtones, and consonance. Build a colorful standalone HTML app with interactive animations and Web Audio. /goal I want to build intuition about Raft consensus, leader election, and quorum failures. Build a colorful standalone HTML simulator where I can drop packets and kill nodes. /goal I want to build intuition about enzyme kinetics and competitive vs. allosteric inhibition. Build a colorful standalone HTML explorer with live particle simulations. Static diagrams show you the finished rule, but an interactive playground lets you feel why it holds. Next time a book chapter, research paper, or midnight rabbit hole sparks a question, drop a /goal prompt into Google Antigravity and see what explorer comes back.

🖖 Feedback, questions, or a fun interactive explorer you built? I’d love to read from you!

🪢 Follow me on Twitter/X or LinkedIn for more explorations…

── more in #ai-agents 4 stories · sorted by recency
── more on @google antigravity 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/learning-about-anyth…] indexed:0 read:5min 2026-12-01 · —