Skip to main content
Global Access Global Access Pro China Access Pricing Setup Guide Help & Guides Custom Service Log in / Register
← Back to Feed

Claude Opus vs. Sonnet in Antigravity for Coding

When choosing a Claude model in Antigravity, start with how much of the task is still unknown. Use Sonnet when the change is well defined. Bring in Opus when the cause is unclear or the work spans several parts of the project. That fits Anthropic’s positioning of Sonnet for scoped everyday work and Opus for complex work that calls for deeper judgment. Anthropic’s Sonnet 5.5 overview · Opus 5.5 overview

When to start with Sonnet

Use Sonnet for a form validation change, a regression test for a known bug, or a UI adjustment that follows an existing component. Give it the affected path, the expected result, and the behavior that needs to stay intact.

Suppose you’ve confirmed that duplicate search results come from carrying an old pagination cursor into a new keyword search. Ask Sonnet to reset the cursor when the keyword changes and add a regression test. The check is concrete. Go to page two, change the keyword, and verify that the new query starts on page one while pagination still works for the same keyword.

When to bring in Opus

If all you know is that search results sometimes repeat, the cause could involve caching, request order, or pagination state. Ask Opus to trace the request in a read-only pass, identify what it can reproduce, and propose a change you can revert if needed.

Once you have a cause, give Sonnet the reproduction steps, the change boundary, and the acceptance criteria. Review the diff and test results against the original failure. A handoff prompt could look like this:

When the keyword changes, the new request still carries the previous pagination cursor. Reproduce and fix that path. Add a test that goes to page two and then changes the keyword. Preserve pagination for an unchanged keyword, and report the files changed and tests run.

Can both Claude models work in one Antigravity task?

Yes. With an eligible Google AI Pro or Ultra plan, open Settings → Models → Orchestrator Settings in the Antigravity desktop app. Set Opus 5.5 as the planner and Sonnet 5.5 as the executor. The planner develops the approach and reviews progress. The executor handles searches, edits, and tests. Gemini Enterprise uses the fixed Gemini pairing documented by Google. Antigravity Orchestrator documentation

For a small change, start with Sonnet. For a bug that crosses module boundaries, establish the cause and acceptance criteria first. Then either switch models yourself or use Orchestrator to connect the two steps. If neither model appears in your picker yet, check where to select Claude 5.5 and verify plan eligibility in Antigravity.

Use ChatGPT, Claude, and other major AI models directly from China

No overseas account or international card. AI Hub starts at $20/month, or use Global Access for original apps.

Subscribe to AI Hub → See Global Access →
Need help? Tap here