Android Studio’s BYOA Feature Lets External Coding Agents Operate via ACP Protocol
Android Studio now supports a Bring Your Own Agent (BYOA) preview that lets developers attach external coding agents through the Agent Client Protocol, sharing full project graphs and build settings.

What BYOA Introduces to Android Studio
Google’s latest preview for Android Studio Rabbit 2 adds a feature called Bring Your Own Agent, abbreviated BYOA. The core of BYOA is the Agent Client Protocol (ACP), a standardized interface that permits an external coding agent to connect to the IDE and act on behalf of the developer. BYOA is positioned as a way to extend the IDE’s intelligence by allowing third‑party services to read and manipulate code, run shell commands, launch tests, and interact with native Android Studio tools such as build diagnostics, Jetpack Compose previews, the Android SDK and emulator control.
The ACP model requires the IDE to transmit the complete project graph, build parameters and Android platform information to the connected agent. According to Google, this comprehensive hand‑off reduces the number of tokens an agent must request from its underlying language model and shortens round‑trip latency, because the agent does not need to reconstruct the project context on its own.
Supported Agents and Compatibility
In the preview, Google lists three agents that already conform to the ACP specification: Anthropic Claude Agent, OpenAI Codex and Google Antigravity. The documentation also states that any agent that implements the ACP standard can be added, implying an open ecosystem for future providers.
- Anthropic Claude Agent
- OpenAI Codex
- Google Antigravity
- Any ACP‑compliant agent
These agents are capable of performing the same set of actions that the built‑in Gemini model could previously execute. They can read source files, write modifications, invoke shell commands, trigger unit or instrumentation tests, and request diagnostics from the IDE. The ability to control the emulator directly from an external agent is also part of the contract, allowing the agent to start, stop or configure virtual devices as part of an automated workflow.
Granular Permission Model
Google emphasizes that BYOA does not grant blanket authority to an attached agent. Permissions are granular: routine actions such as code formatting, linting or test execution can be automated, while higher‑risk operations—like modifying build scripts, accessing sensitive files or altering emulator network settings—require explicit developer approval. The IDE presents a prompt whenever an agent requests a privileged operation, ensuring that the developer retains final control.
The permission system is enforced at the IDE level, not by the external service. This means that even if an agent’s own policy permits a certain operation, Android Studio will still block it unless the user authorises the request. The design intention is to keep the developer’s workflow safe while still benefitting from the speed and convenience of automated assistance.
Multiple Agents in a Single Session
Another capability highlighted in the preview is the ability to connect several agents to the same Android Studio session simultaneously. Developers can switch between agents on the fly, for example when the token quota of one service is exhausted or when performance metrics indicate that another agent is responding more quickly. This multiplexing is managed by the IDE, which routes each request to the appropriate agent based on the developer’s selection.
The simultaneous‑agent model also opens the possibility of composite workflows. A developer could use Claude for high‑level design suggestions, Codex for low‑level code generation, and Antigravity for performance‑related diagnostics, all within a single project view. The preview does not detail how resource contention is resolved, but the architecture allows the IDE to queue or prioritize requests as needed.
Current Availability and Limitations
BYOA is currently limited to the Canary channel of Android Studio Rabbit 2. The feature is marked as a preview, meaning it is not yet part of the stable release track and may change before general availability. Existing agents that were bundled with earlier versions of Android Studio, such as the integrated Gemini model, remain accessible alongside the new BYOA agents.
Google’s announcements do not include concrete performance measurements for ACP‑enabled agents. No data is provided on latency improvements, token savings or CPU overhead introduced by transmitting the full project graph. Likewise, security implications beyond the described permission prompts are not quantified, and the cost model beyond the usual pay‑per‑use billing of the underlying AI services is left unspecified.
Practical Implications for Development Teams
For organisations evaluating BYOA, the immediate benefit is the ability to plug in specialised AI services without waiting for native integration. Teams that already have licences for Claude, Codex or Antigravity can experiment with those models directly inside Android Studio, leveraging the IDE’s native diagnostics and emulator control. The granular permission framework reduces the risk of accidental code changes, while the multi‑agent support offers a fallback when a single service reaches its quota or exhibits latency spikes.
However, the lack of disclosed performance benchmarks means that teams must conduct their own measurements to determine whether the token‑saving claim translates into cost reductions in practice. Security reviewers will also need to assess the impact of exposing the full project graph to external endpoints, even though Android Studio mediates all file‑system actions. Until Google publishes detailed guidance on secure deployment, organisations should treat BYOA as an experimental capability and limit its use to non‑production branches.
In summary, BYOA expands Android Studio’s extensibility by standardising how external coding agents are invoked, but the preview’s limited data and the absence of a clear pricing structure require careful piloting before large‑scale adoption.
Sources
- Android Developers Blog: Build your way: Use any AI agent of your choice in Android StudioAndroid Developers · September 24, 2026
- Android Studio開放BYOA,Codex等代理可透過ACP串接IDE | iThomeiThome · September 28, 2026


