Claude Sonnet 5 Goes Default in Claude Code 2.1.197 with a 1M-Token Context Window, $2/$10 Per Mtok Introductory Pricing, and Cyber Safeguards On by Default

Claude Sonnet 5 Goes Default in Claude Code 2.1.197 with a 1M-Token Context Window, $2/$10 Per Mtok Introductory Pricing, and Cyber Safeguards On by Default

lschvn

Anthropic announced Claude Sonnet 5 on 2026-06-30, and Claude Code v2.1.197 (released 2026-06-30T17:56:37Z, the same day) made it the default model. The launch is the first Sonnet-line model that closes the agentic gap with Opus 4.8, ships a native 1M-token context window, and lands on introductory pricing of $2 per million input tokens and $10 per million output tokens through August 31, 2026, then $3/$15 per Mtok. Sonnet 5 is the new default for Free and Pro plans in Claude and the default model in Claude Code on update. The release ships with cyber safeguards on by default, a refreshed tokenizer, and rate-limit increases sized to absorb the higher token usage of the new effort-level controls.

The Sonnet 5 launch is the third major Anthropic event of the last three weeks. The June 12 Fable 5 distillation guardrails piece covered Anthropic's first public distillation disclosure naming DeepSeek, Moonshot AI, and MiniMax, and the June 13 Fable 5 / Mythos 5 US export control suspension piece covered the temporary worldwide suspension triggered by the June 12 US Commerce directive. The Fable 5 service resumes globally on July 1, the day after Sonnet 5 launches. The pairing is the same pattern Anthropic has used since the Project Glasswing report on April 7: one model line's restrictions land the same week as a smaller, cheaper model line's expansion.

What Sonnet 5 actually changes

The launch post positions Sonnet 5 as the model that lets the agentic AI era return to the Sonnet line. Claude Sonnet 3.5, 3.6, and 3.7 were the first models that showed strong coding and tool use; over the last year the clearest gains in agentic capabilities were on Opus-class models. Sonnet 5 narrows that gap, with performance close to Opus 4.8 at lower prices, on the two agentic evaluations Anthropic highlighted in the launch post: BrowseComp (agentic search) and OSWorld-Verified (computer use). The post shows cost-performance curves at different effort levels, with Sonnet 5 covering a much wider range of cost-performance options than Sonnet 4.6 and matching Opus 4.8 on some tasks at higher effort levels. Opus 4.8 is priced at $5/$25 per Mtok; Sonnet 5 at standard pricing ($3/$15) is 40% cheaper on both input and output, with a 60% cheaper effective price at the introductory tier.

The new tokenizer changes how Sonnet 5 processes text. The same input maps to 1.0 to 1.35x more tokens than the Sonnet 4.6 tokenizer, depending on content type. The change is similar to the one Anthropic introduced with Claude Opus 4.7. The introductory pricing is set so the transition to Sonnet 5 is roughly cost-neutral for users coming from Sonnet 4.6 at the same workload.

Claude Code 2.1.197 ships the model and a 1M-token context

The Claude Code 2.1.197 release notes are one line: "Introducing Claude Sonnet 5: now the default model in Claude Code, with a native 1M-token context window and promotional pricing of $2/$10 per Mtok through August 31. Update to version 2.1.197 for access." The 1M-token context window is the largest Anthropic has shipped on a Sonnet-line model, and it lands on the day Anthropic raises rate limits across Chat, Cowork, Claude Code, and the Claude Platform to absorb the higher token usage of the new effort-level controls. The new effort levels let Claude Code users select a cost-performance point per session, similar to the cost-performance curves in the launch post.

The 2.1.197 release follows the v2.1.196 release the day before (2026-06-29T23:27:32Z), which added org-default models, clickable Cmd/Ctrl-click file attachments that open in Finder/Explorer, and a security fix for .mcp.json servers. The MCP fix is worth flagging on its own: claude mcp list and claude mcp get no longer spawn servers that a repo self-approved via a committed .claude/settings.json. Untrusted workspaces now show ⏸ Pending approval and require an explicit user gesture to start the server, which closes a trust gap that the prior behavior quietly relied on the developer to notice. The same release also fixed mid-turn crash recovery for Remote sessions (interrupted sessions now auto-resume on the next worker), rate-limit telemetry over-counting under parallel requests, and /context showing 0 tokens for all tool groups on Bedrock.

Safety, cyber safeguards, and the system card

Anthropic's pre-deployment safety evaluations found Sonnet 5 to be an overall improvement on Sonnet 4.6. The three concrete gains: lower hallucination and sycophancy rates, lower misaligned-behavior rate on the automated behavioral audit, and tighter agentic safety, with the model better at refusing malicious requests and resisting hijack attempts in prompt-injection attacks. The one regression: on the same audit, Sonnet 5 scores somewhat higher on misaligned behavior than Opus 4.8 and Claude Mythos Preview. The launch post and the system card both state the trade-off explicitly.

