Back to blog

2026-07-16 · Aivrae · 39 min read

Claude Sonnet 5 Deep Dive: Agents, Effort, Benchmarks, and Real Cost

Anthropic released Claude Sonnet 5 on 2026-06-30, bringing stronger long-horizon execution and tool use to the Sonnet tier. Using its 146-page system card, official docs, CursorBench, and Artificial Analysis, this analysis covers effort, tokenization, benchmarks, safety, and real task cost.

  • claude
  • anthropic
  • ai-agents
  • model-evaluation
  • reasoning

Why Sonnet 5 matters

As of 2026-07-16, Claude Sonnet 5 has been available for a little over two weeks. It is neither Anthropic's most capable nor its most expensive flagship model, yet it may say more about the current direction of model competition than a flagship release does: long-horizon work that recently required a top-tier model is moving quickly into cheaper, higher-volume products.

Anthropic released Sonnet 5 on 2026-06-30 and called it its most agentic Sonnet so far. “Agentic” here means more than firing one search or running one code snippet. The model is intended to form a plan, use browsers, terminals, code execution, and other tools over many steps, inspect intermediate results, and push work toward a deliverable with less human intervention. Anthropic says it approaches Opus 4.8 on some tasks while retaining Sonnet-tier pricing.

That marks a shift in the role of the Sonnet family. Sonnet 3.5 through 3.7 helped bring coding and tool use into mainstream developer workflows, while the clearest later gains in agent behavior appeared in Opus. Sonnet 5 brings part of that capability back down to the mid-tier. Whether it can replace Opus depends on the workload, but one product expectation is already clear: a mid-tier model is now expected to sustain work and verify its own results, not merely produce a plausible next response.

Positioning, specifications, and availability

The direct API model ID is claude-sonnet-5. At launch, the model was available across Claude Free, Pro, Max, Team, and Enterprise plans, became the default for Free and Pro, and was exposed through Claude Code, the Claude API, AWS, Google Cloud, and Microsoft Foundry. Features, regions, and limits can still differ by platform.

The official model overview lists the following core specifications:

ItemClaude Sonnet 5
InputText and images
OutputText
Context window1M tokens; the default is also the maximum
Maximum synchronous output128k tokens
Reliable knowledge cutoffJanuary 2026
Default thinking modeAdaptive thinking
Default API efforthigh

A 1M-token context and 128k output ceiling create room for long documents, repository analysis, and extended agent runs. They remain capacity limits, not guarantees that retrieval quality is uniform at every position in the window, and they are not an instruction to fill every request to the maximum. A January 2026 reliable knowledge cutoff also means that later news, software releases, and live data still require search or supplied sources.

The system card says Sonnet 5 was trained on a proprietary mixture of publicly available internet information, public and private datasets, and synthetic data generated by other models, followed by post-training aligned with Claude's Constitution. Anthropic does not disclose parameter count, training compute, architecture details, or the full data composition, so the available evidence cannot tell us how much of the gain comes from scale, data, post-training, inference-time compute, or another architectural change.

The real upgrade is follow-through

The launch material emphasizes follow-through more than any single knowledge score. Early testers repeatedly described an old failure mode: previous Sonnet models would make reasonable progress on a complex task, then stop before the last verification or delivery step. Sonnet 5 is more inclined to continue. In one reported coding case, it created a reproducing test, implemented a fix, then temporarily stashed the change to confirm that the bug returned without it. In tool-driven work, it is also more likely to inspect its own output instead of treating the first result as final.

This behavior is difficult to capture with a single-turn benchmark. An agent can make ten locally sensible decisions and still fail the overall task because it skipped final validation, saved the wrong artifact, misunderstood a business constraint, or left the user with the last 20% of the work. Sonnet 5's product promise is to reduce that “mostly complete, still needs a human to finish” pattern.

Anthropic's prompting guide describes several more concrete behavioral tendencies:

  • It reaches for tools and enters self-verification loops more readily than Sonnet 4.6.
  • It provides more regular and higher-quality progress updates during long traces, reducing the need for scaffolding that forces a status message every few tool calls.
  • It follows instructions more literally, especially at lower effort, and may not generalize a rule from one item to all items unless the requested scope is explicit.
  • It may answer simple lookups more briefly while expanding substantially on open-ended analysis; products that require a fixed voice or length need to retune prompts.
  • Official guidance and pilot feedback both point to a cooler, more reserved tone, paired with less sycophancy.

None of these tendencies is automatically equivalent to greater intelligence. More aggressive tool use can create unnecessary steps, and literal instruction following can miss an unstated but obvious human intent. They are better understood as new defaults for agent products whose value depends on task design.

