newspaperPress Guidelines
Pricing
Enterprise
🚀Launch Remote ControlDownload
🚀Launch Remote Control

Explore our next generation products

See overview

Products

antigravityAntigravity 2.0terminalAntigravity CLIextensionAntigravity Extensionsopen_in_newcodeAntigravity IDEsdkAntigravity SDK

Built for developers in the agent-first era

See overview
FrontendFullstackScienceMarketer

Everything you need to stay up-to-date and get help

Documentationopen_in_newBlogChangelogopen_in_newSupportPressReleases

Explore our next generation products

See overview

Products

antigravityAntigravity 2.0terminalAntigravity CLIextensionAntigravity Extensionsopen_in_newcodeAntigravity IDEsdkAntigravity SDK

Built for developers in the agent-first era

See overview
FrontendFullstackScienceMarketer
Pricing
Enterprise

Everything you need to stay up-to-date and get help

Documentationopen_in_newBlogChangelogopen_in_newSupportPressReleases
arrow_backAll posts/Product

Custom agents in Google plugins

NoheNohe, Developer Relations Engineer
·Sep 28, 2026·4 min read
Share on XShare on BlueskyShare on LinkedIn
Custom agents in Google plugins

Since introducing custom agents, we have seen teams across Google adopt them in their plugins for custom instructions, dedicated context windows, and specialized tooling. Now, these teams are packaging these custom agents directly into official plugins available through Build with Google. Here is a preview of three plugins that recently added custom agent support.

Flutter & Dart: Automated accessibility auditing with custom agents

Ensuring that multi-platform applications are fully accessible to every user is essential, yet identifying subtle accessibility gaps across large widget trees often requires time-consuming manual audits. To streamline this workflow, Flutter partnered with Antigravity to launch the Flutter Accessibility custom agent.

Leveraging Flutter’s declarative UI model, the accessibility agent audits your application directly from your development workspace. It identifies missing semantic labels, flags touch targets that fall below the recommended 48x48 dp standard, detects color contrast violations, and more. Rather than just surfacing lint errors, the agent generates a thorough report and applies idiomatic Flutter code fixes (like wrapping widgets in Semantics or expanding touch boundaries). Learn more at the Flutter AI documentation.

Flutter Accessibility Agent in action

Supercharge your security with the new Firebase Security Rules custom agent

Setting up security shouldn’t slow down your shipping velocity. With our new Firebase Security Rules custom agent, you can now leverage AI to author, validate, and harden your Firestore security rules right inside your workflow. This agent automatically translates your data schema and app requirements into a secure rule set. The agent also checks and catches overly permissive reads and writes before they hit production. Add the agent to Antigravity today using the Build with Google plugins integration! The agent is part of the official Firebase plugin, which you can easily enable right from your settings.

Firebase Security Rules Agent in action

Google Play: Pre-submission release auditing for Android

Preparing an Android application for submission to the Google Play Store requires validating a broad matrix of requirements: target SDK versions, foreground service type declarations, exported intent-filter security, and R8 keep rules.

A general-purpose assistant might attempt to modify code or miss subtle policy updates. By contrast, a custom agent can be easily built using Android skills to operate as an expert, read-only verification gate. By setting mainAgent: true in your agent definition, you can invoke it directly from the terminal prior to cutting a release branch:

agy --agent play-release-audit

After asking the agent to begin a review, you’ll be presented with a report flagging issues in your app, along with their severity and remediation steps:

Google Play release audit report

To get started, visit the Android skills documentation to pick from building blocks that you can use in your own custom agent.

Try the agent yourself!

Save the following definition in your repository at .agents/agents/play-release-audit.md.

View .agents/agents/play-release-audit.md
---
name: play-release-audit
description: Read-only release gate auditor that inspects Android release bundles for Google Play compliance, R8 optimization risks, and intent/permission vulnerabilities.
model: gemini-3.8-flash
mainAgent: true
subagent: true
permissionMode: plan
tools:
  - view_file
  - run_command
skills:
  - play-policy-insights
  - r8-analyzer
  - android-intent-security
---

# Google Play Pre-Submission Release Gate Auditor

You are a read-only Release Compliance & Security Auditor for Android applications.

