Cheat Sheet

Antigravity Cheat Sheet: Shortcuts & Commands (2026)

Last Updated: July 10, 2026

Updated July 2026 — now includes the agy CLI (Antigravity 2.x terminal agent)

This is the only Antigravity cheat sheet you need in 2026. Whether you are switching between agent and editor modes, firing off @workspace context commands, triggering MCP servers, or wiring up a one-keystroke git commit, every shortcut and command is organized below — with a full scannable quick-reference table at the bottom.

Get the latest on AI, LLMs & developer tools

New MCP servers, model updates, and guides like this one — delivered weekly.

Antigravity is built on the VS Code engine, so standard VS Code shortcuts mostly carry over. The sections below highlight what is unique to Antigravity — the agent interaction model, @ context references, / workflow triggers, and MCP server commands — alongside the core editor shortcuts you will use every day.

1. Essential Keyboard Shortcuts

These are the shortcuts that define the Antigravity workflow. Learn these first — they cover 80% of your daily interactions with the IDE.

ActionMacWindows / Linux
Open / focus Agent panelCmd+Shift+ICtrl+Shift+I
Toggle Agent panelCmd+LCtrl+L
Toggle Editor ↔ Agent ManagerCmd+ECtrl+E
Inline AI completion / natural-language commandCmd+ICtrl+I
Start a new agent conversation threadCmd+Shift+LCtrl+Shift+L
Command PaletteCmd+Shift+PCtrl+Shift+P
Quick Open fileCmd+PCtrl+P
Open SettingsCmd+,Ctrl+,
Open Theme Picker (live preview)Cmd+K Cmd+TCtrl+K Ctrl+T
Pro tip: After pressing Cmd+L to focus the Agent panel, you can immediately start typing your prompt — no click required. Send terminal output straight to the agent the same way: select the output, then press Cmd+L.

2. Agent Commands

Antigravity's agent understands @ context references typed directly in the chat input. They tell the agent exactly which resources to include before answering — no copy-pasting code snippets needed.

CommandWhat it does
@workspaceIncludes the entire project workspace as context
@fileReference a specific file by name or path
@terminalSend the current terminal output to the agent
@problemsAttach the Problems panel output (errors & warnings)
@selectionPass the currently selected editor text
@codebaseSearch across all indexed files in the project
@SupabaseConnect to a configured Supabase MCP server
@CloudflareConnect to a configured Cloudflare MCP server
@FirebaseConnect to a configured Firebase MCP server
@LinearReference project tickets via Linear MCP
@VercelPull deployment logs via Vercel MCP

The agent also understands two conversation modes. Select Planning for complex multi-step tasks where you want to review a plan before execution. Use Fast for quick edits and single-step operations.

For a deep-dive on setting up User Rules that shape every agent response, see the User Rules guide.

3. MCP Quick Commands

Model Context Protocol (MCP) servers give the agent real-time access to your databases, deployment platforms, and external APIs. Once configured in mcp_config.json, you activate them with the @ServerName syntax above or directly in chat. Here are the most common quick-install npx commands:

Supabase MCP

npx @modelcontextprotocol/server-postgres [connection-string]

Firebase MCP

npx firebase-tools@latest mcp --only firestore,auth,storage

n8n MCP

npx n8n-mcp

Playwright MCP

npx @playwright/mcp@latest

Filesystem MCP

npx @modelcontextprotocol/server-filesystem [path]

GitHub MCP

npx @modelcontextprotocol/server-github

Access the MCP configuration at any time via the "..." (More Options) menu inside the Agent panel → Manage MCP Servers. For a full walkthrough, see the Antigravity MCP tutorial.

4. Terminal Shortcuts

Antigravity includes a built-in terminal with AI-aware features. These shortcuts keep you in flow without reaching for your mouse.

ActionMacWindows / Linux
Toggle integrated terminal panelCtrl+`Ctrl+`
Create a new terminal instanceCmd+Shift+`Ctrl+Shift+`
Inline AI command — describe what to run in plain EnglishCmd+I (in terminal)Ctrl+I (in terminal)
Send selected terminal output to the agentSelect + Cmd+LSelect + Ctrl+L
Clear terminal screenCmd+K (in terminal)Ctrl+K (in terminal)
Interrupt / kill running processCtrl+CCtrl+C
Terminal Auto-execution: In Settings, search for terminal.autoExecution to choose between Always proceed (agent runs commands automatically) and Request review (agent pauses for your approval). Start with Request review until you trust your workflow.

