Skip to content

docs(feat): add Antigravity agent integration guide - #2719

Open
joefernandez wants to merge 6 commits into
mainfrom
agent/antigravity-agent-docs
Open

joefernandez wants to merge 6 commits into
mainfrom
agent/antigravity-agent-docs

Conversation

@joefernandez

Copy link
Copy Markdown
Collaborator

Adds a new integration guide for the experimental AntigravityAgent (google.adk.labs.antigravity.AntigravityAgent) at docs/integrations/antigravity-agent.md.

Summary

  • Documents installation (pip install "google-adk[antigravity]"), prerequisites, and a minimal local workspace setup using LocalAgentConfig.
  • Covers key local-harness configuration decisions: explicit tool approvals alongside policy.workspace_only() and persistent save_dir for multi-turn conversation resumption.
  • Covers advanced composition patterns: mode="single_turn" as an ADK sub-agent, attaching ADK sub_agents bridged as client-side tools, and using AntigravityAgent as a Workflow node.
  • Documents AntigravityAgent configuration options (config, mode), limitations, and links to the runnable samples.
  • Auto-discovered in the Integrations catalog (docs/integrations/index.md) via frontmatter metadata; no mkdocs.yml nav changes required.

Sources verified (ADK Python v2.16.0)

Reviews applied (one commit per stage)

  1. First draft
  2. L0 risk assessment
  3. L1 information architecture and integration-review
  4. L2 technical accuracy
  5. L3 product messaging
  6. L4 style guide

@netlify

netlify Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit 7f9154d
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/6b139b8308c3df372d82057c
😎 Deploy Preview https://deploy-preview-2719--adk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@joefernandez joefernandez left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ./sandbox directory in the quickstart, and add a brief local-filesystem caution clarifying that policy.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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
`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")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
`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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant