A hands-on agent loop tutorial: hand Antigravity 2.0's /goal one high-level
goal and watch a self-correcting agent loop run on its own — plan, act, verify,
repair, finish — until the build passes its tests, with no step-by-step prompting.
A great starting point if you're new to autonomous, closed-loop agents.
The agent builds and verifies a small static storefront (the Lumière boutique)
from a single goal, closing the loop against an objective oracle
(node --test + verify.mjs):
This repo also hosts the published codelab. Pull down just the workspace/
folder with a sparse checkout — that folder is your working directory:
git clone --no-checkout --depth 1 https://github.com/evanca/gde-sprint-26-loop-public.git
cd gde-sprint-26-loop-public
git sparse-checkout init --cone
git sparse-checkout set workspace
git checkout
cd workspaceworkspace/— the boutique starter (your working directory): a skeletonindex.html, stub helpers injs/shop.js, and the closed-loop oracle (tests/shop.test.js+verify.mjs) that defines "done". The goal lives in the/goalprompt; the agent reads the tests for the exact contract.reference/— the completed end state, for comparison.
The oracle is pure JavaScript and verified offline with node --test (Node.js
20+) — no agent run needed. Running the loop uses Antigravity 2.0's /goal
(also available in the Antigravity CLI, agy).
Follow the codelab from here.
Google Cloud credits were provided for this project as part of the Agentic Architect Sprint 2026.
#AgenticArchitect #GoogleAntigravity
