Do you also hate doing the same manual tasks in Google Workspace over and over again? Imagine just describing what you need in plain English, and boom - your spreadsheet automates itself like magic. With Antigravity, you can orchestrate automations directly, or let the agent write Google Apps Script for you. The real beauty of Apps Script is that it has built-in OAuth for Google services and runs serverless in the cloud. Your automations keep running serverless and in da cloud without your laptop even being turned on! :-)
You can define what you want directly in plain English and Antigravity writes the code. Even better, it can automatically deploy it using the clasp CLI (the command-line interface for Apps Script) so you don't have to copy-paste anything. The catch? To run this locally, you must keep your computer powered on. But who wants that? That's why we migrate the entire development flow into a serverless environment using the Managed Agents API!
BTW And have you heard the news? Google Apps Script was recently officially elevated to a Google Workspace core service! 🆕 This is huge! It means enterprise-grade data protection, administrative control, and standard technical support.
Let's look at how this magic works under the hood! 😉
Here is how we move away from traditional line-by-line syntax to Vibe-Coding, where we set the high-level intent and the agent handles the heavy lifting
Step 1) Get ready with Antigravity
Instead of writing code, you just tell the agent in plain language: "Create a script that checks column B, and if it contains 'Cancelled', send an email to [email protected]." The agent acts as your
workspace developer, structuring the code, manifest, and configs automatically.
To get started, you need to download and install Antigravity. Personally, I run two setups: Antigravity IDE for my personal stuff (hooked up to my private Gmail account with a Google AI Pro license), and Antigravity 2.0 connected to a corporate Google Cloud Project. For this demo, we'll be using Antigravity IDE! 😉
Tip!
The black background icon is for Antigravity IDE, which was released in 11/2025
The white background icon is for Antigravity 2.0, which was introduced during in 5/2026.
Step 2) Prepare you environment
When you open Antigravity IDE for the first time, select your project folder. On the right-hand side, you'll see a panel where you can write instructions. And yes, you can execute commands directly from this chat input
Run clasp login on your computer to authorize the CLI.
Just type:
Use clasp CLI to login
To avoid starting from scratch, I prepared several Skills, structured markdown files (SKILL.md) that describe how the agent should run and invoke tools. I have prepared three custom skills for this project:
- apps-script-developer: acts as your Google Apps Script developer, handling OAuth credentials and deploying code via clasp cli
https://github.com/codeas/managed-antigravity-gas/tree/main/skills/apps-script-developer
- cloud-migrator: takes care of packaging the local workspace and migrating dev tasks to the cloud sandbox.
https://github.com/codeas/managed-antigravity-gas/blob/main/skills/cloud-migrator/SKILL.md
- system-manager: Configures Python virtual environments and manages package installations to keep everything isolated and clean.
https://github.com/codeas/managed-antigravity-gas/blob/main/skills/system-manager/SKILL.md
You can install skills with terminal commands (if you feel like a pro)
npx skills add https://github.com/codeas/managed-antigravity-gas
But wait, there is an even easier way! You don't even have to type that terminal command. Since you are talking to an intelligent agent, you can just ask it in plain English: “Install skill into local folder from https://github.com/codeas/managed-antigravity-gas” and watch it configure itself. How neat is that?
Step 3) Configure the Gemini API
Tip!
Always set a hard limit on your monthly spend in your billing settings—whether it's $10, $100, or $1000. It's a lifesaver safety net just in case something goes wrong and your agent goes on an infinite loop! 🤪
Step 4) Local development with local Antigravity harness
“create a new folder and write a google apps script in this folder. Script retrieves all labels from my Gmail”.
Step 5) Cloud development with local Antigravity harness with Managed Agents API
One super neat detail: when the cloud execution starts, the local agent tells you it's waiting for the remote task to finish and will notify you when it's done












.png)






