Clarification Request: Is a Plugin Sidecar Allowed to Use Antigravity Language Server GetModelResponse for PreToolUse Security Classification?
I would like to clarify whether the following Antigravity plugin architecture is permitted under the Antigravity Additional Terms.
The intended use case is not to expose Antigravity models to another AI client, create a proxy API, reuse Antigravity OAuth credentials externally, or provide inference to third-party applications.
The goal is only to implement an automatic permission/security classifier for Antigravity itself, similar in concept to an “auto approve safe actions, ask for risky actions” mode.
The proposed flow is:
Antigravity Agent
│
│ proposes a tool call
▼
PreToolUse Hook
│
│ ambiguous permission decision
▼
Antigravity-managed Plugin Sidecar
│
│ localhost only
▼
Antigravity Language Server
│
│ GetModelResponse
▼
small model classification
│
▼
allow / ask / deny
More specifically:
-
The plugin is installed and executed inside Antigravity.
-
Antigravity manages the plugin sidecar lifecycle.
-
The sidecar runs locally and communicates only over loopback.
-
The
PreToolUsehook sends the proposed tool call to the local sidecar. -
The sidecar uses the Language Server connection information available in the Antigravity-managed environment to call the local Language Server’s
GetModelResponseRPC. -
The model is used only to classify the safety of the tool call and return a result such as
allow,ask, ordeny. -
No Google OAuth access token is extracted, copied, stored, or exposed to the plugin.
-
The plugin does not call Google backend endpoints directly.
-
It does not expose an OpenAI-compatible API or any other general-purpose model API.
-
It does not provide model access to Claude Code, Codex, OpenCode, OpenClaw, or another external AI agent.
-
It is not multi-user, hosted, resold, or used for quota pooling.
-
The resulting model decision is used exclusively inside the same Antigravity workflow that initiated the tool call.
The reason for asking is that GetModelResponse appears to be a Language Server RPC rather than a currently documented public Plugin/Sidecar API.
I understand that Antigravity officially supports Plugins, Hooks, Sidecars, agentapi, and the agy CLI, while the Additional Terms restrict certain forms of third-party access, credential reuse, unofficial clients, and private API access.
Could you please clarify the following?
-
Is a third-party Antigravity plugin permitted to call the local Antigravity Language Server’s
GetModelResponseRPC when the call is made entirely inside an Antigravity-managed plugin/sidecar and solely for extending Antigravity itself? -
Does the answer change if the plugin never receives or extracts the user’s Google OAuth credentials and communicates only with the locally running Antigravity Language Server?
-
Is the fact that
GetModelResponseis currently undocumented sufficient to make this use unsupported or prohibited, even though the plugin itself is running through Antigravity’s official Plugin/Sidecar system? -
If direct use of
GetModelResponseis not permitted, should plugins that need model inference use only documented interfaces such asagentapior the officialagyCLI? -
Is there, or is there planned to be, an officially supported lightweight model-inference API for Plugins/Sidecars for use cases such as permission classification, moderation, routing, or other small internal decisions?
I am specifically looking for clarification on the boundary between:
third-party software using Antigravity as an external model provider
and:
an Antigravity plugin using an internal model call solely to implement functionality inside Antigravity itself
A clear answer would also be useful for plugin developers who want to build permission systems and other model-assisted extensions without accidentally relying on an interface that Google considers outside the supported or permitted surface.
Thank you.