AI

Claude Sonnet 4.6 performance varies across coding harnesses

Yadullah Abidi tested Claude Sonnet 4.6 using Claude Code, OpenCode, and Antigravity, finding that Claude Code completed a Click library task in 351 seconds for $1.56. While all tools passed tests, they exhibited divergent costs, token usage, and tool call behaviors.

Claude Sonnet 4.6 performance varies across coding harnesses

Discrepancies in task performance

Yadullah Abidi ran Claude Sonnet 4.6 through three different coding harnesses to see if the interface changed the model’s output, testing Claude Code, Google’s Antigravity CLI, and OpenCode on a Linux home server inside a fresh Docker container. The test used the same machine and three specific jobs while keeping permission prompts turned off. Each tool ran in headless mode and completed each job twice. The first job required fixing three bugs in the TinyDB Python library, the second required building a Little League standings app from a one-page spec, and the third required adding a feature to the Click Python library using code from before the feature was merged in October 2026. Every finished run from all three harnesses passed every hidden test, including 232 for the bug fixes, 34 for the app, and 2,235 for the Click job. The Click task required the model to work in a file of nearly 4,000 lines of code to retire an old property without breaking dependencies. Abidi chose Claude Sonnet 4.6 because Claude Code and OpenCode run it without issue, but Antigravity requires a user’s own API key for Gemini, making Anthropic API keys useless there.

Divergent costs and behaviors

The harnesses showed different work habits despite the identical results. Claude Code completed the Click feature task in 351 seconds for $1.56, while OpenCode took 625 seconds and cost $2.66. OpenCode made up to 84 tool calls and processed 4.5 million tokens for the Click task, whereas Claude Code used between 39 and 54 calls and processed 2.8 million tokens. Claude Code built the Little League app in 604 seconds for $0.76, but OpenCode took 633 seconds and cost $1.09. For the TinyDB bug fixes, Claude Code cost $0.55 and took 104 seconds, while OpenCode cost $0.45 and took 176 seconds. Antigravity was the fastest to build the app at 149 seconds, but it stopped during the second round of jobs because of a quota error. Google tracks Claude usage in Antigravity separately from Gemini, and the user faced a seven-day wait for an upgrade. Google also listed Sonnet 4.6 for removal from Antigravity on the same day as the test. One cut-off run left the Click library unable to import.

Claude Code minimizes motion. It built the app in 11 tool calls and six file writes. It used a helper agent in only one of its two runs for the Click task, which was a single instance of the model using extra assistance. OpenCode acts like a researcher. It reads files nearly 40 times and brought in a helper agent for the Click job. Antigravity keeps a running step list and updates it constantly. In one bug fix, Antigravity wrote 16 tests for three one-line changes in a 269-line file that recreated the Little League equipment scenario from the bug report.

Job Claude Code OpenCode Antigravity
Bug fixes 104 s, $0.55 176 s, $0.45 179 s
App from a spec 604 s, $0.76 633 s, $1.09 Cut off
Click feature 351 s, $1.56 625 s, $2.66 Cut off

Selecting a harness

Claude Code is the best all-rounder because it reaches the correct answer fastest and often cheapest. Users who want an open-source tool that works with many model providers should pick OpenCode, but they must accept higher costs for large jobs. Antigravity provides visible plans before models work, but users should pick a plan that includes Claude use or switch to Gemini. If tasks involve massive codebases and Anthropic models, Claude Code provides the fastest path to a correct answer. Pick the model for the quality of answers and choose the harness for how you like to work and what you can afford.