Repository navigation
docs(feat): add Antigravity agent integration guide - #2719
joefernandez wants to merge 6 commits into
Conversation
✅ Deploy Preview for adk-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
joefernandez
left a comment
There was a problem hiding this comment.
Content review report
- Review Score: 95/100
- Overall assessment: 🟡 Medium Risk
- Summary reasoning: L0 Risk Review found no legal, privacy, pricing, third-party, or internal-link risks, and the experimental status is clearly marked. Two medium-risk items involve overstated or implied sandboxing/security isolation claims for local execution, alongside one low-risk volume-of-change note for a new 425-line integration page.
- Recommended action: Approve with specific changes. Clarify the Environment Toolset description to avoid claiming sandboxing, rename the
./sandboxdirectory in the quickstart, and add a brief local-filesystem caution clarifying thatpolicy.workspace_only()is harness-level policy enforcement rather than OS-level sandboxing. - Number of lines changed: L (425)
- Number of files changed: 1
| agents through the Managed Agents API instead of running a local Antigravity | ||
| SDK harness. | ||
| - [Environment Toolset](/integrations/environment-toolset/): Give standard ADK | ||
| `LlmAgent` instances local or sandboxed shell and file tools. |
There was a problem hiding this comment.
L0 RISK REVIEW (Medium): Unsubstantiated security/sandboxing claim for Environment Toolset. The linked Environment Toolset guide documents LocalEnvironment (direct host execution, with a !!! danger warning) and custom/remote environments, and makes no sandboxing claim.
| `LlmAgent` instances local or sandboxed shell and file tools. | |
| `LlmAgent` instances local or custom execution environments for shell and | |
| file tools. |
| from google.antigravity.hooks import policy | ||
|
|
||
| # Create local workspace and trajectory directories. | ||
| workspace = os.path.abspath("./sandbox") |
There was a problem hiding this comment.
L0 RISK REVIEW (Medium): Naming the local host directory "./sandbox" implies OS-level sandboxing where none exists (the other examples at #L178, #L272, and #L338 use "./workspace"). Rename to "./workspace" for consistency and accuracy.
| workspace = os.path.abspath("./sandbox") | |
| workspace = os.path.abspath("./workspace") |
| Antigravity harness denies any tool call that no policy explicitly approves. | ||
| Because `policy.workspace_only()` adds scoped deny rules rather than allow | ||
| rules, pair it with `policy.allow(...)` for built-in tools, such as | ||
| `BuiltinTools.file_tools()`, and any client-side tools your agent needs. |
There was a problem hiding this comment.
L0 RISK REVIEW (Medium): Alongside blanket approval of BuiltinTools.file_tools() and policy enforcement claims (#L97-L104, #L139-L143, #L239-L242), readers may infer OS-level sandboxing. Add a brief caution clarifying local filesystem access and policy boundaries.
| `BuiltinTools.file_tools()`, and any client-side tools your agent needs. | |
| `BuiltinTools.file_tools()`, and any client-side tools your agent needs. | |
| !!! warning "Local file access" | |
| `LocalAgentConfig` runs on your local machine, and approving | |
| `BuiltinTools.file_tools()` allows the agent to create and modify files in | |
| the configured workspace directories. `policy.workspace_only()` enforces | |
| tool-approval rules in the harness rather than OS- or container-level | |
| sandboxing; run in an isolated container or VM if you require stronger | |
| isolation. |
There was a problem hiding this comment.
L0 RISK REVIEW (Low): Adding a new 425-line page (docs/integrations/antigravity-agent.md#L1-L425) for an experimental integration (google.adk.labs.antigravity) is a size-L addition. The experimental warning is properly placed at #L20-L22 and no internal URLs, PII, pricing, dates, or third-party product claims appear; standard technical verification should ensure the stated default-deny behavior of google-antigravity and version milestones (v2.3.0, v2.7.0, v2.12.0 at #L46-L48) match released behavior.
Adds a new integration guide for the experimental
AntigravityAgent(google.adk.labs.antigravity.AntigravityAgent) atdocs/integrations/antigravity-agent.md.Summary
pip install "google-adk[antigravity]"), prerequisites, and a minimal local workspace setup usingLocalAgentConfig.policy.workspace_only()and persistentsave_dirfor multi-turn conversation resumption.mode="single_turn"as an ADK sub-agent, attaching ADKsub_agentsbridged as client-side tools, and usingAntigravityAgentas aWorkflownode.AntigravityAgentconfiguration options (config,mode), limitations, and links to the runnable samples.docs/integrations/index.md) via frontmatter metadata; nomkdocs.ymlnav changes required.Sources verified (ADK Python
v2.16.0)AntigravityAgentdocs/guides/labs/antigravity/index.mdantigravity_agent,antigravity_agent_as_sub_agent,antigravity_agent_with_sub_agents, andantigravity_workflowsamplesReviews applied (one commit per stage)
integration-review