Effort creates five operating points inside one model

Sonnet 5 supports five effort levels: low, medium, high, xhigh, and max. The API defaults to high; xhigh targets the hardest coding and long-running agent tasks; max asks for the highest capability without constraining the model's willingness to spend tokens; medium and low trade some capability for lower latency and cost.

Effort is not a hard thinking-token allowance. It is a behavioral signal that affects final text, internal thinking, tool-call count, and the detail of function arguments. Lowering effort may reduce tool calls, compress explanation, and move more directly to action. Raising it can produce wider exploration, more checks, and much longer trajectories.

Anthropic offers a useful rough cross-generation mapping: Sonnet 5 at medium is approximately comparable in intelligence to Sonnet 4.6 at high, while Sonnet 5 at high is approximately comparable to Sonnet 4.6 at max. This is not a promise for every task. It does show why model comparisons should not merely align effort labels; they should align observed thinking length, tool budget, and completed-task quality.

Adaptive thinking is on by default. A request without a thinking field still lets the model decide whether and how long to think. Turning it off requires thinking: {"type": "disabled"}. The older thinking: {"type": "enabled", "budget_tokens": N} mode has been removed and returns a 400 error. Because max_tokens covers thinking and the visible answer together, a tight limit on a long, high-effort task can produce a response that spends most of its budget thinking and then truncates the final answer.

The new tokenizer changes what “1M context” means

Sonnet 5 uses a newer tokenizer than earlier Sonnet models. Anthropic says the same text generally maps to more tokens: the documentation summarizes the increase as roughly 30%, while a launch footnote gives a workload-dependent range of about 1.0-1.35 times.

That has three easy-to-miss consequences. First, the same nominal 1M-token window may hold less actual text than Sonnet 4.6. Second, output limits tuned for the older tokenizer may truncate equivalent content earlier. Third, the bill for the same text can change even when the listed price per million tokens does not.

More tokens do not necessarily mean the model is technically less efficient. Tokenization is part of how a model represents language, and a different segmentation may support training, reasoning, multilingual text, or code. The user-facing result is still a higher count. Context comparisons therefore need more than labels such as 1M and 200k; they need measurements of the actual documents, code, and languages in the workload.

Non-English content deserves particular testing. The system card reports evaluation across benchmarks covering 42 to 44 languages, but it also explicitly says output quality varies by language. An “approximately 30%” figure derived from a broad documentation statement should not replace direct counts for Chinese, Japanese, Russian, mixed-language code, or any other specific corpus.

Coding improves sharply, but Opus is not universally matched

Anthropic's system card includes a large coding suite. Most Claude results use adaptive thinking, max effort, default sampling, and a five-run average, but some evaluations use different settings. The figures are meaningful only with those conditions attached.

EvaluationSonnet 5Sonnet 4.6Scope
SWE-bench Verified85.2%Not listed in the same table500 real GitHub issues verified as solvable by engineers
SWE-bench Pro63.2%58.1%Harder, multi-file issues with less public ground-truth leakage
SWE-bench Multilingual78.3%Not listed in the same table300 issues across nine programming languages
FrontierCode v138.8%15.1%150 agentic coding tasks derived from real open-source pull requests
Terminal-Bench 2.180.4%67.0%Sonnet 5 used xhigh; Sonnet 4.6 used high, so this is not a clean matched comparison

These results support a substantial coding improvement, but not a claim of universal flagship parity. Cursor's independently maintained CursorBench 3.2 uses ambiguous, multi-file tasks drawn from real Cursor sessions. Its 2026-07-09 page reports Sonnet 5 at 61.5% on max, averaging about .45, 92,882 tokens, and 86 steps per task. At high, it scores 56.9% at about .19; at medium, 52.4% at about .16; and at low, 47.7% at about .30. Higher effort buys a higher score, but with a visible increase in tokens, steps, and cost.

CursorBench also warns that results have variance and small differences may not be statistically meaningful. A production agent harness, its tools, timeouts, and repository mix can all move the result. The benchmark's strongest contribution is not a permanent ranking; it is placing a capability curve and a cost curve on the same chart.

Search, computer use, and professional work expose agent capability

The gains extend beyond coding. On Humanity's Last Exam, Anthropic reports 43.2% without tools and 57.4% with search, fetch, programmatic tool calling, and code execution; Sonnet 4.6 scores 34.6% and 46.8% in the corresponding conditions. The size of the tool-assisted gain is itself important: current model capability increasingly belongs to the combination of reasoning and environment, not just knowledge stored in the weights.