On cyber, Sonnet 5 was never deliberately trained on cybersecurity tasks. It can perform some routine, non-harmful cyber work, but on the Firefox 147 exploit-development evaluation developed in collaboration with Mozilla, neither Sonnet model could develop a working exploit (both at 0.0%); Sonnet 5 has a slightly higher partial-success rate than Sonnet 4.6, which Anthropic attributes to general-intelligence improvements rather than specific training. Both Sonnet models have substantially poorer cyber capabilities than Opus 4.8 and Mythos 5. Because Sonnet 5 is somewhat stronger than Sonnet 4.6 on these tasks, it ships with cyber safeguards on by default, the same set as Opus 4.7 and 4.8. The Fable 5 safeguards, which block a wider range of cybersecurity tasks, are stricter.

The full Sonnet 5 system card is published alongside the launch post and reports a broader set of evaluations in detail. The Cyber Verification Program is available on the native Claude Platform, Claude Platform on AWS, and Claude in Microsoft Foundry, and is coming soon on Claude in Google Vertex.

Why this matters for TypeScript and web developers

The Claude Code audience is the one that gets the immediate effect. Every new Claude Code session on v2.1.197+ runs on Sonnet 5 by default, with a 1M-token context window that covers an entire medium-sized monorepo for an agentic edit, and a per-token cost that is unchanged from Sonnet 4.6 in practice (the introductory tier is set to absorb the 1.0 to 1.35x tokenizer inflation). The cost-performance point of the new effort-level controls means a developer can pick a cost-effective model for routine refactors and a more capable model for the long-horizon tasks, in the same session, without switching out of Claude Code. The MCP trust fix in v2.1.196 closes a quiet supply-chain risk for teams that have been running Claude Code against repos with a committed .claude/settings.json, and the 2.1.197 release lands a model that is, on Anthropic's own numbers, the first Sonnet-line model that can stand in for Opus 4.8 on the agentic work the Claude Code audience does every day.

Frequently Asked Questions

Fastify v5.9.0 Adds `request.mediaType` and `onMaxParamLength`, Hardens `forwarded` Header Trust, Chunks Large HTTP/2 Replies, and Moves Type Tests to TSTyche

