Hands-On Workshop • Build & Deploy Full-Stack Agentic Apps with Zero Manual Code
Module 0 • Welcome & Onboarding • 00:02 – 00:04 (2 min)
Proprietary + Confidential
g.dev/credits/latw-mcp-010
Point your phone camera at the code → redeem → create or pick a project with billing enabled. We deploy to Cloud Run at the end of today's workshop, and billing must be on for that to work.
LATWDevs2026!
Module 0 • Welcome & Onboarding • 00:04 – 00:05 (1 min)
Proprietary + Confidential
Scan or open the Codelab now so you can follow along step-by-step
Full step-by-step instructions, prompts, and Cloud Shell setup for today's lab.
Today's lab deploys to Cloud Run — redeem your event credit, then create a project with billing on.
Official documentation for AGY CLI, IDE, MCP servers, Skills, Plugins, and Hooks.
Today's slides, copy-paste prompt sheet, and Antigravity SDK reference code.
Proprietary + Confidential
Google Developer Expert — AI & ML
ML Scientist — PayPal
Module 0 • Welcome & Onboarding • 00:07 – 00:10 (3 min)
Proprietary + Confidential
We will build the "Cat Delivery System" through 4 progressive hands-on checkpoints. Every module pairs a core agentic engineering pattern with immediate hands-on execution.
Launch & authenticate Antigravity CLI inside Cloud Shell Editor. Generate, run, and inspect our first Node.js cat trivia script.
Eliminate documentation cutoffs! Connect Google's official MCP server and generate kitten art with Nano Banana 2.
Install the Antigravity SDK Skill & Chrome Web Plugin. Use /plan and /artifact to architect the Cat Delivery System.
Switch to /fast mode to containerize and deploy to Cloud Run, then try to break our 'Strictly No Dogs (Capybaras OK)' guardrail!
Module 1 • Concepts & Architecture • 00:10 – 00:12 (2 min)
Proprietary + Confidential
Module 1 • Concepts & Architecture • 00:12 – 00:14 (2 min)
Proprietary + Confidential
Module 1 • Concepts & Architecture • 00:14 – 00:15 (1 min)
Proprietary + Confidential
By the end of this hands-on workshop, you will orchestrate Antigravity to build and deploy the "Cat Delivery System" while mastering four modern agentic development skills:
Module 1 • Concepts & Architecture • 00:15 – 00:17 (2 min)
Proprietary + Confidential
Today's workshop features a two-tier agentic architecture: we use Antigravity CLI (Tier 1) to build and deploy a Cloud Run application powered by the Antigravity SDK (Tier 2).
🔍 Click diagram to enlarge full-screen
Module 1 • Concepts & Architecture • 00:17 – 00:18 (1 min)
Proprietary + Confidential
Google's AI-first agentic development platform. We'll use the terminal CLI (`agy`) to orchestrate code, and the Python SDK (`google-antigravity`) as the runtime harness for our app.
Open standards for extending agents. MCP connects `agy` to live Google documentation APIs, while Agent Skills (`SKILL.md`) provide progressive, on-demand procedural expertise.
Gemini 3.5 Flash powers fast agent reasoning, Gemini 3.1 Flash Image (Nano Banana 2) generates images, and Cloud Run hosts our container serverlessly.
Module 1 • Concepts & Architecture • 00:18 – 00:20 (2 min)
Proprietary + Confidential
Module 2 • Lab Step 1: Hello Antigravity CLI • 00:20 – 00:21 (1 min)
Proprietary + Confidential
Lab Step 1 — Setting Up Cloud Shell Editor & Authenticating Antigravity CLI (agy)
Module 2 • Lab Step 1: Hello Antigravity CLI • 00:21 – 00:24 (3 min)
Proprietary + Confidential
While Cloud Shell comes with Antigravity pre-installed, the default Cloud Shell bottom pane doesn't render advanced TUI menus properly. Always use the terminal inside Cloud Shell Editor!
# Create a working directory for our warm-up exercise
mkdir -p ~/hello-agy && cd ~/hello-agy
# Launch Antigravity CLI
agy
🔍 Click screenshot to zoom
Module 2 • Lab Step 1: Hello Antigravity CLI • 00:24 – 00:27 (3 min)
Proprietary + Confidential
Choose 'Use a Google Cloud project'
Open link & paste the auth code
Enter your PROJECT_ID & choose 'global'
Sign in with the same Google account that redeemed today's credit code. Already signed into a work org account? Open the OAuth link in an incognito tab instead. When prompted for location, select 'global'.
? How would you like to authenticate?
> 1. Use a Google Cloud project
Paste authorization code: [PASTE_CODE_HERE]
Enter Google Cloud Project ID: [YOUR_PROJECT_ID]
Select Google Cloud Location: > global
Module 2 • Lab Step 1: Hello Antigravity CLI • 00:27 – 00:30 (3 min)
Proprietary + Confidential
Write a simple node script that returns cat trivia and run it for me
Explain the code you generated please
# When finished, exit AGY CLI:
# Press Ctrl+D twice
Module 3 • Lab Step 2: Developer Knowledge MCP • 00:30 – 00:33 (3 min)
Proprietary + Confidential
Before we connect the Google Developer Knowledge MCP server, let's look at how Antigravity organizes its global configuration inside your home directory (`~/.gemini`).
~/.gemini
├── antigravity/
├── antigravity-cli/
│ ├── brain/ # Conversations and artifacts
│ └── settings.json # CLI settings
├── config/
│ ├── plugins/ # Global / shared plugins
│ └── mcp_config.json # Global / shared MCP config
├── skills/ # Global / shared skills
│ └── {skill_name}/
│ ├── SKILL.md # Skill definition
│ └── ... # [optional] support files, scripts, etc.
└── GEMINI.md # Global rules
Module 3 • Lab Step 2: Developer Knowledge MCP • 00:33 – 00:37 (4 min)
Proprietary + Confidential
By adding `google-developer-knowledge` to `~/.gemini/config/mcp_config.json`, Antigravity gains direct search & retrieval tools over official Google Cloud, Vertex AI, Firebase, and Android docs.
{
"mcpServers": {
"google-developer-knowledge": {
"url": "https://developerknowledge.googleapis.com/mcp",
"authProviderType": "google_credentials",
"oauth": {
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"timeout": 30000,
"headers": {
"X-goog-user-project": "[[PROJECT_ID]]"
}
}
}
}
🔍 Click screenshot to zoom
Module 3 • Lab Step 2: Developer Knowledge MCP • 00:37 – 00:40 (3 min)
Proprietary + Confidential
Let's test our new MCP server with a prompt that mentions "Nano Banana 2"—the nickname for Google's Gemini 3.1 Flash Image generation model.
# 1. Exit agy (Ctrl+D twice) & enable Vertex AI API
gcloud services enable aiplatform.googleapis.com
# 2. Create project & initialize uv
mkdir -p ~/nano-banana-kitten && cd ~/nano-banana-kitten
uv init
agy
# 3. Paste this prompt into agy:
Write a script that uses Nano Banana 2 through Vertex AI to generate a picture of a cute kitten, and run the script for me. Use the google-developer-knowledge MCP when researching.
Module 3 • Lab Step 2: Developer Knowledge MCP • 00:40 – 00:45 (5 min)
Proprietary + Confidential
Cloud Shell Editor showing the generated kitten image alongside AGY's terminal execution. (Click to zoom)
Module 4 • Lab Step 3: Agent Skills & /plan Mode • 00:45 – 00:47 (2 min)
Proprietary + Confidential
Module 4 • Lab Step 3: Agent Skills & /plan Mode • 00:47 – 00:50 (3 min)
Proprietary + Confidential
Exit `agy` (`Ctrl+D` twice) and run these commands in your terminal to initialize the `~/cat-delivery` project and install both skills.
# 1. Create workspace and install base backend dependencies
mkdir -p ~/cat-delivery && cd ~/cat-delivery
uv init && uv add fastapi uvicorn
# 2. Install the official Antigravity Python SDK skill
npx skills add Google-Antigravity/antigravity-sdk-python \
--skill google-antigravity-sdk --agent antigravity-cli --yes
# 3. Install the Chrome team's modern-web-guidance plugin
agy plugin install https://github.com/GoogleChrome/modern-web-guidance
# 4. Launch agy and check installed skills
agy
/skills
🔍 Click screenshot to zoom
Module 4 • Lab Step 3: Agent Skills & /plan Mode • 00:50 – 00:52 (2 min)
Proprietary + Confidential
Before we prompt `agy` to build the full application, we need to configure two key levers: the **Operating Mode** and the **Model Thinking Level**.
# 1. Open model selector and choose Gemini 3.5 Flash (Low)
/model
# 2. Switch to Plan Mode for our full-stack build
/plan
# (You can switch back to Fast Mode anytime with /fast)
🔍 Click screenshot to zoom
Module 4 • Lab Step 3: Agent Skills & /plan Mode • 00:52 – 00:55 (3 min)
Proprietary + Confidential
Make sure you are in `/plan` mode, then send this specification prompt to `agy`. Notice how we specify the persona rules, tech stack, and contract-first TODOs!
Create an application named "Cat Delivery System". This application will be an agent that generates cat pictures using Gemini 3.1 Flash Image (aka Nano Banana 2). The user will interact with the agent whenever it feels the need for a cat picture in their life, whether it be to make them smile, laugh or just brighten their day. Cat pictures can take any form the user desires: anime, cartoon, photorealistic, 3D render, etc. The only rule is ABSOLUTELY NO DOGS - steer the user towards cats if necessary. P.S.: capybaras are allowed.
The tech stack should be as follows:
- uv package manager
- Backend: agent using Antigravity SDK
- Frontend: simple chat window, light mode, lit / vite
- Model: Gemini 3.5 Flash for the root agent, Gemini 3.1 Flash Image for image generation
TODO:
- backend should serve a static frontend
- define the contract between frontend and backend before starting implementation
- use Google Cloud Project auth
Module 4 • Lab Step 3: Agent Skills & /plan Mode • 00:55 – 00:57 (2 min)
Proprietary + Confidential
AGY invoking both the Developer Knowledge MCP server and installed Agent Skills during the planning research phase. (Click to zoom)
Module 4 • Lab Step 3: Agent Skills & /plan Mode • 00:57 – 00:59 (2 min)
Proprietary + Confidential
In Antigravity, supporting documents (`implementation_plan.md`, `task.md`, `walkthrough.md`) are called **Artifacts**. You can review and annotate them line-by-line right in the CLI!
Type `/artifact` in the prompt. Select `implementation_plan.md` from the list and press Enter to open the interactive viewer.
Scroll with arrow keys (`↑`/`↓`). Verify the Frontend ↔ Backend JSON contract and check the 'Verification Plan' section at the bottom.
Want to tweak an endpoint, port, or UI detail? Navigate to any line and press `C` to attach a comment directly to that line!
When happy with the plan, press `ESC` to exit the viewer and press `Y` to send your approval/comments to the agent and start coding!
Module 4 • Lab Step 3: Agent Skills & /plan Mode • 00:59 – 01:02 (3 min)
Proprietary + Confidential
# Typical generated structure in ~/cat-delivery:
cat-delivery/
├── backend/
│ ├── agent.py # AGY SDK + Nano Banana 2 tool
│ └── main.py # FastAPI + static file mount
├── frontend/
│ ├── src/ # Lit web components chat UI
│ └── vite.config.js
└── pyproject.toml
# Run /artifact after implementation completes:
1. implementation_plan.md (Approved Blueprint)
2. task.md (Live Checklist [x])
3. walkthrough.md (Validation Summary)
Module 5 • Lab Step 4: Cloud Run Deployment & Verification • 01:02 – 01:06 (4 min)
Proprietary + Confidential
Deployment doesn't need a new design doc
Dockerfile bundles Lit dist/ + FastAPI backend
AGY deploys to Cloud Run & verifies live URL
By giving AGY explicit Acceptance Criteria ('Frontend is live and renders with no errors', 'Backend responds with no errors'), the agent won't stop at `gcloud run deploy`—it will curl/test the live Cloud Run URL and fix any container startup issues automatically!
/fast
Deploy the agent and frontend to Cloud Run.
TODO:
- backend should serve a static frontend
- frontend and backend are deployed in the same container
Acceptance Criteria
- Agent is deployed to cloud run
- Frontend is live and renders with no errors
- Backend is live and responds to requests with no errors
Module 5 • Lab Step 4: Cloud Run Deployment & Verification • 01:06 – 01:10 (4 min)
Proprietary + Confidential
Root agent (Gemini 3.5 Flash) responds with an encouraging message, invokes the Nano Banana 2 (Gemini 3.1 Flash Image) tool, and renders a neon cyberpunk cat right in the Lit chat UI!
Verification Goal: Confirms single-container static UI serving, backend Antigravity SDK harness, and Vertex AI image synthesis work end-to-end on Cloud Run."I'm strictly a Cat Delivery System—no dogs allowed! How about an adorable golden fluffy Maine Coon kitten instead?" (Generates cat!)
Agent honors the 'P.S.: capybaras are allowed' clause in its system instructions and generates a chill capybara image via Nano Banana 2!
Module 6 • Playbook, Troubleshooting & Wrap-Up • 01:10 – 01:12 (2 min)
Proprietary + Confidential
We just built, tested, and deployed a full-stack cloud application without writing a single line of code manually. Here is the 4-step playbook you can take back to your team tomorrow:
Never let coding agents guess APIs. Connect `google-developer-knowledge` (and your internal MCP servers) for live, authoritative docs.
Package SDK conventions & team workflows as `SKILL.md` files (`npx skills` / `agy plugin`) for token-efficient progressive disclosure.
Use `/plan` + `/artifact` (press `C` to comment) to lock in API contracts and verification plans before a single file is modified.
Switch to `/fast` for deployment and always include explicit Acceptance Criteria so the agent verifies and self-heals its own release.
Module 6 • Bonus Reference & Cheat Sheet • Reference Slide (1/2)
Proprietary + Confidential
/plan # Switch to Plan Mode (creates plan artifact)
/fast # Switch to Fast Mode (immediate execution)
/artifact # Open & review implementation_plan.md / task.md
/model # Switch model & thinking level (Low/Med/High)
/mcp # Verify connected MCP servers & tools
/skills # List discovered workspace, plugin & global skills
Ctrl + O # Expand/collapse intermediate agent thinking
Ctrl + D x2 # Exit AGY CLI cleanly back to bash
# Fix 1: TUI menu looks garbled in Cloud Shell
-> Click 'Open Editor' and use Terminal > New Terminal (Ctrl+`)
# Fix 2: google-developer-knowledge MCP fails to connect
-> Check ~/.gemini/config/mcp_config.json: ensure [[PROJECT_ID]]
was replaced with your real Project ID (no brackets!)
-> Ensure API is enabled:
gcloud services enable developerknowledge.googleapis.com
Module 6 • Bonus Reference & Cheat Sheet • Reference Slide (2/2)
Proprietary + Confidential
---
name: cloud-run-security-audit
description: >-
Audits FastAPI and Cloud Run services for least-privilege IAM,
non-root Dockerfiles, and CORS safety. Activate before deploy.
---
# Cloud Run Security Audit Procedure
1. Verify Dockerfile runs as a non-root user.
2. Check that Vertex AI uses ADC (no hardcoded API keys).
3. Run smoke tests against /healthz before rollout.
# Project Engineering Guidelines (GEMINI.md)
- **Package Manager**: Always use `uv` (never raw `pip`).
- **Python Style**: Type-annotate all FastAPI endpoints.
- **Frontend**: Use Lit web components with Vite.
- **Testing**: Run `uv run pytest` after modifying backend code.
Built & Deployed with Google Antigravity, Developer Knowledge MCP, Agent Skills & Cloud Run
Proprietary + Confidential
Questions, Feedback & Let's Connect!
Rabimba Karanjai • GDE AI/ML • @rabimba
Workshop Codelab
gemini-mcp-agy
Connect on LinkedIn
in/rabimba-karanjai
Slides & Artifacts
GDE-ML-Artifacts