These are your core editor-navigation shortcuts. As a VS Code-compatible IDE, Antigravity supports all standard VS Code navigation bindings.

ActionMacWindows / Linux
Quick Open — jump to any file instantlyCmd+PCtrl+P
Command Palette — run any IDE commandCmd+Shift+PCtrl+Shift+P
Focus File ExplorerCmd+Shift+ECtrl+Shift+E
Global search across all filesCmd+Shift+FCtrl+Shift+F
Toggle primary sidebarCmd+BCtrl+B
Open Extensions panelCmd+Shift+XCtrl+Shift+X
Split editor (horizontal)Cmd+\\Ctrl+\\
Go to line numberCmd+GCtrl+G
Go to definitionF12F12
Go to definition (mouse)Cmd+ClickCtrl+Click
Find all referencesShift+F12Shift+F12
Cycle through open editor tabsCmd+TabCtrl+Tab

6. Theme & Appearance Shortcuts

Antigravity's VS Code architecture means full theme compatibility. These shortcuts get you in and out of appearance settings without opening any menus. For a full theme installation walkthrough, see the Antigravity theme guide.

ActionMacWindows / Linux
Open Color Theme picker (live preview)Cmd+K Cmd+TCtrl+K Ctrl+T
Open Settings (search for theme options)Cmd+,Ctrl+,
Theme picker via Command PaletteCmd+Shift+P → Color ThemeCtrl+Shift+P → Color Theme
Change file icon themeCmd+Shift+P → File Icon ThemeCtrl+Shift+P → File Icon Theme
Change UI icon themeCmd+Shift+P → Product Icon ThemeCtrl+Shift+P → Product Icon Theme
Zoom in / zoom out the interfaceCmd+= / Cmd+-Ctrl+= / Ctrl+-
Reset zoom to defaultCmd+0Ctrl+0

Fastest Theme Shortcut

Cmd+K  then  Cmd+T

Windows / Linux: Ctrl+K then Ctrl+T — live previews as you arrow through the list

7. Git Shortcuts

Antigravity integrates tightly with Git. The agent can auto-generate commit messages and you can wire up one-keystroke stage-commit-push workflows. Here are the built-in shortcuts:

ActionMacWindows / Linux
Open Source Control panelCmd+Shift+GCtrl+Shift+G
Commit staged changesCmd+Enter (in SCM panel)Ctrl+Enter
Stage all changesCmd+Shift+P → Git: Stage AllCtrl+Shift+P → Git: Stage All
Pull + push (sync with remote)Cmd+Shift+P → Git: SyncCtrl+Shift+P → Git: Sync
Pull from remoteCmd+Shift+P → Git: PullCtrl+Shift+P → Git: Pull
Push to remoteCmd+Shift+P → Git: PushCtrl+Shift+P → Git: Push
AI Commit Messages: In the Source Control panel, click the sparkle icon (✨) next to the commit message input to let Antigravity's Gemini model auto-generate a conventional commit message based on your staged diff. You can also set Cmd+Enter as a custom keybinding to trigger stage + AI-commit + sync in one step via your keybindings.json.

8. Workflow Shortcuts

Workflows are saved prompt templates you invoke with a / prefix directly in the agent chat. They compress multi-step instructions into a single command. For the full library, see the Workflows guide.

Slash CommandWhat it triggers
/generate-unit-testsGenerate unit tests for the current file or selection
/fix-errorsSend all Problems panel errors to the agent for batch fixing
/explainExplain the selected code block in plain English
/refactorRefactor the selection for readability and performance
/documentAdd JSDoc / docstring comments to selected functions
/deployTrigger a custom deployment workflow (if configured)
/<your-workflow>Any custom workflow saved in your Antigravity workspace

9. agy CLI (Antigravity 2.x Terminal Agent)

Everything above lives in the Antigravity IDE. But Google sunset the standalone Gemini CLI for individuals on June 18, 2026, and the terminal-first workflow now runs through agy — the Antigravity CLI that ships with Antigravity 2.x. It is the same agent that powers the IDE, driven from your shell for scripts, CI jobs, and headless one-shots. If you carried Gemini CLI muscle memory, run agy plugin import gemini once to migrate your config and MCP servers across.

