Try β€œClaude Code skills”, β€œMCP servers for Cursor” or β€œCodex” Β· Esc to close

Setting Up Google Antigravity: Rules, Skills and MCP

By Kelvin Β· 01 October 2026 Β· Updated 01 Oct 2026 Β· 8 min read

google-antigravity setup-guide mcp agent-skills subagents

Setting Up Google Antigravity: Rules, Skills and MCP
Photo by Daniil Komov on Pexels

Setting Up Google Antigravity: Rules, Skills and MCP

Laptop showing code in a dimly lit room, representing an agentic coding session
Photo by Daniil Komov on Pexels

Google Antigravity ships in three forms β€” a desktop app (Antigravity 2.0), a CLI, and IDE extensions β€” and all three read the same project-level configuration. That configuration is spread across a handful of standards this directory tracks everywhere: an AGENTS.md/GEMINI.md rules file, SKILL.md packs, custom subagents, MCP servers, lifecycle hooks and plugins. If you've set up Claude Code or Cursor before, the shape will feel familiar; the file paths and a few defaults are different, and this walkthrough sticks to what Antigravity's own docs document rather than guessing.

Installing the CLI

Antigravity publishes install scripts for macOS, Linux and Windows. The documented commands are:

# macOS / Linux
curl -fsSL https://antigravity.google/cli/install.sh | bash
# Windows PowerShell
irm https://antigravity.google/cli/install.ps1 | iex

The installer places an agy binary in a platform-specific directory (~/.local/bin/agy on macOS and Linux). Supported platforms are macOS 12 (Monterey) or later on Apple Silicon or Intel, Windows 10 64-bit or later on x64 or ARM64, and Linux x64/ARM64 with a reasonably current glibc. The desktop app and IDE extensions are separate downloads from antigravity.google/download if you'd rather work in a GUI than a terminal.

Once installed, the core loop is: create a project by pointing Antigravity at a local folder or a Git repository, then spawn an agent by typing a goal into the chat interface. You choose between Local mode, where the agent edits files directly, and New worktree mode, which runs the agent in an isolated Git worktree so you can review a diff before merging. If you've read our piece on git worktrees for parallel agents, this will look like the same idea built into the product rather than something you wire up yourself.

Rules: AGENTS.md and GEMINI.md

