Spiral gives your agent every tool with one account. Browse the tools →

Google Antigravity · LLMReleased 2025-12-08

How to Use Relace Search in Google Antigravity

Relace Search finds the code needed to investigate bugs or plan changes. It follows multiple search paths and returns relevant code sections for a coding agent to use.

Prompts to try with Relace Search in Google Antigravity

Copy an example into Google Antigravity, or ask in your own words.

Use Relace Search to investigate why an expired session can still reach a protected route in this project. Return relevant file paths, line ranges, and the evidence for each suspected entry point.

Relace SearchGoogle Antigravity
Try asking
  • Use Relace Search to trace checkout from the submit handler to payment confirmation in this repository. Identify where duplicate submissions are handled and report the relevant code without editing it.

  • Use Relace Search to find the code I should understand before adding cursor pagination to the orders endpoint. Include request handling, ordering logic, and related tests, with reasons for including each section.

  • Use Relace Search to investigate how this project handles an empty search query. Trace the relevant branches and report where the behavior is defined and tested.

  • Use Relace Search to collect context for replacing the retry helper in this project. Find its callers, explain their expectations, and return the relevant line ranges before proposing edits.

How to set up Relace Search in Google Antigravity

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Open the MCP config

    * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit ~/.gemini/config/mcp_config.json.

  2. Add the server

    Add Spiral under mcpServers:

    {
      "mcpServers": {
        "spiral": {
          "serverUrl": "https://api.spiral.ai/mcp"
        }
      }
    }
  3. Sign in

    In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

Use the Spiral skill

  1. Send Google Antigravity this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Relace Search

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "openrouter",
        "model": "relace/relace-search",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Google Antigravity finds Relace Search on Spiral, shows the price and runs it.

Relace Search providers and prices

Spiral runs Relace Search through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Relace: Relace Search
relace/relace-search

Settings you can ask for

Ask Google Antigravity for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Top p0 to 1
Max tokens1 to 128000

The most output tokens to generate.

Temperature0 to 2

Every API field of Relace: Relace Search is on its tool page: open its card above.

What can you do with Relace Search in Google Antigravity?

Find the code that explains a bug or defines a feature before editing. Use Relace Search to collect relevant sections and give the implementing agent a focused handoff.

Find a bug's likely entry points

Use Relace Search to locate the code associated with a reported symptom and collect the sections worth investigating first.

Trace authentication behavior

Ask Relace Search to follow authentication checks and identify the code that accepts or rejects a request.

Scope a feature change

Use Relace Search to identify existing behavior and the code a developer should understand before adding a feature.

Investigate an edge case

Ask Relace Search to trace empty inputs, missing values, or boundary conditions and report the relevant branches.

Prepare a refactor

Use Relace Search to follow related code paths and collect the context needed to assess a proposed refactor.

Build an implementation handoff

Ask Relace Search for a focused collection of relevant code sections, with reasons for including each one, before assigning implementation.

Questions about Relace Search in Google Antigravity

Can Google Antigravity use Relace Search?

Yes. Add Spiral to Google Antigravity as an MCP server, and Google Antigravity can find and run Relace Search like any built-in tool.

How much does Relace Search cost in Google Antigravity?

Up to $0.01602 per run at the default inputs. $1.30 per 1M input tokens, $3.90 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Google Antigravity plan is separate.

Do I need an OpenRouter account to use Relace Search in Google Antigravity?

No. Spiral runs Relace Search on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up Relace Search in Google Antigravity?

About two minutes: open the MCP config, then add the server, then sign in.

Does Google Antigravity wait while Relace Search runs?

Relace Search runs in the background. Google Antigravity starts the run, checks on it and gives you the text, json when it's ready.

What is Relace Search best for?

Finding the code relevant to a bug report, behavior question, or proposed change. It gathers context that a coding agent can use for implementation.

Does Relace Search fix the code it finds?

Its documented role is to investigate and report relevant code. Treat the report as the starting point for implementation and testing.

What does a search result contain?

The documented report identifies relevant files and line ranges. Ask for an explanation of why each section matters to your question.

How much context can Relace Search handle?

The context window is 256,000 tokens, with up to 128,000 completion tokens. For an investigation, ask for the relevant sections and a short explanation.

How should I phrase a code investigation?

Describe the behavior you want to understand, including expected results and edge cases. Ask the model to trace the control flow and explain the evidence behind its findings.

Get started

Start using Relace Search in Google Antigravity

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Google Antigravity:

Set up Google Antigravity

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options