Skip to content

Google Antigravity Setup

Omnodex supports tracing Google Antigravity sessions via hooks and MCP proxy interception. All Antigravity surfaces share a single agent harness, so hooks registered once apply to the CLI, Desktop App, and IDE extensions.

Antigravity supports project-level hooks in `.agents/hooks.json`. Omnodex registers hooks for three events:

  • PreToolUse - captures every tool invocation with parameters
  • PostToolUse - captures tool completion, duration, and errors
  • Stop - captures session end

For MCP tool calls, Omnodex also provides an MCP proxy that sits between Antigravity and your upstream MCP servers, giving full visibility into MCP traffic.

Hooks fire synchronously but are designed to be fast (under 50ms typical). They observe only and never block tool execution.

  1. Install hooks into your project:

    Run this once per project you want to trace, from the project root:

    Terminal window
    npx omnodex install antigravity

    This creates an `.agents/hooks.json` file that routes Antigravity events through Omnodex.

  2. Verify the configuration:

    Terminal window
    npx omnodex status
  3. (Optional) Add MCP proxy for MCP tool visibility:

    To also trace MCP tool calls, install the MCP proxy plugin and configure it:

    Terminal window
    # Install the plugin (unzip first - agy expects a directory)
    mkdir -p /tmp/omnodex-antigravity
    unzip -o omnodex-antigravity.plugin -d /tmp/omnodex-antigravity
    agy plugin install /tmp/omnodex-antigravity
    # Configure the MCP proxy with absolute paths
    npx omnodex install antigravity --mcp

    Verify inside an agy session:

    Terminal window
    /mcp

    `omnodex` should appear in the MCP server list.

  4. Run Antigravity normally. Traced events appear in the Omnodex dashboard alongside events from other platforms.

Event TypeSourceDescription
`tool.invoked`HooksA tool was called (name, parameters)
`tool.completed`HooksA tool finished (duration, status, errors)
`session.ended`HooksThe execution loop terminated
MCP tool callsMCP ProxyFull request/response for proxied MCP tools
Terminal window
# Open the live dashboard
npx omnodex dashboard
# Or run detection on collected events
npx omnodex detect

Antigravity events are tagged with `interceptor: “antigravity-hook”` and appear with an orange badge in the dashboard. Hook events and MCP proxy events from the same project appear together.

Hooks not firing:

  • Verify `.agents/hooks.json` exists in the project with an `“omnodex”` key
  • On Windows Desktop: ensure hooks were installed from PowerShell, not WSL
  • Check that Node.js is accessible at the path embedded in the hook command

Plugin MCP server not appearing:

  • Verify the plugin was installed from an unzipped directory, not the `.plugin` zip directly
  • Run `agy plugin list` to confirm `omnodex-antigravity` is installed
  • Check `/mcp` inside an agy session

Events not appearing in dashboard:

  • Ensure the dashboard roots include the `OMNODEX_HOME` where events are being written
  • Run `npx omnodex replay` to rebuild the read model