Google Antigravity Blog: Introducing Custom Agents
Custom agents are Markdown files with YAML frontmatter that can run as main agents or subagents, with scoped command policies and nested lifecycle hooks.
- Custom agents are defined as Markdown files with YAML frontmatter and stored under .agents/agents/ or ~/.gemini/config/agents/.
- Project-specific agents committed to a repository automatically become available to every teammate who checks it out.
- An agent can run as a main agent selected in the GUI or via jetski --agent, or be delegated to as a subagent.
- commandExecutionPolicy: auto lets agents run standard test and compile commands autonomously while high-risk commands stay gated.
- Lifecycle hooks can run setup scripts before invocation and verify the local environment before specific tool use.
Developers using Antigravity can now define reusable specialized agents with scoped instructions, safety policies, and hooks, reducing context bloat and standardizing team workflows.
Sources
Read this as text
Back to the AI news