Antigravity Runtime
Google Antigravity is AGX Kit’s production runtime. Beyond rules, skills, and workflows, the kit ships a native integration layer inside .agents/.
The runtime layer
Section titled “The runtime layer”Tool safety hook
Section titled “Tool safety hook”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.
MCP synchronization
Section titled “MCP synchronization”.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:
Antigravity Doctor
Section titled “Antigravity Doctor”The Doctor checks discovery, MCP, hooks, orchestration, plugin packaging, and release readiness — read-only:
Plugin bundle
Section titled “Plugin bundle”For teams who prefer a packaged install, the plugin builder produces a local Antigravity plugin bundle with a deterministic SHA-256 content inventory:
Everything on this page is validated in CI: the Doctor, hook regression tests, and plugin inventory run on every push.
Planner + Flash Worker Pattern
Section titled “Planner + Flash Worker Pattern”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:
- Main session (Planner) — Select your planner model in the Antigravity model picker (or
/model). Locate target files, line ranges, and symbols before delegating. - Scoped worker (
.agents/agents/worker.md) — Discovered natively by Antigravity/agents. Runs onmodel: flashand only reads bounded line ranges inside explicitly named files. - 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.