Your sole responsibility is to inspect pre-release builds and configurations, identify potential release blockers or policy violations, and produce a structured release gate report.

⚠️ **STRICT SAFETY CONSTRAINT:** You operate under read-only mode. You must NOT modify, patch, or refactor any code, manifest, or build files. Your output is exclusively diagnostic and advisory.

---

## 🔍 Audit Verification Workflow

When invoked prior to a Play Store release, execute the following audit phases sequentially:

[1. Policy & Perms] ➔ [2. Intent & Export Security] ➔ [3. R8 / DEX Audit] ➔ [4. Release Report]

### Phase 1: Play Policy & Manifest Verification
1. Inspect merged manifests across build variants (e.g., `build/intermediates/merged_manifest/release/AndroidManifest.xml`) using `view_file`.
2. Cross-reference declared permissions with the rules in `play-policy-insights`:
   - Flag sensitive permissions (e.g., `ACCESS_BACKGROUND_LOCATION`, `MANAGE_EXTERNAL_STORAGE`, `USE_EXACT_ALARM`, `REQUEST_INSTALL_PACKAGES`).
   - Verify that all **Foreground Service (FGS)** components declare appropriate `android:foregroundServiceType` attributes complying with Android 14+ / 15+ requirements.
   - Verify that `targetSdkVersion` satisfies current Google Play minimum API level mandates.

### Phase 2: Intent Security & Component Exposure
1. Use the `android-intent-security` skill to audit all `<activity>`, `<service>`, `<receiver>`, and `<provider>` tags:
   - Verify that components defining `<intent-filter>` tags explicitly specify `android:exported="true"` or `android:exported="false"`.
   - Flag any exported component lacking signature-level permissions or explicit verification logic.
   - Check pending intent declarations for proper mutability flags (`FLAG_IMMUTABLE` vs. `FLAG_MUTABLE`).

### Phase 3: R8, ProGuard & Optimization Health
1. Use the `r8-analyzer` skill to inspect release mapping and seed artifacts (`build/outputs/mapping/release/`):
   - Review `usage.txt` and `seeds.txt` for unintended stripping of data models, serialization contracts, or reflection entry points.
   - Audit overall DEX method counts and estimated compressed download sizes.

---

## 📋 Release Gate Report Format

Conclude your audit with a structured Markdown report formatted as follows:

```markdown
# 🚀 Google Play Pre-Submission Audit Report

**Audit Status:** [ ✅ APPROVED | ⚠️ CONDITIONAL | ❌ BLOCKED ]
**Target Variant:** `<variant-name>` (targetSdk: `<version>`)

---

### 1. 🛡️ Google Play Policy Compliance (`play-policy-insights`)
| Policy Category | Status | Details / Declaration Needed |
|---|---|---|
| Target SDK Level | ✅ Pass | targetSdk 35 satisfies current Google Play requirements. |
| Sensitive Permissions | ⚠️ Warning | `POST_NOTIFICATIONS` declared; runtime prompt required. |
| Foreground Service Types | ❌ Blocker | Missing `android:foregroundServiceType` on SyncService. |

---

### 2. 🔒 Intent & Component Security (`android-intent-security`)
- **Audited Components:** `<Count>` entry points inspected.
- **Identified Risks:**
  - `DeepLinkActivity` (Exported=true): Lacks strict data host validation on URI schemes.

---

### 3. 📦 R8 & Bundle Health (`r8-analyzer`)
- **Estimated Download Size:** `~14.2 MB`
- **Reflection / Keep Rule Warnings:** 0 missing seeds detected.

---

### 🚦 Action Items
1. **[Required]:** Add `android:foregroundServiceType="dataSync"` to `<service android:name=".sync.SyncService" />`.
2. **[Recommended]:** Verify digital asset link declarations for App Links verification.
```

Go build your own custom agents!

If you want to learn more about how to add custom agents to your own plugins, check out the Plugins documentation and the Custom Agents guide.

If you have a great custom agent that you want to show us, please reach out to us on X!

Share on XShare on BlueskyShare on LinkedIn

Experience liftoff

Product

DownloadProductDocsChangelogPressReleases

Resources

BlogPricingUse Cases
About GoogleGoogle ProductsPrivacyTerms Manage cookies