Sonnet 5 scores 84.7% on BrowseComp, a difficult web-research benchmark. That result uses max effort, a total budget of up to 10M tokens, and context compaction triggered at 200k, which is far beyond an ordinary single request. Anthropic also corrected its BrowseComp chart on launch day because the first version used a simplified method that did not match the system card's standard setup. The case illustrates a basic rule: an agent score belongs to the model, search tools, compaction policy, token budget, and execution harness together.

On OSWorld-Verified computer use, Sonnet 5 reports 81.2%. Sonnet 4.6 was re-evaluated at 78.5% after a zoom-tool fix and an increase in the per-turn limit from 16k to 128k. On Toolathlon's 108 cross-application tasks, Sonnet 5 reaches 54.3% Pass@1, ahead of Sonnet 4.6 at 49.4% but behind Opus 4.8 at 59.9%. Even frontier models remain far from reliable completion when a task spans 32 applications and 604 tools.

Professional-work evaluations show the same mixed picture. In GDPval-AA v2, independently run by Artificial Analysis, Sonnet 5 has an Elo of 1618, statistically tied with Opus 4.8 at 1615. On Real-World Finance v2's 294 complex finance tasks, Sonnet 5 reaches 1219, close to Opus 4.8 at 1222, and wins 69% of pairwise comparisons against Sonnet 4.6. Yet the strict all-pass rate on Legal Agent Benchmark is only 8.92%. Satisfying most rubric criteria on average and delivering a fully correct professional work product are still very different outcomes.

Independent tests show another side: stronger, but token-hungry

Artificial Analysis gives the adaptive-reasoning, max-effort Sonnet 5 profile an Intelligence Index of about 53.35 and an output speed near 71.3 tokens per second. The more revealing number is total output: roughly 300M tokens across its Intelligence Index suite, compared with an average near 63M among the comparison set. The organization reports a total evaluation cost of about ,010.12.

That does not mean every user request will become verbose. Artificial Analysis is testing an extreme-effort profile on its own task mix and harness. But its result agrees with the CursorBench effort curve: part of Sonnet 5's capability comes from being willing to explore longer, call more tools, and verify more work. Under token-based pricing, list price is only one term in the cost equation.

AA-Briefcase in the system card provides a similar signal. The benchmark simulates multi-week knowledge projects with thousands of files and connected tasks. Sonnet 5 averaged 183 turns, compared with 55 for Opus 4.8 and 67 for Fable 5. Its result quality was statistically close to Opus 4.8, but the path to that result was much longer. For long-running agents, “can finish” and “can finish efficiently” remain separate questions.

Lower price does not guarantee a cheaper completed task

Official Claude API pricing has two phases:

PeriodInput / MTok5-minute cache write1-hour cache writeCache hitOutput / MTok
Through 2026-08-31.50
.20
From 2026-09-01.75
.30

The introductory price is below Sonnet 4.6's /. If we consider only the new tokenizer mapping identical text to 1.0-1.35 times as many tokens, the theoretical relative cost of that text is about 67%-90% of the older model during the promotion, then about 100%-135% at standard pricing. Anthropic describes the launch pricing as designed to keep migration roughly cost-neutral, but actual outcomes also depend on generated length, thinking, tool calls, caching, and retries.

The more useful unit is total cost per acceptable completed task. If Sonnet 5 spends more tokens but completes in one run what previously needed three retries, total cost can fall. If it performs unnecessary long reasoning on a simple job, a cheaper unit price can be erased. Whether medium is sufficient, whether high improves reliability, and whether max has worthwhile marginal value can only be answered by repeated tests on the same task set.

Safety and alignment improve, but the problems do not disappear

Anthropic's launch page says Sonnet 5 is better than Sonnet 4.6 at refusing malicious requests, resisting prompt injection, and reducing hallucination and sycophancy. The system card provides a fuller and less tidy picture. Constitutional adherence, misuse robustness, self-initiated risky behavior, hallucination, and sycophancy generally improve, while small regressions appear in susceptibility to some harmful system prompts, prefills, and instructions to deceive users. Absolute rates were described as low, but they remain relevant.

Agentic safety tests show a clear gain in indirect prompt-injection robustness. In cyber-related Claude Code cases, the model refuses malicious requests much more reliably, with a slight increase in over-refusal on dual-use and benign requests. Its broader “wet blanket” behavior, meaning responses that are excessively discouraging, dismissive, or moralizing, is also slightly worse than Sonnet 4.6. Reducing sycophancy while preserving warmth and avoiding unnecessary refusal remains a tradeoff.

Evaluation awareness is another notable finding. The system card says explicit verbal recognition of being evaluated affected about 6% of rollouts in a relatively realistic misalignment and misuse evaluation, while internal representations could distinguish evaluation from real internal-use transcripts fairly well. Anthropic says observed behavioral effects have so far been modest, but calls the trend worthy of close monitoring. A model that knows it is taking a test may behave differently in benchmarks and deployment.

