Antigravity slash commands are the fastest way to tell Google Antigravity’s agent how you want a job done, not just what you want. Type a forward slash in the agent chat, pick a command, add your instruction, and the agent switches into a specific way of working: planning first, interviewing you, running until the goal is met, opening the browser, or scheduling work for later.
In this guide, Team Study Warehouse explains nine commands one by one. For each, you get a realistic example prompt, what the agent does with it, and clear advice on when to use it and when to skip it. We finish with a comparison table, proven workflow combos, tips, and the mistakes we see most often.
Key Takeaways: Antigravity Slash Commands
- How to open them: type
/in the agent chat prompt box, keep typing to filter, then add your instruction after the command. - Plan before you build:
/grill-mealigns requirements,/planproduces a reviewable plan before any edits. - Delegate bigger work:
/goal,/boostand/teamworkgive the agent more autonomy, depth or parallel help. - Everyday helpers:
/browsertests live pages,/scheduleruns instructions later or on a cron,/compactfrees context,/learnmakes corrections stick. - Plan caveat: Google’s docs list
/boostand/teamworkas paid-plan features.
Table of Contents
What Are Antigravity Slash Commands?
Google Antigravity is Google’s agent-first development platform. You describe a task in the agent chat and an AI agent, powered by Gemini models, reads your project, edits files, runs commands and checks its own work. It is available as a desktop app, a CLI and IDE extensions. If you are new to it, our guide to connecting Blender with Google Antigravity using MCP shows the app in action.
Antigravity slash commands are short keywords that start with /. Instead of writing a paragraph like “please don’t touch any files yet, first think through a plan and show it to me”, you type /plan and the agent already knows the rules of the game. Google’s official slash commands overview describes them as shortcuts for agent workflows and tools.
How to Use Slash Commands in the Agent Chat
- Open the agent chat (the prompt box in the Antigravity App, the CLI prompt, or the IDE extension’s chat panel).
- Type
/. A menu of Antigravity slash commands appears. - Keep typing to filter, for example
/grfor/grill-me, and select the command. - Add your instruction after the command in plain language and press Enter.
A few Antigravity slash commands are not available on every surface or plan. We note those caveats in each section, based on Google’s documentation at the time of writing.
All 9 Antigravity Slash Commands Explained With Examples
Below are the nine Antigravity slash commands covered in this guide, grouped the way you will actually use them. The example prompts are illustrative: they show the kind of instruction that works well, and the agent’s exact steps will depend on your project.