Antigravity treats AGENTS.md and GEMINI.md as interchangeable, frontmatter-free instruction files β€” see our AGENTS.md explainer for why that convention exists in the first place. You can drop either filename, or a .agents/rules/ directory, into any subdirectory of a project, and Antigravity discovers and applies them automatically:

  • Workspace scope: AGENTS.md, GEMINI.md, or .agents/rules/*.md anywhere under the project root
  • Global scope: ~/.gemini/AGENTS.md or ~/.gemini/config/AGENTS.md, applied across every project

Because these files carry no YAML frontmatter, their entire contents are kept "continuously active" in context β€” there's no conditional loading the way there is for skills. That makes them the right place for house style, testing conventions, or anything the agent should always know, and the wrong place for a large reference doc you only need occasionally (that's what skills are for).

Skills: packaging a workflow once

A skill is a folder with a SKILL.md file plus whatever scripts, examples or templates it needs:

my-skill/
β”œβ”€β”€ SKILL.md       # required: instructions and metadata
β”œβ”€β”€ scripts/       # optional: executable helpers
β”œβ”€β”€ examples/      # optional: reference implementations
└── resources/     # optional: templates, schemas, data files

SKILL.md opens with YAML frontmatter:

---
name: code-review
description: Reviews code changes for bugs, style issues, and best practices. Use when reviewing pull requests or checking code quality.
---

# Code Review Skill

[Instructions follow here.]

The docs are specific about the description field: write it in the third person and include the keywords an agent would need to recognize when the skill applies, since that's the only thing the agent sees before deciding to load the full file β€” this is the progressive disclosure pattern Agent Skills were built around. Drop skill folders into <workspace-root>/.agents/skills/<skill-folder>/ for a single project, or into ~/.gemini/config/skills/<skill-folder>/ (Antigravity 2.0 and the IDE extensions) or ~/.gemini/antigravity-cli/skills/<skill-folder>/ (CLI) to make them available everywhere. Because this is the open SKILL.md format rather than an Antigravity-specific one, skills written for Antigravity are portable to any app that reads the same convention β€” browse what's already in the directory before writing your own. Archify is one example built for exactly this kind of cross-app portability:

Archify 🧩 SkillOpen source

Validated, interactive architecture, sequence and data-flow diagrams compiled from typed JSON

β˜… 76k Β· +4.5k this week

Developer typing on a laptop in front of multiple monitors in an office
Photo by Christina Morillo on Pexels

Custom subagents

Where a skill is a reusable set of instructions the main agent follows itself, a subagent is a separate session with its own role, tools and model tier that the main agent can delegate to mid-task. Antigravity discovers subagent definitions at .agents/agents/<name>.md (or .agents/agents/<name>/agent.md) for a single project, and at ~/.gemini/config/agents/<name>.md globally. Each file is Markdown with YAML frontmatter:

---
name: security-auditor
description: Inspects source code for security vulnerabilities, memory leaks, and anti-patterns. Use before merging changes that touch auth, input parsing, or dependencies.
subagent: true
tools: [view_file, grep_search]
model: pro
commandExecutionPolicy: sandbox
---

You are an expert security auditor and code reviewer. Your primary
objective is to inspect source code for security vulnerabilities,
memory leaks, and anti-patterns.

Everything after the frontmatter becomes the subagent's system prompt. The subagent: true flag is what makes it invokable, tools scopes down what it can touch, model lets you assign a cheaper or more capable tier than the parent agent is using, and commandExecutionPolicy: sandbox keeps it from running arbitrary shell commands outside a sandbox. The parent agent calls invoke_subagent to spawn one of these as a concurrent session β€” useful for the same reason subagents are useful in Claude Code: a focused reviewer with a narrower toolset catches things a single long-running agent misses because it isn't juggling the whole task at once.

MCP servers

MCP configuration lives in a JSON file, either globally at ~/.gemini/config/mcp_config.json or per-workspace at .agents/mcp_config.json, both under a single mcpServers key:

{
  "mcpServers": {
    "local-server": {
      "command": "node",
      "args": ["/usr/local/bin/server.js"],
      "env": {
        "VARIABLE": "value"
      }
    },
    "remote-server": {
      "serverUrl": "https://api.example.com/mcp/",
      "headers": {
        "Authorization": "Bearer TOKEN"
      }
    }
  }
}

Each entry needs either a command (for a local, stdio-based server) or a serverUrl (for a remote one); everything else β€” args, env, cwd, headers, authProviderType, oauth, disabled, disabledTools β€” is optional and lets you scope what a given server can do. If you'd rather not hand-edit JSON, typing /mcp in the Antigravity CLI opens an interactive MCP Manager overlay for adding and toggling servers. For a deeper look at the authentication side of the serverUrl + headers/oauth pattern, see our remote MCP + OAuth explainer; for servers to actually add, the directory's MCP server list is sorted by category. Context7 for up-to-date library docs and Playwright MCP for browser automation are both common first additions; GitHub MCP Server covers issues, PRs and repo search if your workflow lives on GitHub.

Context7 πŸ”Œ MCP serverFreemium

Up-to-date, version-specific library documentation for your coding agent

β˜… 63k Β· +180 this week

Playwright MCP πŸ”Œ MCP serverFree

Microsoft's MCP server for browser automation with Playwright

β˜… 38k Β· +196 this week

GitHub MCP Server πŸ”Œ MCP serverFree

GitHub's official MCP server: issues, pull requests, code, Actions and security alerts

β˜… 33k Β· +132 this week

Developer working across two laptops and a desktop monitor
Photo by olia danilevich on Pexels

Hooks and plugins

Antigravity's lifecycle hooks fire at five points in an agent's run: PreToolUse and PostToolUse bracket every tool call, PreInvocation and PostInvocation bracket every model call, and Stop fires when execution ends. They're defined in a hooks.json β€” workspace-level at .agents/hooks.json, global at ~/.gemini/config/hooks.json, or bundled inside a plugin:

{
  "my-linter-hook": {
    "PostToolUse": [
      {
        "matcher": "run_command",
        "hooks": [
          {
            "type": "command",
            "command": "./scripts/lint.sh",
            "timeout": 10
          }
        ]
      }
    ]
  }
}

That example runs a lint script after every shell command the agent executes β€” the same pattern our hooks explainer covers for other apps, just with Antigravity's own matcher and event names.

Plugins are the distribution unit for all of the above: a single installable package that can bundle skills, subagents, MCP servers, hooks and linting rules together. Install one by dropping its folder into .agents/plugins/ (workspace) or ~/.gemini/config/plugins/ (global), by running /plugin for an interactive manager inside a session, or from the command line with agy plugin install <path>, agy plugin list, agy plugin enable <name> and agy plugin disable <name>. The desktop app also has a Marketplace under the Customizations tab for browsing plugins without touching the filesystem at all.

Putting the pieces together

Here's how the five mechanisms divide the work, side by side:

MechanismWhere it livesAlways active?What it's for
Rules (AGENTS.md/GEMINI.md)Any directory, or ~/.gemini/ globallyYes β€” no frontmatter, always in contextHouse rules, conventions, standing instructions
Skills (SKILL.md).agents/skills/<name>/ or ~/.gemini/config/skills/No β€” loaded on demand by description matchA packaged, repeatable workflow with its own scripts/resources
Subagents.agents/agents/<name>.mdNo β€” invoked explicitly via invoke_subagentA delegated task with a narrower toolset or a different model tier
MCP serversmcp_config.json (global or workspace)Tools registered at startup, called on demandGiving the agent access to an external system or API
PluginsInstalled via /pluginVaries by pluginBundling any of the above for distribution

None of these are exclusive to Antigravity β€” AGENTS.md, SKILL.md and MCP are open conventions, which is why a skill or MCP server you set up here is likely to work unmodified in another agent that reads the same standard. The place to start is usually the smallest piece: one AGENTS.md with the two or three things you keep repeating to the agent, one MCP server for whatever external system you touch most, and skills only once you notice yourself writing the same multi-step instructions more than twice.

A reasonable first setup

For a typical project, a practical order to add things in:

  1. Install the CLI or desktop app and open your repository as a project.
  2. Write a short AGENTS.md at the project root β€” test commands, directory conventions, anything you don't want to repeat every session.
  3. Add one MCP server that matches your stack: a docs server like Context7 if you're pulling in unfamiliar libraries, a browser server like Playwright MCP if the agent needs to verify UI changes, or your issue tracker's server if planning work starts there.
  4. Turn your first repeated instruction into a skill once you notice yourself typing the same multi-step request twice β€” that's the signal it belongs in .agents/skills/ instead of your head.
  5. Reach for a subagent only when a task genuinely benefits from a second, narrower-scoped pass β€” a security review before merging, for instance β€” rather than as a default.

Check the ecosystem page to see which skills, subagents and MCP servers in the directory already declare Antigravity support, and the deals page if you're comparing it against other app builders on price before committing.

Mentioned in this post

Playwright MCP πŸ”Œ MCP serverFree

Microsoft's MCP server for browser automation with Playwright

β˜… 38k Β· +196 this week

Context7 πŸ”Œ MCP serverFreemium

Up-to-date, version-specific library documentation for your coding agent

β˜… 63k Β· +180 this week

GitHub MCP Server πŸ”Œ MCP serverFree

GitHub's official MCP server: issues, pull requests, code, Actions and security alerts

β˜… 33k Β· +132 this week

Archify 🧩 SkillOpen source

Validated, interactive architecture, sequence and data-flow diagrams compiled from typed JSON

β˜… 76k Β· +4.5k this week

More from the blog

02 Oct 2026 Β· 8 min read

A Vibe Coding Stack for a DevOps Engineer

Claude Code, a DevOps skill pack, a scanning layer, an agent dashboard, and three scoped MCP servers for errors, clusters and tickets.

devops claude-code mcp-servers

Building your vibe coding stack?

Browse 296 apps, skills, subagents and MCP servers, mapped to the apps they work with.

See the ecosystem map