1. Overview
This guide reviews the Antigravity desktop application (referred to as agy) together with Gemini 4 Neon, based on a hands-on run through the application's slash-command set. The covered commands range from multi-agent orchestration and remote host connection to side questions, requirements alignment, and interactive artifact generation. The goal is to show what each command does, when it applies, and which engineering constraints keep the work predictable.
The background context matters. Earlier external commentary had questioned whether DeepMind still qualified as a frontier lab, citing reinforcement-learning team departures and compute allocation. An August 7 SemiAnalysis note argued that the odds of another SOTA outcome had dropped to zero; that view was later circulated inside the Gemini RL extension team as a reference point. The release of Gemini 4 Neon on November 18, alongside the engineering stack in Antigravity, is the setup this guide examines.
The record also notes practical limits worth keeping in view: one competing product's reported $500 quota was still insufficient, and its video-class output was weaker than Gemini 4 Neon. Free or starter quota on any platform can likewise be exhausted quickly. The sections below describe the commands as documented in the practice materials; official Antigravity documentation remains the governing reference for current behavior.
2. /swarm: Multi-Agent Parallel Collaboration
2.1 The problem it addresses
As context grows, an Agent tends to forget earlier constraints. In long-running sessions, one compression round can invalidate the working state. The /swarm slash command is designed around this failure mode.
After you enter /swarm and describe the task, the current session becomes a coordinator. The coordinator splits the task and starts a team of agents with divided responsibilities, working in parallel. The coordinator does not write code, troubleshoot, or run tests. It dispatches work, accepts results, and makes decisions, which keeps the main session responsive to new instructions.
This differs from opening several browser tabs. The harness behind /swarm enforces a shared board, targeted wake-up, dedicated verification, and workspace isolation.
2.2 The shared board
All task assignments, change summaries, and test results are posted in order on a shared board and retained there. Even after a member's context is compressed, the member can resume from a specific sequence number and restore prior state.
Handoffs reference message numbers rather than copying full reports into the next message. A verifier, for example, can be asked to review items #4 and #6. This avoids repeating long summaries and keeps token usage bounded.
2.3 Wake-up and channels
Mentioning a member with @ on the board wakes that member. Members without current work sit in a waiting state and consume no tokens; they wake only when mentioned. Between handoffs, mention only the next active peer rather than using @all.
When the team exceeds eight members, or spans several independent modules, the coordinator creates separate channels. The public main channel holds cross-module decisions; internal module communication uses @#channel, which wakes only the members of that channel.
2.4 Verification, monitoring, and narration
With two to four working members, the coordinator adds one @verifier. The verifier reads the changes, runs tests, and walks through the experience as a real user would. When it finds issues, it sends them back to the original author for rework. The verifier does not edit code, which structurally prevents two members from changing the same file at once.
A background @monitor checks the status of all members every three minutes. It stays silent normally. It posts a numbered reminder only when everyone is stuck in waiting while the task is unfinished, or when a message has been missed. The scheduled check is removed automatically after the task ends, and the monitor sleeps.
A separate, non-speaking narrator watches the board, structures progress into data, and renders the overview view in the Swarm UI.
2.5 Workspace isolation
Read-only analysis and verification members share the main workspace by default, using inherit. Members that need to edit code or run builds receive an independent working copy through workspace:"share", which shares the underlying repository in a manner comparable to a git worktree; alternatively, branch creates an independent clone. Each side commits, and changes are merged back to the main branch.
Killing a member with kill removes its corresponding workspace, so changes must be merged before the member is retired. New members start cold and cannot see the main conversation history. When a debug task splits into two tracks, the coordinator can use fork to copy the files and reasoning history already read by a specified member, avoiding a fresh investigation.
2.6 Models and quota
By default every member uses Gemini 4 Neon, matching the main session. A prompt can name a different model for the verifier to run a cross-check, and members may spawn helpers for subtasks. If a member runs out of quota mid-task, it does not need to be destroyed and recreated. After it settles into waiting, the coordinator swaps in a model that still has quota, and the member resumes with its full context intact.
The official November 18 demonstration paired /swarm with Neon to build a two-player level game inside the built-in browser. The example shown was NEONPUTT '84, a 3D synthwave mini-golf title, with Board 8 and Members 8; three members were active and four stood by.
A trial brief from the materials asks for a two-player neon pinball battle game built from an empty directory: three progressively difficult levels, glowing trails, synthesized impact sounds, and a real-time player-versus-AI mode. Rendering, physics collision and AI opponent logic, and automated tests are assigned to separate members in parallel, followed by an independent verifier that confirms no errors and correct collision detection before delivery.
3. SSH: Connecting to a Remote Linux Host
3.1 When SSH applies
Large-project builds, Docker containers, GPU training environments, and production logs typically live on remote Linux servers. In Antigravity, the SSH path keeps the workflow on that host instead of synchronizing files or switching terminals by hand.
After upgrading the agy App to v2.33.0 or later, open the project creation entry beside Projects in the left sidebar and choose SSH Host. Alternatively, press Cmd + Shift + P on macOS or Ctrl + Shift + P on Windows and Linux, then search for Connect to SSH Host. Each remote server receives its own window.
3.2 Where the execution runs
Once connected, agy uses the local OpenSSH client to deploy the remote service into the host's ~/.antigravity-hub-server/ directory. Agent data is stored under ~/.gemini/. Project files, Git worktrees, terminal processes, and all Agent calls run directly on the remote host; the local desktop client renders the interaction interface only.
The application distinguishes three remote modes, and the key difference is the execution location:
- Connect over SSH: execution runs on your own remote Linux host. The entry point is the local agy App, or an
agyCLI installed on the host terminal. This path suits borrowing remote compute machines, GPU servers, or test servers for development and troubleshooting. - Remote Control: execution still runs on your own local computer or server. The entry point is a browser on any device at antigravity.google.com. It operates local directories and uncommitted Git worktrees, so it fits reviewing progress off-site or approving plans remotely.
- Remote Agents: execution runs in a Google-managed cloud-isolated environment. A GitHub repository is mounted or files are uploaded, and long-running tasks proceed there. The local computer can sleep, or the session can move to a phone, while the task continues.
3.3 SSH prerequisites
The remote host must be 64-bit Linux, either x86_64 or arm64. Common Ubuntu, Debian, and RHEL setups are supported. Slim distributions such as Alpine are not, and macOS and Windows hosts are not supported either.
The target machine and any intermediate jump host (ProxyJump) must allow SSH port forwarding. The host must reach HTTPS endpoints, and the current user's $HOME directory must have read, write, and execute permissions.
The recorded demonstration connected to a gpu-devbox. The task profiled the attention kernel on an H100 and fused the softmax pass. The Triton kernel benchmark came out 1.84× faster, 32 GPU tests passed remotely with all passed, and p95 latency dropped by 45%. The test run was pytest tests/cuda -q, with 32 passed in 1.42s on an NVIDIA H100 80GB HBM3.
A read-only inspection prompt can validate remote permissions without touching production configuration. It asks for disk usage, memory state, running Docker containers, and the highest-resource services or abnormal restart logs from the last 24 hours, with each finding backed by the command used as evidence.
4. /run-workflow: Dynamic Orchestration Scripts
4.1 The boundary with /swarm
/run-workflow was introduced in v2.32.0. It suits tasks where the path is fixed: scanning a list of files one by one, or aggregating results in staged phases. Natural-language prompts alone struggle to guarantee that no item is missed and that the output format stays consistent.
The command boundary is clear. If the execution path is fixed, batch dispatch follows a file list, and aggregate structures must be validated, use /run-workflow. If task boundaries are still open, multiple roles must write against each other's interfaces, and rounds of rework and verification are expected, use /swarm.
4.2 How the script runs
After /run-workflow and a task description, Gemini 4 Neon writes a Python orchestration script that supports top-level await. The script fixes the execution order, concurrency strategy, and data format. The Harness then runs the script in an independent python3 process.
The underlying primitives shown in the materials are phase, agent, parallel, and stateful multi-turn calls. A short example:
4.3 Four operating rules
First, results must conform to the agreed JSON Schema. Every Agent spawned by the script runs in an isolated session and must call the built-in finish tool to submit its result. The Harness validates against the JSON Schema; a wrong format or a missing finish call aborts the run. The value returned to the script is already a parsed array, boolean, or dictionary, so fragile regex extraction from natural language is unnecessary.
Second, stateful agents can be reused, and the run stops fast on failure. A plain await agent(...) opens a single session. Assigning the reviewer to a variable and calling it across rounds keeps the same reviewer's context: list bugs first, fix in parallel in the middle, then verify each item at the end. Independent tasks go to parallel(); tasks with dependencies go to pipeline() in serial order. parallel() uses fast-fail behavior: if one branch fails, the remaining running branches are cancelled immediately instead of continuing to consume quota.
Third, cost can be tiered, and the script can call tools directly. High-frequency scans inside a loop can set the model parameter to flash or flash_lite; complex summaries stay on the main model. Parallel code edits still support workspace="share" or branch isolation. When a step only needs to read a file or run a deterministic command, the script can call call_tool() directly, without spending model reasoning rounds. A permission denial throws an exception marked .denied, so the script can skip that step as needed.
Fourth, earlier history can be reviewed, and scripts can be saved for reuse. The built-in trajectory() reads steps from the session before the workflow started; an earlier failed run_command error, for example, can be handed to a debugging Agent instead of rerunning an expensive build. A working orchestration script can be saved alongside workflow.json, with Args used for parameter validation and repeated later.
The repository review example in the materials scanned 61 Java source files under agents/. A flash model checked each file for unclosed resources, swallowed exceptions, and hidden null-pointer risks in batch. The workflow script was saved as core_risk_audit.py. The result listed one high-risk item and eighteen medium-risk items; the high-risk case was AggregateWebCrawler.java at lines 191, 199, and 216, involving null checks and a catch block that logs and breaks without surfacing the exception.
5. /btw: Side Questions Without Main-Context Pollution
5.1 Why a side channel exists
Midway through a long task, inserting a question about a configuration option or a function call into the main conversation has two side effects. It interrupts the main task's rhythm, and it writes a one-off investigation permanently into the main history. That history raises the input token count in later rounds and can split the model's attention.
/btw is a bypass mechanism for this context pollution. The main task keeps running, and an independent Side Question tab opens in the right sidebar, matching the behavior of the /btw command in comparable coding agents.
5.2 What the side branch can do
The branch carries a snapshot of the main conversation's context so far. It receives read-only tool permissions: it can read files, search code, and run read-only commands to verify an answer. It does not edit workspace files by default, and a separate model can be assigned to the side question.
Selecting any text in the main conversation and choosing Ask /btw carries the selected content into the branch for follow-up.
5.3 Three ways to close a side branch
If the conclusion helps the main task, choose Insert into main conversation. Only the distilled result goes back to the main line; the investigation stays in the branch. If the lookup turns into an independent new requirement, choose Promote to Conversation to open a formal session. If it was only a temporary confirmation with no reuse, close it directly; the main conversation context is unaffected.
6. /grill-me: Aligning Requirements Before Code
6.1 The reversed interview order
Complex requirements often return for rework because hidden assumptions were left out of the prompt. /grill-me reverses the usual order. Instead of writing a long prompt to state requirements, Gemini 4 Neon acts as a thorough technical reviewer and asks the questions.
The work splits into two stages. After /grill-me, Neon first reads the codebase: the framework in use, where configuration lives, how routes are organized. Facts that can be found in the code are not asked of you.
It then raises the unresolved key divergences one at a time, each with a recommended option. Examples from the materials include whether cache breakdown uses a mutex lock or logical expiry, whether a Redis outage falls back to a local snapshot or allows direct pass-through, and how a failed data migration is rolled back. After this round, every ambiguous design decision is fixed before the first line of code is written.
6.2 Combining with /plan
The materials pair /plan with /grill-me in practice: read the code first, present recommended options, produce an implementation plan, then Proceed. The sample design covered a Redis hot cache for a mock job service. Degradation options included: a recommended local second-level cache fallback with rate-limited origin access; a rate-limited origin database route; a static snapshot fallback; and fast failure.
The resulting implementation plan covers multi-level cache (local L2 cache plus Redis), hotspot detection and anti-breakdown through logical expiry and async rebuild, cache consistency updates, and the confirmed degradation strategy. The plan document is implementation_plan.md. The session stays design-only and does not modify workspace code.
Three boundary points are worth checking during approval: the L1 local snapshot default TTL of five minutes and whether it should shorten for offline or full states; the origin quota token bucket, divided by database capacity QPS across instance count, returning 503 under limit; and the target language framework and Redis deployment form, whether single instance, sentinel, or cluster, once coding begins.
7. /generative_ui: Sandboxed Interactive Artifacts
Plain text and static Mermaid diagrams struggle to explain state transitions, cache eviction, or concurrency scheduling. /generative_ui produces a single-file, self-contained HTML interactive component inside a restricted sandbox iframe.
A content security policy blocks external CDN scripts; only built-in whitelisted styles and scripts are allowed, so the component does not break when an external resource fails. The host container injects a set of semantic theme CSS variables and listens for theme toggle events, so the component's colors follow the light or dark mode of the agy interface automatically.
Placement follows a height rule. Flowcharts and state diagrams under 450px height embed directly in the chat bubble. Taller dashboards, multi-tab panels, and interaction prototypes open full-screen in the right sidebar, instead of being squeezed into a bubble with scrollbars. Buttons, switches, and sliders run inline JavaScript inside the sandbox; any click does not send a new message to the model and consumes no extra tokens. A useful component can be exported as a standalone HTML file through Export Artifact in the top-right menu, for documentation or sharing slides.
The KV Cache demo in the materials shows a reused prefix of 252 tokens (88.7%) against a recomputed suffix of 32 tokens (11.3%), totaling 284 tokens. The prefix covers System (120), User #1 (36), and Assistant #1 (96); User #2's 32 tokens are recomputed. A second demo reports 2,980 total input tokens with 2,600 reused, an 87.2% prefix hit rate across four segments: System 1,200, Tools 960, first-round conversation 440, and the recomputed second-round segment 380.
8. Assembling the Commands Across Project Stages
The commands are most effective when chained by engineering stage, together with /boost and /learn.
Before requirements are settled, /plan /grill-me reads the codebase, works through architecture divergences one by one, and delivers an implementation plan that passes review before code changes start.
In the execution phase, choose the command by task shape. Multi-module parallel development with independent verification goes to /swarm. Fixed steps with file-list batch dispatch and validated return structures go to /run-workflow. Tasks that need remote Linux compute, a Docker cluster, or production logs run through the native SSH window. For deep concurrency races, complex algorithm optimization, or bugs that resist repeated localization, the paid tier can add /boost for multi-perspective deep reasoning and cross-validation.
Temporary configuration lookups and call-relationship checks during a task go through the read-only /btw side branch; only the useful conclusion returns to the main line, keeping the main session context clean. State transitions, cache hit rates, or load-test figures that need visual review are rendered through a /generative_ui sandbox panel.
Once a complex environment setup works, or a recurring Agent coding habit has been corrected, /learn saves those project constraints and personal preferences. New sessions follow them automatically, without restating them each time.
9. Selection Summary and Limits
| Command | Primary use | Execution shape |
|---|---|---|
/swarm | Parallel multi-agent work with verification | Coordinator, workers, verifier, monitor, narrator; board-based handoff |
/run-workflow | Fixed-path batch scans and staged aggregation | Python script in an isolated python3 process; schema-validated returns |
| SSH Host | Remote Linux compute, Docker, GPU, production logs | Remote host execution; local client renders UI |
/btw | Temporary read-only lookup without main-context pollution | Side Question tab with a context snapshot |
/grill-me | Requirements alignment before coding | Interview with recommended options; implementation plan |
/generative_ui | Interactive visual explanation | Sandboxed self-contained HTML component |
/boost | Deep reasoning on hard cases | Multi-perspective review in the paid tier |
/learn | Persist project constraints and preferences | Carried into future sessions |
The model lineup visible in the practice materials includes Gemini 4 Neon, Gemini 4 Carbon Medium, Argon Medium, Hydrogen Medium, Orchestrator variants for Neon, Carbon, and Argon, Gemini 3.8 Flash, Claude Opus 5.5 Medium, Claude Sonnet 5.5 Medium, and GPT-OSS 120B Medium. Availability and quota behavior for each should be checked against the current official plan.
For teams that route several model endpoints through one control layer, an API gateway such as 4sapi can unify key management, rate limits, and routing in front of upstream providers, so application-side configuration remains stable as model lineups change.