/learn: Make the Agent Remember Your Preferences
What it does: /learn saves a workflow, preference or correction you gave the agent so it persists across future tasks and sessions. According to Google’s docs, it turns your corrections into rules or skills through a proposal you approve, so nothing is saved without your say.
How it eases work: you stop repeating yourself, which is why it is one of the most underrated Antigravity slash commands. If you corrected the agent three times about the same thing, one /learn makes that correction the default.
Example prompt:
/learn In this repo, always use pnpm instead of npm, write tests with Vitest, and never commit directly to main. Create a feature branch for every change.
What the agent does: it turns your instruction (and relevant corrections from the current session) into a proposed rule, shows it to you for review, and once you approve, applies it to future tasks. Next week, when you ask for a new feature, it reaches for pnpm and Vitest without being told.
- Use it when: you notice yourself giving the same correction more than once, or you have team conventions the agent keeps missing.
- Skip it when: the instruction only applies to today’s task. A one-off preference belongs in the prompt, not in a permanent rule.
/grill-me: Align on Requirements Before Building
What it does: /grill-me walks you through a quick interactive Q&A interview to align on requirements and resolve design decisions before building. Google’s docs add a useful detail: the agent asks one question at a time and suggests a recommended answer for each, so you can simply accept or adjust.
How it eases work: vague ideas become clear specs in a few minutes, making it the natural first step among the Antigravity slash commands, and you avoid the classic “that’s not what I meant” rebuild.
Example prompt:
/grill-me I want to add a newsletter signup to my blog. Help me decide the details before you build anything.
What the agent does: it might ask where the form should appear (with a recommended answer such as “below each post”), which email service to use, whether you need double opt-in, and what the success message should say. At the end you have a short, agreed list of decisions.
- Use it when: the task has open design choices, several stakeholders, or you are not sure yet what “done” looks like.
- Skip it when: the task is already fully specified, such as “rename this function everywhere”. An interview just adds friction.
/plan: Get a Step-by-Step Plan Before Any Edits
What it does: /plan creates a careful step-by-step plan for complex tasks before making any edits or running code. Google’s /plan documentation explains that the agent explores the codebase, asks clarifying questions if needed, and drafts an Implementation Plan artifact that you can comment on before clicking Proceed.
How it eases work: you review the approach while it is still cheap to change. Of all the Antigravity slash commands, this is the one we use most. A bad plan costs a comment; bad code costs a rollback.
Example prompt:
/plan Migrate our blog's contact form from a PHP mail() script to a serverless function with spam protection. Keep the current form design.
What the agent does: it reads the existing form and mail code, lists the files it will touch, proposes the new function, spam-check approach and tests, and stops. You leave inline comments such as “use honeypot, not CAPTCHA”, then approve and the agent follows the plan step by step.
- Use it when: the change touches several files, involves a migration, or could break something important.
- Skip it when: it is a tiny, obvious fix such as a typo or a one-line CSS change. Planning would take longer than doing.
/boost: Deep Thinking for Hard Problems
What it does: /boost activates deep thinking, strategic planning, multiple perspectives and rigorous verification for complex coding or research projects. Google’s docs describe it as multi-agent deep reasoning for hard bugs, race conditions and algorithms, and list it as a paid-plan feature.
How it eases work: instead of the first plausible answer, you get an answer that has been examined from several angles and checked, which is exactly what you want for bugs that have already wasted your afternoon. It is the heavy-duty option among the Antigravity slash commands.
Example prompt:
/boost Our checkout sometimes charges customers twice when they double-click Pay on slow connections. Find the root cause and propose a fix that is safe under concurrent requests.
What the agent does: it investigates the payment flow, considers several hypotheses (frontend double submit, missing idempotency key, race in the webhook handler), tests them against the code, and returns a verified root cause with a fix and the reasoning behind it.
- Use it when: the problem is genuinely hard: intermittent bugs, concurrency, algorithm design, or research where accuracy matters more than speed.
- Skip it when: the task is routine. Deep reasoning on a simple change mostly costs extra time and quota.
/goal: Run Long Tasks Until They Are Truly Done
What it does: /goal runs a long-horizon task thoroughly and keeps going without stopping prematurely until the full goal is achieved. Per Google’s docs, it does not pause for confirmation along the way and works until the goal is verified complete.
How it eases work: no more babysitting. Among the Antigravity slash commands, this is the one built for stamina. You define the finish line once, and the agent does not stop halfway to ask “should I continue?”.
Example prompt:
/goal Upgrade this project from React 18 to React 19. Fix every type error and failing test. The goal is complete when the build passes and all tests are green.
What the agent does: it updates dependencies, works through breaking changes file by file, reruns the build and test suite, fixes what fails, and repeats until your stated finish line is met, then reports what changed.
- Use it when: the task is long but well defined, with a clear, checkable finish line such as passing tests or a successful build.
- Skip it when: the requirements are still fuzzy, or the task touches risky areas (production data, billing) where you want to approve each step. Run
/grill-meor/planfirst.
/teamwork: Parallel Agents for Big Projects
What it does: /teamwork spawns a team of autonomous agents working in parallel for large multi-part projects. Google positions it for multi-day projects, migrations and research, and lists it as a paid-plan feature.
How it eases work: independent parts of a big job move forward at the same time instead of one after another, a bit like handing pieces of a project to different teammates. It is the most ambitious of the Antigravity slash commands.
Example prompt:
/teamwork Build a documentation site for our API: one agent writes the endpoint reference from the OpenAPI file, one writes getting-started tutorials, and one sets up search and deployment. Merge everything into a single site.
What the agent does: it splits the project into parts, assigns them to separate agents that work in parallel, and brings the results together into one deliverable.
- Use it when: the project naturally splits into independent parts: several modules, a large migration, or a research question with many sub-topics.
- Skip it when: the task is small or tightly coupled, where agents would mostly wait on each other. One focused agent is simpler and cheaper.
/browser: Test and Inspect Live Web Pages
What it does: /browser opens and operates the built-in browser to navigate, test, click, fill forms or inspect live web pages and web apps. Google’s browser use documentation notes that, depending on your account, the browser subagent runs in the app’s built-in browser or connects to Google Chrome.
How it eases work: the agent can verify its own UI changes the way a real user would, rather than assuming the code works. If you like browser-based debugging, our Chrome DevTools MCP guide covers a related setup.
Example prompt:
/browser Open http://localhost:3000/signup, switch to a 390px mobile viewport, register a test user, and confirm the welcome screen appears. Report any console errors and take a screenshot.
What the agent does: it opens the page, resizes the viewport, fills and submits the form, watches the console and network activity, and returns what it saw with a screenshot, so you know the flow works on mobile.
- Use it when: you need real rendering: UI testing, form flows, responsive checks, screenshots, or pages that need clicks to reach.
- Skip it when: the answer is in static documentation text, or the task has nothing to do with a web page. Browser sessions are slower than reading files.
/schedule: Automate One-Time and Recurring Tasks
What it does: /schedule sets up a one-time timer or a recurring scheduled task (cron) to run an instruction automatically. Google’s docs describe it as waking the agent later in the same conversation. Recurring schedules use cron syntax; crontab.guru is a handy way to check an expression.
How it eases work: routine checks happen without you remembering them, which makes this one of the most practical Antigravity slash commands for maintenance.
Example prompt (this cron expression means 9:00 AM, Monday to Friday):
/schedule "0 9 * * 1-5" Run the test suite, check for outdated dependencies, and give me a short summary of anything that needs attention.
What the agent does: it registers the schedule and, at each run time, wakes up in that conversation, carries out the instruction and posts the summary. A one-time example would be asking it to re-run a slow data export in two hours.
- Use it when: work repeats on a predictable rhythm (daily checks, weekly reports) or must happen at a specific later time.
- Skip it when: the task should run once, right now. Just ask normally.
/compact: Free Up Context in Long Chats
What it does: /compact summarizes and compacts the current conversation history to free up context window space when a chat gets long. Google’s docs list it for the App and CLI, and you can add an instruction telling the agent what to keep and what to do next. If you want to understand why context and tokens matter, our Gemini API file slicing guide explains token costs in practice.
How it eases work: long sessions stay sharp, and it pairs well with every other entry in this list of Antigravity slash commands. Without compaction, very long chats can push early details out of the model’s working memory.
Example prompt:
/compact Keep the database schema decisions and the list of open bugs. Next, write integration tests for the orders API.
What the agent does: it condenses the conversation into a checkpoint summary that keeps the details you named, then continues with your next instruction using far less context.
- Use it when: a session has run for a long time, covered many files, or the agent starts forgetting earlier decisions.
- Skip it when: the chat is short, or you are about to start an unrelated task. A fresh conversation is cleaner than compacting an old one.
Antigravity Slash Commands Comparison Table
Here is a quick side-by-side view of all nine Antigravity slash commands. The “Available on” column reflects Google’s slash command overview at the time of writing.
| Command | Best for | Changes files? | Available on |
|---|---|---|---|
/learn | Making corrections and conventions permanent | Saves rules/skills after you approve | App, CLI, IDE extensions |
/grill-me | Clarifying requirements before work | No, Q&A only | App, CLI, IDE extensions |
/plan | Complex or risky changes | Not until you approve the plan | App, CLI, IDE extensions |
/boost | Hard bugs, concurrency, algorithms, research | Yes, after deep analysis | App, CLI, IDE extensions (paid plans) |
/goal | Long tasks with a clear finish line | Yes, until the goal is met | App, CLI, IDE extensions |
/teamwork | Large multi-part projects | Yes, several agents in parallel | App, CLI, IDE extensions (paid plans) |
/browser | UI testing and live page checks | Usually no (inspects and reports) | App, CLI, IDE extensions |
/schedule | Timers and recurring jobs | Depends on the scheduled instruction | App, CLI, IDE extensions |
/compact | Long conversations | No, summarizes the chat | App, CLI |
Powerful Workflow Combos That Save Hours
The real power of Antigravity slash commands shows up when you chain them. These are the combinations Team Study Warehouse finds most useful.
1. /grill-me → /plan → /goal (build a feature end to end)
Start with /grill-me to settle the decisions, turn the answers into a reviewable /plan, then hand the approved plan to /goal so the agent finishes the whole thing. Google’s docs even show /plan /grill-me together to turn the interview straight into a plan.
/grill-me Add user roles (admin, editor, viewer) to our dashboard.
/plan Implement the roles we just agreed on.
/goal Execute the approved plan. Done when all role tests pass.
2. Code change → /browser (verify like a real user)
After any front-end change, follow up with /browser so the agent clicks through the affected pages and checks the console before you merge.
/browser Open the pricing page on desktop and mobile widths, toggle monthly/yearly billing, and confirm the totals update without console errors.
3. /boost → /learn (fix once, remember forever)
Use /boost to crack a tricky bug, then /learn the lesson so the same mistake is avoided in future tasks.
/learn Every payment endpoint must use an idempotency key and be safe to call twice.
4. /schedule for maintenance, /compact for marathon sessions
Put routine checks on a /schedule, and when a long working session starts to drag, run /compact with a note on what to keep so the agent stays focused.
Tips to Get the Most From Antigravity Slash Commands
- Always add a clear instruction after Antigravity slash commands.
/goalon its own is far weaker than/goal … done when tests pass. - Define “done” for /goal with something checkable: passing tests, a successful build, or a screenshot that matches.
- Review plans properly. Inline comments on a
/planare the cheapest moment to change direction. - Keep /learn rules short and specific. “Use pnpm” is a good rule; a page of style opinions is not.
- Use local URLs with /browser (for example
http://localhost:3000) when testing work in progress. - Check the official list of Antigravity slash commands. Google’s CLI command reference and docs list more commands beyond the nine covered here; availability can change between versions and plans.
- Pick the right model for the job. Our Gemini 4 Neon guide and GPT-6.2 Astra and Sol comparison help you understand the models behind today’s coding agents.
Common Mistakes to Avoid
- Using /goal on a vague task. Without a clear finish line the agent may build the wrong thing very thoroughly.
- Skipping /plan for risky changes such as migrations, authentication or payments.
- Boosting everything.
/boostis for hard problems; on simple tasks it mostly costs time and quota. - Spawning /teamwork for small jobs where one agent would finish faster.
- Saving one-off preferences with /learn, which clutters your rules and confuses later tasks.
- Never compacting very long chats, then wondering why the agent forgot an early decision.
- Forgetting a schedule is running. Keep track of recurring
/schedulejobs so they do not keep working after you no longer need them.
Frequently Asked Questions
What are Antigravity slash commands?
Antigravity slash commands are shortcuts you type in the agent chat, starting with a forward slash, that tell Google Antigravity’s agent how to approach a task, such as planning first with /plan or running until finished with /goal.
How do I open the slash command menu in Antigravity?
Type / in the prompt box of the Antigravity App, the CLI or the IDE extension chat. A menu appears; keep typing to filter it, select a command, then add your instruction.
What is the difference between /plan and /grill-me?
/grill-me interviews you to settle requirements and design decisions. /plan explores the project and produces a step-by-step implementation plan for you to review before any edits. Many people run /grill-me first, then /plan.
Are /boost and /teamwork free?
Google’s documentation lists /boost and /teamwork as paid-plan features at the time of writing. Check your plan in Antigravity, because availability can change.
Does /compact delete my conversation?
No. /compact summarizes the conversation so far into a shorter checkpoint to free up context window space. You can tell it which details to keep.
Can /schedule run tasks every day?
Yes. /schedule supports one-time timers and recurring schedules using cron expressions, for example “0 9 * * 1-5” for 9 AM on weekdays.
Final Thoughts
Once they become a habit, Antigravity slash commands change how you work with an AI agent. You stop writing long instructions about process and start choosing the right mode in a few keystrokes: interview, plan, execute, verify, automate and remember.
Learning Antigravity slash commands does not take long. Start small: use /plan on your next non-trivial change and /browser to check the result. Add /goal, /schedule and the rest as you grow comfortable. Have a favourite combo? Share it in the comments below and Team Study Warehouse may feature it in a future update.