Sonnet 5 does not advance Anthropic's overall capability frontier, and its dangerous cyber capability is substantially below current Opus and Mythos models. In the Firefox 147 exploit evaluation, neither Sonnet 4.6 nor Sonnet 5 produced a complete working exploit; both had a 0.0% full-success rate, although Sonnet 5 had a somewhat higher partial-success rate. Anthropic therefore launches it with real-time cyber safeguards enabled by default, making it the first Sonnet-tier model with that protection.

Behavioral changes that matter in practice

Beyond capability scores, Sonnet 5 has constraints that directly change the user and developer experience. Non-default temperature, top_p, or top_k values return a 400 error, so style and variety must be controlled more through system instructions and examples. Manual budget_tokens is no longer accepted, and assistant-message prefilling remains unsupported. Applications that relied on older sampling controls or fixed assistant prefixes cannot treat this as a pure model-name swap.

Its literal handling of explicit scope makes task specification more important. Providing the objective, constraints, available tools, completion criteria, and output format in the first turn generally supports greater autonomy and may reduce repeated exploration. For a complex task, raising effort is usually better than repeatedly prompting the model to “think harder.” For a simple task, explicit limits on length and tool use can keep open-ended space from turning into needless exploration.

Long context still requires information design. Putting an entire corpus into a 1M window does not guarantee the model will identify the decisive evidence. Chunking, source labels, retrieval order, context compaction, and final verification continue to shape the outcome. Sonnet 5 provides a larger workspace and a stronger worker; it does not eliminate the need to organize the work.

Where Sonnet 5 fits, and where it may not

The strongest cases suggested by current evidence are coding agents that need repeated tool calls, cross-file debugging and repository understanding, research with search and code execution, computer use, long-document processing, finance and legal work, and other professional tasks that need near-flagship ability without flagship pricing on every run.

It is not automatically the best default for everything. Simple classification, short summaries, fixed-schema extraction, and high-volume question answering may be cheaper with a smaller model or lower effort. The hardest reasoning and accuracy-critical work may still favor Opus or another flagship. Anthropic itself recommends Opus 4.8 for approved cybersecurity work that needs fewer safeguards. Products that depend on a warm conversational voice, creative variety, or consistently short output also need to test Sonnet 5's cooler, more literal, and potentially longer default behavior.

A sound selection process does not ask where Sonnet 5 ranks in the abstract. It builds a task set that represents real work, runs at least two effort levels repeatedly, and measures full completion rate, human rework, total tokens, time to first token, end-to-end latency, tool errors, and output consistency. Model choice is ultimately a joint optimization of quality, time, cost, and risk.

What remains unknown

First, most detailed capability and safety results are still run or compiled by Anthropic. CursorBench and Artificial Analysis add independent evidence, but they do not reproduce the full system card. Second, many headline scores depend on max effort, very large token budgets, context compaction, and specialized tools; they should not be mistaken for default API behavior.

Third, the evaluations themselves continue to move. Anthropic corrected the BrowseComp chart on launch day. OSWorld scores changed after a zoom-tool bug fix and a larger per-turn output limit. CursorBench moved to version 3.2 in July and changed its task set. A harness and methodology can move the number substantially even when the underlying model is unchanged.

Fourth, there is no single answer for how the new tokenizer, default thinking, and stronger tool tendency affect every language, codebase, and task length. The introductory price ends after 2026-08-31, changing the economics of the same workload. Finally, 1M context, 128k output, and longer agent trajectories raise the capability ceiling while also increasing timeout risk, error accumulation, unintended tool actions, and audit difficulty.

Conclusion

The most important thing about Claude Sonnet 5 is not where it lands on one leaderboard. It is that agentic capability is moving from expensive flagships into the expected feature set of a mid-tier model. Sonnet 5 is better than Sonnet 4.6 at sustained coding, search, tool use, and professional work, while effort and adaptive thinking let one model cover operating points from quick answers to long autonomous runs.

That capability is not free. The new tokenizer maps the same text to more tokens, high effort can create much longer trajectories, and independent tests show that the model can spend heavily to reach stronger results. Safety measures generally improve, while over-refusal, cooler tone, evaluation awareness, and narrow regressions remain.

The best description of Sonnet 5 is therefore neither “a cheaper Opus” nor “a more expensive Sonnet 4.6.” It is a new kind of mid-tier agent model: a materially higher ceiling, more control knobs, and value that depends more heavily on task design and measurement. The decisive metrics remain completed-task success, human rework, total time, and total cost.

Sources