---
title: "Switching from Claude Code to Antigravity: keep auth rules · Proxy Mail QA"
description: "Antigravity imports your personal CLAUDE.md, not the project’s. Carry the project’s auth rules across yourself, then replay your sign-up checks."
url: https://proxymail.qa/switching/claude-code-to-antigravity
---

1. [Home](https://proxymail.qa/)
2. [Switching tools](https://proxymail.qa/switching)

# Switching from Claude Code to Antigravity: keep auth rules

A useful Claude Code instruction may live in your project’s CLAUDE.md, while Antigravity’s migration imports the file of the same name from your home directory. Treat that as unfinished handoff work, not a reason to rewrite authentication.

Updated 4 December 2026

> We make Proxy Mail QA. Our recommendation is limited to evidence from test account emails and the app actions their codes or links complete. Proxy Mail QA is not a code, auth-provider or user migration service. This is not a security audit.

Changing tools alone does not alter deployed login. Lost constraints, moved configuration or a new environment can affect a subsequent edit. Keep your existing auth provider.

## Separate personal settings from the app’s contract

Before switching, record the current revision, staging URL, provider, callback destinations, verification policy and test commands. Run the account checklist below as a baseline on an owned or authorised dev/staging site. Use fresh test users, never production or real accounts.

In the **Antigravity App**, `/migrate-agent-settings` supports Claude Code. Do not assume the IDE or CLI exposes that same command. The migration table includes global `~/.claude/CLAUDE.md`, not project `CLAUDE.md` or `.claude/rules`. Explicitly carry over those project auth rules. Hooks and permissions in `~/.claude/settings.json` are not imported; a Claude Code approval gate is not an Antigravity approval gate. Review the new tool’s approvals separately.

The importer leaves sources untouched and normally writes a global plugin at `~/.gemini/config/plugins/migrated-settings`. A workspace `.mcp.json` imported this way becomes global. Keep this app’s auth requirements in the workspace rather than applying them to every project. Required variables that are missing leave an imported MCP plugin disabled; enter them on its plugin page, then enable it.

Put the essential auth contract in root `AGENTS.md` without frontmatter. State what unverified users may do, which service sends resets, approved action/return hosts and the intended token-replacement policy. Preserve repository tests rather than replacing them with prose.

Antigravity reads workspace `AGENTS.md`/`GEMINI.md` and parents through the repository root, not rules in subfolders below the workspace root. `CLAUDE.md` is not a directly listed native source. Optional `.agents/rules/*.md` need valid YAML with a `trigger` of `always_on`, `model_decision`, `glob` or `manual`. Missing/invalid triggers, including `alwaysApply`, silently drop rules.

## Reconnect without copying secrets

An imported Proxy Mail QA entry needs authentication and enabling, not a duplicate. Otherwise, from the IDE agent panel use **… → MCP Servers → Manage MCP Servers → View raw config** and merge this entry:

JSON

```json
{"mcpServers":{"proxymail-qa":{"serverUrl":"https://api.proxymail.qa/mcp"}}}

```

The shared file is `~/.gemini/config/mcp_config.json` across the Antigravity App, IDE and CLI. Restart and sign in through the browser, choosing the same Proxy Mail QA project. Do not put keys in chat or the repository. OAuth does not reveal old saved passwords; use fresh accounts or a person with access to existing credentials.

## Compare the baseline with the first auth edit

Start each comparison with `start_run`, using the same run name; pass each run’s own `run_id` to every supported call. Create an address with `password: true` when needed; `form_values` supplies made-up field values. These tools do not create an app account. Antigravity needs its own browser to fill and submit forms; MCP alone cannot do that.

1. Before every submit, record the timestamp—use `mark_submitted` if available. Pass it as `since` to `wait_for_code` or `wait_for_link`. Proxy Mail QA returns no email body and does not prefetch links.
2. Sign up. Test any intended pre-verification restrictions at the server/data-permission level as well as the screen. Complete verification, reload and sign in again.
3. Reset: new password succeeds, old password fails, and the used reset link cannot change the password again. In a separate flow, leave token A unused, request B, test A against the agreed replacement policy and confirm B completes the intended action. If A may remain valid and consuming it would invalidate B, prove B with an equivalent independent fixture. Never resend after completed verification to test replacement. Exercise supported invites too.
4. Check mail with `check_email`: SPF, DKIM, DMARC, `expect_host`, insecure/unexpected localhost links and stated expiry. An approved provider action host may differ from the final app host; check both destinations. Expiry wording is not enforcement: wait out expiry or explicitly skip it. Count each email kind within its own window, not welcome and verification together.
5. Save browser results with `add_run_note`, setting `failed: true` for failed browser assertions; list skipped checks separately. Then use `finish_run` to report recorded evidence and compare recent same-name runs; it does not observe the browser. Report inherited failures separately from new ones.

Copy the preceding checklist together with this prompt and supply the authorised staging target.

Prompt

```text
Use the supplied checklist; ask for it if missing.
List project auth instructions that the Claude Code import did not carry.
Read the root contract, keep the provider and existing tests, and propose
one small reviewed change. After the first auth edit, replay the baseline
on staging.
In a separate flow, leave token A unused, request B, test A against the
agreed replacement policy and confirm B completes the intended action.
If A may remain valid and consuming it would invalidate B, prove B with
an equivalent independent fixture. Never resend after completed
verification to test replacement.
Use start_run with the same name for baseline and replay; pass each new
run_id to every supported call. Record browser outcomes with add_run_note;
set failed:true for failed browser assertions and list skips separately.
finish_run reports recorded evidence, not automatic browser observations;
compare recent same-name runs. Never disable confirmation or reset the
owner's password.

```

## What stays outside this check

No SMS, social login, KYC, payments or security certification. `check_delivery` observes receipt; it cannot prove which backend or provider-sandbox setting caused missing mail.

Keep CI tests and store `PROXYMAIL_QA_API_KEY` as a CI secret. Delete specific app test users separately from inboxes. If Claude Code no longer needs access, revoke its retired connection under **Project settings → API keys**.

Use [the shared switching checklist](https://proxymail.qa/solve/switching-ai-coding-tools-retest-sign-up) for the broader handoff.

## Sources

Reviewed 4 Dec 2026 from the published documentation.

- [Claude Code migration](https://antigravity.google/docs/migration/claude-code/) and [rules](https://antigravity.google/docs/rules/)
- [Antigravity connection](https://proxymail.qa/built-with/antigravity)
- [MCP](https://proxymail.qa/docs/mcp), [flow checks](https://proxymail.qa/docs/flow-checks) and [CI](https://proxymail.qa/docs/ci)

## Try it on your next sign-up test

Free plan, no credit card. Create an address and watch the code or link arrive.

[Create a free account](https://app.proxymail.qa/?mode=signup&from=site-switching-claude-code-to-antigravit)

## Related guides

- [Claude Code to Cursor](https://proxymail.qa/switching/claude-code-to-cursor): See what Cursor picks up from Claude Code, rewrite the rest, then retest sign-up.
- [Claude Code to Codex](https://proxymail.qa/switching/claude-code-to-codex): Check what Codex imported from Claude Code, then compare sign-up before and after.
- [Claude Code to Qoder](https://proxymail.qa/switching/claude-code-to-qoder): Write down what Claude Code knew about your auth, then retest sign-up in Qoder.
- [Antigravity to Claude Code](https://proxymail.qa/switching/antigravity-to-claude-code): Rewrite Antigravity’s auth rules for Claude Code, then retest sign-up and reset.

[See every email testing problem we solve](https://proxymail.qa/solve)

Claude Code is a product of Anthropic. Google, Antigravity and Firebase are trademarks of Google LLC. Proxy Mail QA is independent and isn’t affiliated with or endorsed by them.
