Skip to content

Antigravity Runtime

Google Antigravity is AGX Kit’s production runtime. Beyond rules, skills, and workflows, the kit ships a native integration layer inside .agents/.


antigravity.json
Machine-readable runtime contract
hooks.json
Native PreToolUse safety gate
mcp_config.json
Workspace MCP source of truth
Doctor
Read-only integration diagnostics

hooks.json registers a native PreToolUse gate for run_command. It is deliberately narrow — it blocks high-confidence destructive patterns only:

  • Unix root-filesystem deletion (rm -rf / and equivalents)
  • Filesystem formatting and raw-disk overwrite (mkfs, writing to /dev/sdX)
  • Windows drive formatting and forced root deletion

Normal project cleanup (deleting dist/, node_modules/) passes through.

⚠️

The hook does not replace Antigravity permissions, workspace trust, sandboxing, or human approval. It is a last-resort tripwire, not a security boundary.


.agents/mcp_config.json is the workspace source for MCP servers. The sync helper applies it explicitly — it refuses placeholder credentials, preserves conflicting entries by default, and backs up the target before writing:

agent-session
$
node .agents/hooks/sync-mcp.mjs

The Doctor checks discovery, MCP, hooks, orchestration, plugin packaging, and release readiness — read-only:

agent-session
$
node .agents/hooks/antigravity-doctor.mjs
[PASS] discovery
[PASS] mcp
[PASS] hooks
[PASS] orchestration
[PASS] plugin
[PASS] validation
[PASS] Antigravity contract is ready.

For teams who prefer a packaged install, the plugin builder produces a local Antigravity plugin bundle with a deterministic SHA-256 content inventory:

agent-session
$
node .agents/hooks/build-plugin.mjs
ℹ️

Everything on this page is validated in CI: the Doctor, hook regression tests, and plugin inventory run on every push.


Pair a high-reasoning planner in the main session with the scoped worker subagent (model: flash) to keep quota costs low and prevent whole-file read spam:

  1. Main session (Planner) — Select your planner model in the Antigravity model picker (or /model). Locate target files, line ranges, and symbols before delegating.
  2. Scoped worker (.agents/agents/worker.md) — Discovered natively by Antigravity /agents. Runs on model: flash and only reads bounded line ranges inside explicitly named files.
  3. Delegation rules (AGENTS.md) — Pass exact file paths, line ranges or symbol names, a narrow objective, and the verification command; keep tiny single-line edits in the main session.

Verify discovery in the CLI or Agents panel with /agents (worker appears under Available Agents) and inspect its tool log in the Subagent Detail View.