Google Antigravity adds file-based custom agents
Google Antigravity’s August 12, 2026 update adds Markdown/YAML custom agents with configurable models, tools, permissions, skills, MCP servers, hooks, and main-agent or subagent roles.
Editorial Team
The Authority AI Tools editorial team maintains this directory using vendor documentation, dated source checks, product changelogs, and clearly identified hands-on observations where available.
Google Antigravity has introduced Custom Agents, file-based agent definitions designed for specialized roles and repeatable team workflows.
Agentic development platform powered by Gemini for autonomous coding
Markdown files define the agent
A custom agent is a single Markdown file with a YAML frontmatter header. The frontmatter can specify the agent’s name, description, model, tools, permissions, relevant skills, MCP servers, hooks, and other parts of the agent loop. The Markdown body becomes the agent’s system prompt.
Project-local agents live under .agents/agents/. User-global agents live under ~/.gemini/config/agents/. Because project agents are ordinary files, a team can commit them to a repository so teammates receive the same workflow assistant when they check out the project.
Main-agent and subagent roles
Antigravity supports execution symmetry for custom agents. A definition can be marked with mainAgent: true so it can be selected directly in the Antigravity 2.0 GUI or launched from the CLI, for example with:
agy --agent dependency-modernizer
The same definition can be marked with subagent: true so a coordinator agent can call it as a specialized worker. This gives teams a way to keep a stable role’s model, tools, permissions, and instructions in version control while still using it either directly or inside a larger agent workflow.
Command-execution policies and hooks
Custom agents can use permission modes such as acceptEdits and bypassPermissions, plus a command-execution policy. With commandExecutionPolicy: auto, standard test and compilation commands can run autonomously in the background, while higher-risk actions such as deleting files remain gated for manual approval.
The custom-agent format also supports lifecycle hooks. A PreInvocation hook can prepare the environment before the agent starts, while a PreToolUse hook can run a verification script when the agent is about to call a selected tool such as run_command.
Availability and relationship to skills
Google says Custom Agents have first-class support in Antigravity 2.0 and the Antigravity CLI, with IDE support described as coming shortly. Custom Agents do not replace skills or dynamic subagents: skills add progressive, task-specific context, while dynamic subagents let a main agent delegate with a prompt. A Custom Agent adds a reusable specialization with its own model, permissions, tools, and supporting integrations.
Why this matters for teams
The practical shift is from one-off prompts to versioned agent roles. A team can define a dependency upgrader, test verifier, release assistant, or security reviewer once, review the Markdown in code review, and make that same configuration available to every teammate and to other agents that call it.
Sources
- Antigravity — “Introducing Custom Agents”: https://antigravity.google/blog/introducing-custom-agents
- Google Antigravity on X — official announcement (August 12, 2026): https://x.com/antigravity/status/2087611597896224961
- Google Antigravity — official account: https://x.com/antigravity
Tools Mentioned in This Article
Free Resource
2026 AI Coding Tools Comparison Chart
Side-by-side comparison of features, pricing, and capabilities for every major AI coding tool.
No spam, unsubscribe anytime.
Frequently Asked Questions
What is Google Antigravity adds file-based custom agents?
Related Articles
Claude Code 2.1.257–2.1.260 adds managed MCP and safer headless controls
Claude Code’s September 2026 releases add Fable 5.1 support, organization-managed MCP servers, unattended permission controls, a diff panel, and fixes for long-running sessions.
Read more →Product UpdatesWarp Factories adds benchmarks built from your coding tasks
Warp’s September 3, 2026 Factory Benchmarks release lets teams replay real coding tasks across models, harnesses, and scorers to compare quality, cost, and correctness.
Read more →Product UpdatesOpenAI releases GPT-6 Astra for end-to-end agent work
OpenAI’s September 3, 2026 API changelog introduces GPT-6 Astra for reasoning, coding, computer use, research, and document creation, with new controls for long-running Responses API work.
Read more →