Model availability: agy routes only to Google-hosted models — Gemini 3.5 Flash, Gemini 3.1 Pro, Gemini 3 Flash, Claude Sonnet 4.6, Claude Opus 4.6, and gpt-oss-120b (via Vertex AI Model Garden). There is no BYOK or local-model support; switch between the hosted options with the --model flag or the in-session /model command.

Shell commands & flags

Run these from your terminal to start, script, or manage agy sessions.

CommandWhat it does
agyStart an interactive TUI session in the current directory
agy "prompt"Start a session seeded with an opening prompt
agy -p "prompt"Non-interactive one-shot (--print): run the prompt, print the result, exit — for scripts and CI
agy -m <model>Pick the hosted model for this run (--model), e.g. a Gemini 3 or Claude 4.6 option
agy -cResume your most recent conversation (--continue)
agy --conversation <id>Resume a specific conversation by ID
agy --dangerously-skip-permissionsAuto-approve every tool call (YOLO mode) — trusted or sandboxed repos only
agy plugin import geminiMigrate settings and MCP servers from the sunset Gemini CLI
agy updateUpdate agy to the latest release

In-session slash commands

Type / inside a running agy session to open the command menu. These exist only inside the TUI, not on the shell wrapper.

Slash CommandWhat it does
/modelSwitch the hosted model mid-session
/permissionsChange the permission preset (review each call vs. always-proceed)
/planEnter plan mode — replaced the legacy /planning; /fast was removed in v1.1.0
/agentsReview and manage subagents
/mcpManage MCP servers for the session
/skillsBrowse loaded Agent Skills
/resumeLoad a previous conversation thread
/clearReset the conversation context
Two safety notes: Inside a session, cycle the execution mode (default → accept-edits → plan) with Shift+Tab. And be careful with -p: in non-interactive mode agy auto-approves tool calls — including file writes — so never pipe untrusted input into an agy -p run.

10. Quick Reference Table — All Shortcuts

Every shortcut from this cheat sheet in a single scannable table. Bookmark this section or print it for your desk.

CategoryActionMacWin / Linux
AgentOpen / focus Agent panelCmd+Shift+ICtrl+Shift+I
AgentToggle Agent panelCmd+LCtrl+L
AgentToggle Editor ↔ Agent ManagerCmd+ECtrl+E
AgentInline AI completionCmd+ICtrl+I
AgentNew conversation threadCmd+Shift+LCtrl+Shift+L
TerminalToggle terminal panelCtrl+`Ctrl+`
TerminalNew terminal instanceCmd+Shift+`Ctrl+Shift+`
TerminalInline AI command (in terminal)Cmd+ICtrl+I
TerminalSend output to agentSelect+Cmd+LSelect+Ctrl+L
TerminalClear terminalCmd+KCtrl+K
NavigationQuick Open fileCmd+PCtrl+P
NavigationCommand PaletteCmd+Shift+PCtrl+Shift+P
NavigationFile ExplorerCmd+Shift+ECtrl+Shift+E
NavigationGlobal searchCmd+Shift+FCtrl+Shift+F
NavigationToggle sidebarCmd+BCtrl+B
NavigationGo to definitionF12F12
NavigationFind all referencesShift+F12Shift+F12
NavigationGo to lineCmd+GCtrl+G
NavigationSplit editorCmd+\Ctrl+\
ThemeOpen Theme PickerCmd+K Cmd+TCtrl+K Ctrl+T
ThemeOpen SettingsCmd+,Ctrl+,
ThemeZoom inCmd+=Ctrl+=
ThemeZoom outCmd+-Ctrl+-
ThemeReset zoomCmd+0Ctrl+0
GitSource Control panelCmd+Shift+GCtrl+Shift+G
GitCommit staged changesCmd+Enter (SCM)Ctrl+Enter (SCM)
GitStage all changesCmd+Shift+P → Stage AllCtrl+Shift+P → Stage All
GitSync (pull + push)Cmd+Shift+P → Git: SyncCtrl+Shift+P → Sync

Go Deeper With Antigravity

Themes

Install and customize color themes.

User Rules

Shape every agent response with rules.

Workflows

Saved prompts that run in one command.

MCP Servers

Connect databases and APIs to your agent.

Related Guides