Fastify v5.9.0, published on 2026-06-28 (github.com/fastify/fastify), is the first minor release of the v5 line in 2026 and a substantial 65-PR cycle. The headline features are `request.mediaType` (a typed accessor for the negotiated media type, [#6653](https://github.com/fastify/fastify/pull/6653) by climba03003), `onMaxParamLength` route option ([#6716](https://github.com/fastify/fastify/pull/6716) by climba03003), and a security fix that no longer trusts `X-Forwarded-Host` and `X-Forwarded-Proto` when the incoming socket is missing ([#6684](https://github.com/fastify/fastify/pull/6684) by mcollina). The cycle ships an HTTP/2 buffer-chunking fix for large replies ([#6746](https://github.com/fastify/fastify/pull/6746) by mcollina), three schema-related performance wins (deferred `getSchemaSerializer` content-type parsing #6692, cached `ContentType` objects in `ContentTypeParser` #6694, `typeof` guard before `toString.call` in `send` / `onSendEnd` #6693 by aquie00t), Node.js 26 added to the test matrix ([#6728](https://github.com/fastify/fastify/pull/6728) by Fdawgs) and Node.js 20 dropped from the yarn CI matrix ([#6662](https://github.com/fastify/fastify/pull/6662) by Tony133), the migration of the type-test suite from hand-rolled `expect-type` to [TSTyche](https://github.com/mrazauskas/tstyche) ([#6532](https://github.com/fastify/fastify/pull/6532) by mrazauskas, with follow-ups #6726 and #6727), and a TypeScript-only fastify-plugin v6.0.0 bump. Other notable fixes: trailer `res.end` deduplication (#6676), trailer duplicate-completion guard (#6714), `error.code` on routing errors (#6678), `hasRequestDecorator` / `hasReplyDecorator` catching constructor-assigned built-ins (#6753), `getValidationFunction()` allowed to return `undefined` (#6665), and a socket `_meta` clear that closes a keep-alive leak (#6799).

Claude Code 2.1.198 Makes Claude in Chrome Generally Available, Lets Background Agents Commit, Push, and Open Draft PRs, Adds `/dataviz` Skill, and Brings Claude Platform on AWS to the Gateway

Anthropic released Claude Code [v2.1.198](https://github.com/anthropics/claude-code/releases/tag/v2.1.198) on 2026-07-01T20:45:36Z, the second consecutive day of Claude Code shipping after v2.1.197 (the Sonnet 5 default release) the day before. The headline change is that Claude in Chrome is now generally available inside Claude Code: the browser-side assistant that was a research preview moves to a stable channel and is no longer gated behind a feature flag or a waitlist. The release also lands the first end-to-end automation for background agents in `claude agents`, which now commit, push, and open a draft pull request when they finish code work in a worktree, instead of stopping to ask for permission. Other notable additions: a `/dataviz` skill for chart and dashboard design with a runnable color-palette validator, a Gateway upstream for Claude Platform on AWS (`anthropicAws`) with model-not-found responses advancing the failover chain, a built-in Explore agent that now inherits the main session's model (capped at opus) instead of running on Haiku, and subagents that inherit the parent session's extended thinking configuration. The release also removes the `/agents` wizard and replaces it with the conversational flow, fixes a long list of reliability bugs around background agents, network drops, and platform auth, and improves syntax highlighting by upgrading to highlight.js 11.

Related articles

More coverage with overlapping topics and tags.

Claude Code Issue #74066: Users Report Cross-Workspace Context Bleed on Sonnet 5, Anthropic Has Not Yet Responded
ai

Claude Code Issue #74066: Users Report Cross-Workspace Context Bleed on Sonnet 5, Anthropic Has Not Yet Responded

An open bug filed against Claude Code on 2026-07-04 by an [Enterprise ZDR](https://docs.anthropic.com/en/docs/build-with-claude/zero-data-retention) user describes a working session on Sonnet 5 that suddenly starts referencing an unrelated Minecraft temple build, then doubles down on the wrong task in its recap. The reporter (GitHub: [@milesrichardson-edb](https://github.com/milesrichardson-edb), issue [anthropics/claude-code#74066](https://github.com/anthropics/claude-code/issues/74066)) is on Enterprise Zero Data Retention, the tier Anthropic specifically advertises as session-isolated. Triage on the reporter's local session JSONL at `~/.claude/projects/<encoded-cwd>/<session-id>.jsonl` finds the leaked text is not in the transcript, ruling out a local context bleed by file overlap. Four other users in the comments (with work histories going back to last year) describe near-identical behavior across Claude Code, Claude Mobile, and Claude deep research. The most plausible architectural fit is shared KV-cache state in inference ([per @yv3nne in the comments](https://github.com/anthropics/claude-code/issues/74066#issuecomment-4880448776)), but no Anthropic engineer has commented on the issue in the 22 hours since it was filed, and the issue reached the top of [Hacker News](https://news.ycombinator.com/item?id=42481789) on 2026-07-04. The tone in the thread is split: half suspecting a real platform cache reuse, half suspecting a [sonnet-5-specific hallucination triggered by a Pygments lexer](https://github.com/anthropics/claude-code/issues/74066#issuecomment-4880334711). Both readings are credible.
Claude Code 2.1.199 Adds Stacked Slash-Skill Invocations, Fixes Subagent Error Reporting, the Background-Agent Daemon Crash Loop on Linux, and the Streaming-Response Discard Bug
ai

Claude Code 2.1.199 Adds Stacked Slash-Skill Invocations, Fixes Subagent Error Reporting, the Background-Agent Daemon Crash Loop on Linux, and the Streaming-Response Discard Bug

Anthropic released Claude Code [v2.1.199](https://github.com/anthropics/claude-code/releases/tag/v2.1.199) on 2026-07-02, one day after the v2.1.198 feature release (Chrome GA, background-agent auto-PR, /dataviz, Gateway on AWS) and two days after v2.1.197 made Sonnet 5 the default model. v2.1.199 is a bug-fix release with 24 entries: one new feature (stacked slash-skill invocations load up to 5 leading skills in one prompt), and a long list of reliability fixes for subagent error reporting, the background-agent daemon on Linux, streaming-response preservation on mid-stream API errors, SSL/TLS error handling behind corporate proxies, plan mode tool-call handling, and a per-env retry policy that no longer caps the user-tunable retry count at 15. Most of the items are in the background-agent / subagent area, which is consistent with the v2.1.197 + v2.1.198 direction of treating delegation as the product surface for Sonnet 5.
Claude Code 2.1.198 Makes Claude in Chrome Generally Available, Lets Background Agents Commit, Push, and Open Draft PRs, Adds `/dataviz` Skill, and Brings Claude Platform on AWS to the Gateway
ai

Claude Code 2.1.198 Makes Claude in Chrome Generally Available, Lets Background Agents Commit, Push, and Open Draft PRs, Adds `/dataviz` Skill, and Brings Claude Platform on AWS to the Gateway

Anthropic released Claude Code [v2.1.198](https://github.com/anthropics/claude-code/releases/tag/v2.1.198) on 2026-07-01T20:45:36Z, the second consecutive day of Claude Code shipping after v2.1.197 (the Sonnet 5 default release) the day before. The headline change is that Claude in Chrome is now generally available inside Claude Code: the browser-side assistant that was a research preview moves to a stable channel and is no longer gated behind a feature flag or a waitlist. The release also lands the first end-to-end automation for background agents in `claude agents`, which now commit, push, and open a draft pull request when they finish code work in a worktree, instead of stopping to ask for permission. Other notable additions: a `/dataviz` skill for chart and dashboard design with a runnable color-palette validator, a Gateway upstream for Claude Platform on AWS (`anthropicAws`) with model-not-found responses advancing the failover chain, a built-in Explore agent that now inherits the main session's model (capped at opus) instead of running on Haiku, and subagents that inherit the parent session's extended thinking configuration. The release also removes the `/agents` wizard and replaces it with the conversational flow, fixes a long list of reliability bugs around background agents, network drops, and platform auth, and improves syntax highlighting by upgrading to highlight.js 11.

Comments

Log in Log in to join the conversation.

No comments yet. Be the first to share your thoughts.