Claude docs changes for July 21st, 2026 [diff]

Executive Summary

  • Major model launch documented: Claude Fable 5, Claude Mythos 5 (limited availability via Project Glasswing), Claude Opus 4.8, and Claude Sonnet 5 — all with 1M-token context, adaptive thinking on by default, and new migration/pricing guidance.
  • Brand-new "CLI, SDKs & Libraries" documentation section: the official ant CLI, SDK references for Python, TypeScript, C#, Go, Java, PHP, and Ruby, plus new Apple Foundation Models and OpenAI SDK compatibility integrations.
  • New comprehensive claude_api_primer.md quickstart guide and a full AWS IAM actions reference for Claude Platform on AWS.
  • Claude Code 2.1.216 fixes a quadratic slowdown in long sessions, several worktree/git safety issues, and adds a sandbox.filesystem.disabled setting alongside various UX improvements (/fork, /context, /rewind).
  • Rate limits and pricing tiers overhauled — numbered tiers (1-4, Enterprise) renamed to Start/Build/Scale/Custom with substantially higher throughput, while Priority Tier is closed to new purchases.

New Claude Code versions

2.1.216

New features

  • Added sandbox.filesystem.disabled setting to skip filesystem isolation while keeping network egress control

Existing feature improvements

  • Improved the /fork confirmation to one line with the new session's name, claude attach id, and a note when the copy shares your checkout
  • Improved the /ultrareview diff-too-large error to show configured limits, measured diff size, and largest contributing files
  • /context now shows an explicit warning when the conversation exceeds the context window, and a failed /compact displays as an error
  • /rewind no longer restores or deletes files through symlinks or hard links at tracked paths and reports how many paths it skipped
  • Background sessions: /mcp and /install-github-app now park a "needs input" request in the agent view when no client is attached

Major bug fixes

  • Fixed a slowdown in long sessions where message normalization cost grew quadratically with the number of turns, causing multi-second stalls and slow resumes
  • Fixed auto mode denying commands with "HTTP 401" classifier errors after the OAuth token expired or rotated mid-session
  • Fixed Claude Code on the web re-asking the same question and dropping your answer after the session sat idle for a few minutes
  • Fixed resumed background agent sessions reverting to the default agent: the agent's prompt and tool restrictions are now restored
  • Fixed worktree-isolated subagents redirecting git into the shared checkout via git -C, --git-dir, or GIT_DIR/GIT_WORK_TREE
  • Fixed worktree sessions landing in another project's leftover worktree when the working directory did not match the selected project
  • Fixed claude daemon stop --any potentially terminating an unrelated process via a stale legacy daemon lockfile
  • Fixed MCP re-authenticate revoking working credentials before the new sign-in succeeds
  • Fixed cloud sessions dropping the in-flight message when the session's container restarts mid-turn — the interrupted turn now re-runs on resume instead of leaving the session unresponsive

Claude Code changes

Changed documents

agent-loop [Source]

  • "auto" permission mode description updated: now says the model classifier approves or denies "permission prompts" (rather than "each tool call"), clarifying that auto mode gates prompts, not every tool call. [line 197] [Source]

custom-tools [Source]

  • New guidance on running the weather tool example end-to-end (python weather.py / npx tsx weather.ts). [line 169] [Source]
  • Documents that tool search is now on by default for SDK MCP tools (deferred loading), and adds the alwaysLoad: true option (via extras in tool() or createSdkMcpServer()) to keep a tool's full schema always in the initial prompt. [line 258] [Source]
  • Notes example output may now include a ToolSearch call since tool search is on by default. [line 759] [Source]

overview [Source]

  • Setup instructions expanded: adds npm init -y, npm pkg set type=module, and npm install --save-dev tsx for the TypeScript quickstart, with guidance on CommonJS projects using .mts files. [line 55] [Source]
  • Behavior change: both the TypeScript and Python SDKs now bundle a native Claude Code binary (previously only TypeScript did). [line 88] [Source]
  • New run instructions for the quickstart example (npx tsx agent.ts, uv run agent.py, python3 agent.py). [lines 153-160] [Source]
  • Playwright MCP example now explicitly sets allowed_tools=["mcp__playwright__*"] / allowedTools: ["mcp__playwright__*"] rather than relying on implicit access. [line 368] [Source]

permissions [Source]

  • auto permission mode description updated: model classifier approves or denies "permission prompts" rather than "each tool call". [line 105] [Source]

python [Source]

  • Agent tool input: run_in_background clarified to be background-by-default; new team_name field (deprecated, ignored); mode field is now deprecated/ignored since subagents inherit the parent session's permission mode. [lines 2381-2384] [Source]
  • New modelsUsed field on Agent tool completed and async_launched results, listing models used in order with consecutive repeats collapsed (requires v2.1.212+); resolvedModel semantics clarified for both variants. [lines 2404-2405] [lines 2445-2446] [line 2467] [Source]
  • AskUserQuestion: options gain a new preview field; input schema gains annotations (per-question preview/notes) and metadata (analytics); output schema gains response (freeform reply), annotations, and afkTimeoutMs (set when the dialog auto-resolved due to inactivity). [line 2485] [lines 2495-2499] [lines 2517-2521] [Source]

quickstart [Source]

  • Behavior change: both TypeScript and Python SDKs now bundle a native Claude Code binary (previously TypeScript only). [line 82] [Source]
  • auto mode description updated: classifier approves/denies "permission prompts" rather than "each tool call". [line 333] [Source]

typescript [Source]

  • New tool() extras: searchHint (capability phrase shown in the deferred-tool list for tool search) and alwaysLoad (keeps a tool's schema always in the initial prompt). [line 111] [line 123] [Source]
  • createSdkMcpServer() gains new instructions option (server instructions surfaced to the model) and alwaysLoad option (disables deferral for every tool on the server). [line 160] [lines 172-174] [Source]

agent-view [Source]

  • "Needs input" state now also covers an MCP authentication or settings request held by a session with no terminal attached. [line 96] [Source]
  • Behavior change: /install-github-app and the /mcp settings list now work normally while attached to a background session; when nobody is attached, the session surfaces under "Needs input" instead of being refused outright. [lines 159-160] [Source]

authentication [Source]

  • New login path documented: gateway sign-in for organizations routing through a cloud gateway, selected via forceLoginMethod: "gateway"; it doesn't authenticate against an Anthropic organization so forceLoginOrgUUID doesn't apply to it. [line 123] [line 127] [Source]

claude-directory [Source]

  • Behavior change: orphaned plugin versions are now deleted after 14 days (was 7 days). [line 119] [Source]

cli-reference [Source]

  • --disallowedTools: a rule naming EndConversation can no longer remove it while any other tool remains. [line 71] [Source]
  • --tools: a list that omits EndConversation no longer removes it; "" removes it only when no MCP tools remain. [line 117] [Source]

env-vars [Source]

  • New CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH variable: caps content-bearing OpenTelemetry attribute length (default 61440 / 60 KB); requires v2.1.214+. [line 258] [Source]
  • New CLAUDE_PID variable: Claude Code sets this in subprocesses it spawns; used on Linux to refuse a pkill pattern matching itself; requires v2.1.214+. [line 327] [Source]
  • New OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT variable (and LOGRECORD/SPAN variants): standard OTel SDK attribute length limit, combined with CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH to determine the effective cap. [line 377] [Source]
  • OTEL_LOG_RAW_API_BODIES: inline body truncation now uses the configurable content limit instead of a fixed 60 KB. [line 379] [Source]

errors [Source]

  • New error section: "Failed to update spend limit or auto-reload" — covers rejected /usage-credits spend-limit/auto-reload changes (v2.1.216). [line 346] [Source]
  • New error section: "Socket is closed" — a Windows-behind-corporate-proxy dropped-tunnel failure is now automatically retried (fixed in v2.1.214, previously fatal). [line 647] [Source]
  • New error section: "Context exceeds the token limit" — explains the new /context warning shown when usage exceeds the context/compaction window, naming /compact//clear as remedies (v2.1.216). [line 748] [Source]
  • New error section: "Settings file exceeds the 2MiB limit" — --settings now rejects files over 2MiB or non-regular files, fixing unbounded memory growth (v2.1.214). [line 1082] [Source]
  • New error section: "Workspace not trusted when starting Remote Control" — claude remote-control/claude rc now exits with a clear message when the workspace isn't trusted (v2.1.214+). [line 1095] [Source]
  • New error section: "Diff is too large for ultrareview" — /code-review ultra and claude ultrareview now refuse oversized diffs/PRs up front, reporting file/line limits and largest contributing files (v2.1.216). [line 1143] [Source]
  • New error section: "Failed to resume the conversation" — claude --resume picker now shows a clear failure message and exits instead of hanging (v2.1.216). [line 1157] [Source]
  • New error section: "pkill pattern matches the Claude Code process" — on Linux, Claude Code now tests pkill patterns via pgrep first and refuses ones matching its own PID (v2.1.214). [line 1264] [Source]
  • New error section: "Session agent no longer available" — resuming a session whose custom --agent no longer exists now warns and falls back to default tools/system prompt (v2.1.216). [line 1312] [Source]
  • New "Rewind warnings" section — /rewind now skips (rather than overwrites) symlinks/hard-links/non-regular files and reports a partial-restore warning (v2.1.216). [line 1364] [Source]
  • Additional fixes: auto-mode classifier now auto-refreshes an expired/rotated OAuth token and retries once [line 208]; the "waiting for API response" stall banner now waits 90s (not 20s) during advisor calls [line 111]; PDF error messages and size limits updated (100 pages, 20MB) [line 840]. [Source]

fullscreen [Source]

  • New guidance: in screen reader mode, Claude Code always uses the classic renderer except in attached background sessions; /tui fullscreen in other screen-reader sessions now prints an explanation instead of switching. [line 13] [Source]

hooks-guide [Source]

  • WorktreeCreate/WorktreeRemove now also fire for background sessions (creation and deletion). [lines 441-442] [Source]
  • SessionStart matcher/source gains new fork value (in addition to startup, resume, clear, compact). [line 600] [Source]

hooks [Source]

  • PreToolUse/PostToolUse now explicitly skip for EndConversation tool calls. [line 14] [Source]
  • New fork value for SessionStart matcher/source, covering --fork-session, /fork, and /branch. [line 198] [Source]
  • New guidance on if condition directory-pattern matching: a single-segment pattern like Edit(src/**) now matches only the top-level src directory (was any-depth before v2.1.214); use Edit(**/src/**) for any-depth matching. [line 311] [Source]
  • Behavior change: a hook exiting 2 with JSON that fails output-schema validation now still blocks, instead of silently proceeding (fixed v2.1.214). [line 602] [Source]
  • PostToolUse Agent tool_response gains new modelsUsed field (v2.1.212+) and clarifies resolvedModel/backgrounding-transition semantics. [lines 1373-1374] [Source]
  • WorktreeCreate now also fires for background sessions, with path-safety hardening — absolute paths containing ./.. segments or passing through a symlink under the repo root are now refused (new in v2.1.216, closes a symlink-escape risk). [line 2320] [lines 2366-2367] [Source]
  • WorktreeRemove now also fires when deleting a background session's worktree, with the same symlink-safety verification (v2.1.216). [line 2375] [Source]

large-codebases [Source]

  • Added guidance to run /context and check the Memory files list to confirm which CLAUDE.md files loaded. [line 101] [Source]
  • New note: JSON examples show one setting at a time, so add the worktree key alongside existing keys rather than replacing the settings file. [line 202] [Source]

memory [Source]

  • Added guidance to confirm CLAUDE.md loaded via /context and the Memory files list. [line 61] [Source]
  • /init behavior changed: now reads Cursor rules and Copilot rules by default; reading AGENTS.md, Devin/Windsurf/Cline rules now requires CLAUDE_CODE_NEW_INIT=1. [line 126] [Source]
  • Auto memory toggle now explicitly saves autoMemoryEnabled to user settings by default; set it per-project to disable for a single project. [line 300] [Source]
  • /memory now lists CLAUDE.md entries for files that don't exist yet, and selecting one creates it. [line 354] [Source]

monitoring-usage [Source]

  • New resource attribute value: service.name is now claude-code-desktop for sessions started from the Code tab in Claude Desktop (vs claude-code for terminal sessions). [lines 1101-1109] [Source]

network-config [Source]

  • New required hosts added to the allowlist: claude.com (sign-in redirect, doc lookups), http-intake.logs.us5.datadoghq.com and browser-intake-us5-datadoghq.com (telemetry/error reports), formulae.brew.sh (Homebrew update checks), and code.claude.com (doc lookups). [line 119] [lines 127-130] [Source]
  • New env var CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC disables both Datadog telemetry hosts at once. [line 133] [Source]

permission-modes [Source]

  • New carve-out: deny/ask rules apply in every mode including bypassPermissions, but can't block EndConversation while any other tool remains. [line 22] [Source]

permissions [Source]

  • Bare-name and glob-pattern deny/ask rules now documented to be unable to remove EndConversation while any other tool remains. [line 30] [line 124] [Source]
  • "Wrappers" section expanded: now also strips shell builtins command and builtin, and zsh's noglob; does NOT strip command -v or zsh's nocorrect. [line 163] [Source]
  • New behavior: Claude Code strips a leading assignment of known-safe env vars before matching Bash allow rules (e.g. NODE_ENV=test npm test matches Bash(npm test *)). [line 164] [Source]

plugins-reference [Source]

  • WorktreeCreate/WorktreeRemove hook events now also fire for background sessions. [lines 118-119] [Source]
  • Plugin version retention/cleanup grace period doubled from 7 to 14 days. [lines 637-693] [Source]

remote-control [Source]

  • New caveat: the startup trust dialog never saves trust for your home directory, so Remote Control must be started from a project directory. [line 23] [Source]
  • Reminder-notification behavior changed: reminders can now appear in any connected session, not only ones where you manually turned on Remote Control. [line 102] [Source]

routines [Source]

  • Behavior change (v2.1.214): when a routine trigger fires, the session now receives the saved prompt as its assigned task and acts on it directly, rather than as an untrusted notification it could refuse. [line 47] [Source]

sandboxing [Source]

  • Permission-rules description updated with the EndConversation exception. [line 265] [Source]

security-guidance [Source]

  • Python requirement lowered to 3.7+ generally, but agentic commit review and model-backed reviews on third-party providers now require Python 3.10+; the plugin now prefers versioned interpreters python3.13-python3.10. [line 10] [Source]
  • Fallback behavior clarified: first-party auth falls back to single-shot review on SDK/Python issues, while third-party providers instead skip model-backed review entirely. [line 13] [Source]

settings [Source]

  • deny setting documentation now notes it can't remove EndConversation while any other tool remains. [line 349] [Source]

skills [Source]

  • New documented pattern: using ${CLAUDE_SKILL_DIR} identically in both the skill body and an allowed-tools Bash rule lets a bundled script run without a permission prompt. Requires Claude Code v2.1.129+. [lines 259-273] [Source]
  • disallowed-tools frontmatter field documented to be unable to remove EndConversation while any other tool remains. [line 220] [Source]

statusline [Source]

  • New trigger: the status line script now also runs once when a session starts (including on resume), fixing a prior double-run flicker on resume (v2.1.216). [lines 127-135] [Source]
  • New effort field added to subagentStatusLine per-task data, reporting the subagent's configured reasoning effort; requires v2.1.214+. [line 1025] [Source]

sub-agents [Source]

  • EndConversation added to the list of tools unavailable to subagents (it can only end the main conversation). [line 275] [Source]

terminal-config [Source]

  • New note: in screen reader mode, fullscreen rendering doesn't apply — Claude Code always renders as plain scrolling text except in attached background sessions. [line 256] [Source]

tools-reference [Source]

  • New tool added to the reference table: EndConversation — ends the session in rare cases of sustained abusive input or on explicit user request to demonstrate it; requires v2.1.213+. [line 19] [Source]
  • New "EndConversation tool behavior" section: it never prompts and can't be blocked by deny/ask rules while any other tool remains, subagents never get it, and it requires v2.1.213+, a recent-enough model, and an interactive terminal session (not -p, Agent SDK, VS Code, GitHub Actions, or Claude Code on the web; not available on Bedrock/Vertex/Microsoft Foundry/cloud gateway sign-ins). [lines 146-169] [Source]

troubleshoot-install [Source]

  • New troubleshooting entry: claude update/claude doctor hang when a directory (rather than a file) exists at one of the scanned shell-config paths. Fixed in v2.1.214+. [lines 523-525] [Source]

ultrareview [Source]

  • New behavior: when the branch shares no merge base with the base branch, /code-review ultra (and claude ultrareview) now offers a whole-repository review fallback instead of refusing to run. [line 23] [line 74] [Source]

API changes

New Documents

introducing-claude-fable-5-and-claude-mythos-5 [Source]

This page announces Claude Fable 5 (claude-fable-5) and Claude Mythos 5 (claude-mythos-5, limited release via Project Glasswing), both sharing a 1M-token context window, 128k max output, and pricing of $10/MTok input and $50/MTok output. The key differentiator is that Fable 5 includes safety classifiers that can decline requests (returning stop_reason: "refusal"), while Mythos 5 does not; the doc details refusal handling, server-side/client-side/manual fallback options, and billing rules. Both models launch June 9, 2026, carry 30-day data retention as Covered Models, always run adaptive thinking, and support features like effort, task budgets, memory tool, code execution, and compaction.

model-ids-and-versions [Source]

This page documents Claude's model ID and versioning scheme, explaining that starting with the Claude 4.6 generation, IDs use a dateless format (e.g. claude-sonnet-5, claude-opus-4-8) representing a permanently pinned snapshot rather than an evergreen alias, unlike pre-4.6 dated IDs which have separate rolling aliases. It clarifies platform-specific formatting differences across the Claude API, Amazon Bedrock, and Google Cloud, and notes that surrounding serving infrastructure can still change and cause minor behavioral drift even though weights are fixed per ID.

whats-new-claude-4-8 [Source]

This page covers Claude Opus 4.8, a successor to Opus 4.7 with the same 1M-token context and adaptive thinking support. New at launch: mid-conversation system messages (no beta header needed), publicly documented stop_details refusal categories, an effort default of high across all surfaces, a research-preview "fast mode," and a lower prompt-cache minimum of 1,024 tokens.

whats-new-sonnet-5 [Source]

This page introduces Claude Sonnet 5 as a drop-in upgrade for Sonnet 4.6, with adaptive thinking now on by default, manual extended thinking removed, and sampling parameters no longer accepted. It highlights a new tokenizer producing roughly 30% more tokens for the same text, notes Sonnet 5 is the first Sonnet-tier model with real-time cybersecurity safeguards, and states pricing is unchanged at $3/$15 per MTok with an introductory rate of $2/$10 through August 31, 2026.

classification [Source]

This new guide explains when to use Claude instead of traditional ML for classification tasks, surveys common classification use cases by industry, and walks through implementation steps: choosing a model, building a starter prompt, developing test cases, and running evaluations against metrics like accuracy, F1 score, consistency, and bias/fairness.

claude-platform-on-aws-iam-actions [Source]

This reference exhaustively catalogs the 65 IAM actions in the aws-external-anthropic namespace that gate access to Claude Platform on AWS, organized by resource area, and includes a full route-to-action mapping table with CloudTrail classification. It documents the five AWS-managed policies and provides worked example policies for scenarios like single-workspace inference, per-customer isolation, and ZDR feature lockdown, calling out several IAM gotchas that could silently over-permission a workspace.

prompting-claude-fable-5 [Source]

This new guide covers prompting and scaffolding patterns specific to Claude Fable 5 and Claude Mythos 5, framed around long-horizon autonomy: effort-level selection, grounding progress claims during long runs, explicit action boundaries, parallel subagent delegation, and building a persistent memory system. It introduces a "send-to-user" client-side tool pattern for long asynchronous runs and warns that echoing reasoning as response text can trigger the new reasoning_extraction refusal category.

prompting-claude-opus-4-8 [Source]

This new model-specific guide details how to tune prompts for Claude Opus 4.8, covering response verbosity, effort/thinking-depth settings (recommending xhigh for coding/agentic work), tool-use triggering, subagent spawning control, and default design/frontend aesthetics. It gives detailed treatment of code-review harnesses and computer-use resolution tradeoffs.

prompting-claude-sonnet-5 [Source]

This new guide covers Sonnet-5-specific prompting patterns, most notably that adaptive thinking is on by default and manual extended thinking is removed entirely (400 error), as are sampling parameters. It recommends "propose options before building" prompts as a replacement technique and gives a cross-model effort mapping for migration.

claude_api_primer [Source]

This primer is a condensed, example-driven introduction to the core mechanics of the Claude Messages API, covering model IDs, request/response patterns, multi-turn conversations, response prefilling, vision inputs, extended/adaptive thinking, tool definitions and use, and streaming via server-sent events. It's structured as a fast-reference guide with runnable code snippets rather than exhaustive prose, serving as a quick-start cheat sheet for wiring up a working integration.

cli/authentication [Source]

Details every credential option for the new ant CLI: interactive OAuth login (including headless flow and workspace binding), requesting elevated org:admin scope, using the ANTHROPIC_API_KEY environment variable, checking the active credential via ant auth status, and managing multiple workspace-bound profiles.

cli/quickstart [Source]

Introduces the ant CLI as a terminal client for the Claude API, contrasting it with curl by highlighting typed flags/YAML input, @path file inlining, --transform response filtering, and automatic pagination. Walks through installation, authentication, sending a first request, and installing shell completions.

cli/scripting [Source]

Covers task-oriented automation workflows built on the ant CLI, centered on version-controlling API resources (agent, environment, session YAML definitions) and keeping them synced via beta:agents/beta:environments/beta:sessions commands, plus shell scripting patterns for chaining CLI output into follow-up commands.

cli/using [Source]

Explains the ant CLI's cross-endpoint input/output mechanics: the resource action command structure, global flags, output formats and the interactive explorer TUI, reshaping responses with GJSON --transform expressions, and the three ways to pass request bodies.

libraries/apple-foundation-models [Source]

Documents Claude for Foundation Models, a beta Swift package that conforms Claude to Apple's Foundation Models LanguageModel protocol, covering installation, model/effort selection, authentication, streaming, structured output via @Generable, tool use, image input, and error handling, plus a list of Messages API features not exposed through this integration.

libraries/openai-sdk [Source]

Describes the OpenAI SDK compatibility layer that lets developers call Claude using an official OpenAI SDK by changing only the base URL, API key, and model name, positioned as a testing/comparison tool. Details key behavioral differences and exhaustive tables of request/response field and header support status.

middleware [Source]

Documents the middleware/interceptor hook available across the Anthropic client SDKs for running code before a request is sent and after a response is received, covering registration, chaining/ordering rules, interaction with a custom HTTP client, and the built-in refusal-fallback middleware.

cli-sdks-libraries/overview [Source]

The landing page for the new "CLI, SDKs, and libraries" section, introducing the ant CLI, client SDKs (Python, TypeScript, C#, Go, Java, PHP, Ruby), and framework-specific libraries (Apple Foundation Models, OpenAI SDK compatibility), and distinguishing them from higher-level agent runtimes like Claude Code and Claude Managed Agents.

sdks/csharp [Source]

The official Anthropic C# SDK (Anthropic NuGet package, beta), replacing the earlier community tryAGI SDK. Covers client construction, async streaming, typed exceptions, retries/timeouts, pagination, and an IChatClient integration for Microsoft.Extensions.AI including MCP tool interop, plus platform-specific packages for Bedrock, Google Cloud, Foundry, and Claude Platform on AWS.

sdks/go [Source]

The Anthropic Go SDK (github.com/anthropics/anthropic-sdk-go), detailing omitzero-based request field semantics, union types, error handling via *anthropic.Error, retries/timeouts, pagination, and platform integrations for Vertex AI, Amazon Bedrock (including a new NewMantleClient), and Claude Platform on AWS.

sdks/java [Source]

The Anthropic Java SDK reference, using a builder pattern with both synchronous and CompletableFuture-based async clients on OkHttp. Documents streaming helpers, tool use with automatic JSON schema derivation via Jackson, batches, file uploads, a typed exception hierarchy, retries, pagination, and platform integrations.

sdks/php [Source]

Documents the official Anthropic PHP library (beta), installed via Composer alongside a PSR-18 HTTP client. Covers named-parameter usage, SSE-based streaming, typed exception handling, automatic retries, auto-paginating iterators, and platform integration clients for Bedrock, Vertex, AWS, and Microsoft Foundry.

sdks/python [Source]

The Anthropic Python SDK reference, covering both the synchronous Anthropic client and AsyncAnthropic, streaming via client.messages.stream(), tool use with @beta_tool/tool_runner, message batches, structured error handling, retries, auto-pagination, and a Pydantic-based type system.

sdks/ruby [Source]

The Anthropic Ruby gem, providing typed access via net/http with connection pooling and Yard/RBS/RBI type definitions for Sorbet. Covers SSE-based streaming, structured tool-calling with an automatic tool-execution loop via beta.messages.tool_runner, typed errors, retries, pagination, and platform integrations.

sdks/typescript [Source]

Covers the @anthropic-ai/sdk npm package, supporting Node 20+, Deno, Bun, Cloudflare Workers, and Vercel Edge. Details SSE streaming, Zod/JSON-Schema tool definitions run through beta.messages.toolRunner(), MCP helpers for bridging MCP servers into the Claude API, message batches, typed errors, retries/timeouts, and pagination.

Changed documents

glossary [Source]

  • No significant changes.

model-deprecations [Source]

  • New announcement that Claude Mythos Preview will be retired July 21, 2026, with migration guidance to Claude Mythos 5. [line 69] [Source]
  • Model status table updated for the new lineup: claude-fable-5 and claude-opus-4-8 added as Active; claude-opus-4-1-20250805 moved to Deprecated (retiring August 5, 2026); claude-opus-4-20250514 and claude-sonnet-4-20250514 moved to Retired; claude-sonnet-5 added as Active. [lines 75-89] [Source]
  • New "API parameter deprecations" section: temperature, top_p, top_k are deprecated on Claude Opus 4.7+ (including Opus 4.8 and Sonnet 5) and now return a 400 error when set to a non-default value. [lines 209-217] [Source]

choosing-a-model [Source]

  • Fast mode now supported on both Claude Opus 4.8 and Opus 4.7 (previously only Opus 4.6); fast mode on Opus 4.7 is now deprecated, removal July 24, 2026. [line 12] [Source]
  • New "Effort" criterion added to key selection factors, recommending tuning effort over switching models, with xhigh best for coding/agentic use on Opus 4.8/4.7. [line 14] [Source]
  • New introduction of Claude Fable 5 and Claude Mythos 5: 1M-token context by default, up to 128k output tokens, always-on adaptive thinking, priced at $10/$50 per MTok. [lines 61-63] [Source]
  • Model selection matrix updated: Opus 4.7/Sonnet 4.6 rows replaced with Claude Opus 4.8 and Claude Sonnet 5. [lines 69-70] [Source]

migration-guide [Source]

  • New "Claude API skill" automated migration workflow via /claude-api migrate, detecting Bedrock/Claude Platform on AWS/Google Cloud/Microsoft Foundry clients. [lines 13-21] [Source]
  • New "Migrating to Claude Mythos 5" section: always-on adaptive thinking, prefill returns 400, requires 30-day data retention, plus a sub-guide for migrating from Claude Mythos Preview. [lines 23-99] [Source]
  • New "Migrating to Claude Fable 5" section (from Claude Opus 4.8): pricing change, 30-day retention requirement, adaptive thinking always on (behavior change), new safety classifiers with stop_reason: "refusal", opt-in beta fallbacks parameter, and a lower prompt-caching minimum. [lines 101-203] [Source]
  • New "Migrating to Claude Opus 4.8" section: effort now defaults to high across all surfaces, sampling/prefill parameters return 400, mid-conversation system messages now accepted, refusal stop_details now publicly documented. [lines 191-421] [Source]
  • New "Migrating to Claude Sonnet 5" section: introductory pricing $2/$10 per MTok through August 31, 2026; breaking changes for manual extended thinking and sampling parameters (400 errors); new tokenizer producing ~30% more tokens; adaptive thinking on by default; new cybersecurity safety classifiers; Priority Tier not available. [lines 596-741] [Source]

overview [Source]

  • Default recommendation changed to Claude Opus 4.8 for complex agentic coding/enterprise work, pointing to Claude Fable 5 for the highest-capability workloads. [line 9] [Source]
  • New "Claude Fable 5 and Claude Mythos 5" section: Fable 5 is generally available starting June 9, 2026; Mythos 5 is limited-availability via Project Glasswing. [lines 15-19] [Source]
  • Latest models comparison table replaced: now shows Claude Fable 5, Claude Opus 4.8, Claude Sonnet 5, and Claude Haiku 4.5, with updated pricing and extended thinking now "No" for all top-tier models (replaced by adaptive thinking). [lines 23-45] [Source]
  • New note: the effort parameter defaults to high on Opus 4.8 (all surfaces) and Sonnet 5 (Claude API and Claude Code). [line 69] [Source]

pricing [Source]

  • Added new model pricing rows for Claude Fable 5, Claude Mythos 5, Claude Opus 4.8, and Claude Sonnet 5 (introductory $2/$10 through August 31, 2026, then $3/$15). [lines 17-26] [Source]
  • New "Claude Platform on AWS pricing" and "Claude in Microsoft Foundry pricing" sections: billed via Claude Consumption Units (CCUs) at $0.01/CCU through AWS/Azure Marketplace. [lines 74-126] [Source]
  • Fast mode pricing restructured into a per-model table; fast mode for Opus 4.7 is now deprecated (removal July 24, 2026), Opus 4.6 fast mode already discontinued. [lines 163-170] [Source]
  • Rate-limit tier names changed from numbered tiers (Tier 1-4, Enterprise) to named tiers (Start, Build, Scale). [lines 460-462] [Source]

content-moderation [Source]

  • Cost estimate example updated to reference Claude Opus 4.8 (was 4.7), with rescaled cost figures. [lines 92-106] [Source]

customer-support-chat [Source]

  • Added a new "Prerequisites" section specifying required Claude API key, Python 3.9+, and package installation. [lines 7-18] [Source]
  • Recommended model updated from Claude Opus 4.7 to Claude Opus 4.8. [line 141] [Source]

legal-summarization [Source]

  • Recommended/example model updated from Claude Opus 4.7 to Claude Opus 4.8 throughout. [line 157] [Source]
  • Fixed a stray closing parenthesis bug in the meta-summarization prompt f-string. [line 270] [Source]

overview [Source]

  • No significant changes.

ticket-routing [Source]

  • Added a new "Prerequisites" section requiring a Claude API key, familiarity with an existing ticketing system, and a sample set of historical tickets. [lines 7-11] [Source]

claude-api-skill [Source]

  • Language coverage expanded: the skill now covers 8 languages (Python, TypeScript, C#, Go, Java, PHP, Ruby, cURL) for both the Messages API and Managed Agents. [line 12] [Source]
  • New "Refusal fallback configuration" migration capability: adds stop_reason: "refusal" handling and sets up a fallback retry path when the target model is Claude Fable 5. [line 137] [Source]

admin [Source]

  • No significant changes.

admin/api_keys [Source]

  • New callout clarifies that end users should view/create their own API keys in Console Settings → API keys, distinguishing this Admin API page from personal key management. [line 9] [Source]

admin/api_keys/list [Source]

  • Same new callout added directing users to Settings → API keys for personal key management vs. this Admin API listing endpoint. [line 9] [Source]

admin/api_keys/retrieve [Source]

  • Page renamed to "Retrieve API Key (Admin API)" with an expanded description clarifying this requires an Admin API key and never returns the key's secret value. [lines 11-15] [Source]

admin/api_keys/update [Source]

  • Same new callout added pointing users to Settings → API keys for personal key management vs. this Admin API update endpoint. [line 9] [Source]

beta-headers [Source]

  • New endpoint-specific beta headers documented: mcp-tunnels-2026-06-22 for /v1/tunnels and agent-memory-2026-07-22 for /v1/memory_stores. [lines 75-77] [Source]
  • New guidance: on memory store endpoints, agent-memory-2026-07-22 replaces managed-agents-2026-04-01, and sending both returns a 400 error. [line 81] [Source]

claude-code/routines-fire [Source]

  • 500 api_error guidance expanded to recommend retrying with exponential backoff and contacting support with the request ID. [line 150] [Source]

errors [Source]

  • New 409 conflict_error HTTP error code documented for resource-state conflicts. [line 16] [Source]
  • New documented behavior: official SDKs automatically retry transient failures with exponential backoff twice by default, honoring retry-after. [line 29] [Source]
  • New "SDK error types" section documenting typed exception classes per language. [line 67] [Source]
  • New "Thinking blocks cannot be modified" validation-error section explaining the 400 error returned when thinking blocks are edited before resubmission. [line 157] [Source]
  • New "Outbound web identity federation disabled (Claude Platform on AWS)" section. [line 169] [Source]

ip-addresses [Source]

  • New guidance for Claude Platform on AWS: the inbound endpoint resolves to AWS IP ranges, while outbound tool calls still originate from Anthropic's listed ranges. [line 9] [Source]

overview [Source]

  • New authentication method: Authorization: Bearer <token> via short-lived tokens through Workload Identity Federation. [lines 18-50] [Source]
  • API keys now have configurable expiration, set at creation time. [line 60] [Source]
  • Entirely new "Pagination" section documenting the page/next_page/prev_page cursor scheme and the alternate after_id/before_id scheme. [lines 132-146] [Source]
  • Rate limit increases now self-service via a "Request rate limit increase" button, replacing the prior "contact sales" flow. [line 162] [Source]

rate-limits [Source]

  • Usage tiers renamed/restructured from Tier 1-4 to Start/Build/Scale/Custom with a simplified monthly spend cap table. [lines 36-42] [Source]
  • Messages API rate limits increased substantially across the board (RPM from 50 to 1,000; ITPM/OTPM raised 10-65x depending on model); new rows for Claude Fable 5 and Claude Sonnet 5. [lines 145-154] [Source]
  • New "Requesting higher limits" section: self-service button replaces the old Contact Sales flow. [lines 211-221] [Source]

service-tiers [Source]

  • Priority Tier capacity commitments are no longer available for new purchase; only existing commitments continue through their contract end date. [line 9] [Source]
  • Priority Tier supported-models list updated: now includes Claude Fable 5 and Claude Opus 4.8, but excludes Claude Sonnet 5 and Claude Mythos 5. [line 131] [Source]

supported-regions [Source]

  • No significant changes.

versioning [Source]

  • No significant changes.

adaptive-thinking [Source]

  • No significant changes.

claude-platform-on-aws [Source]

  • Removed mention of "spend alerts" as a billing feature. [line 547] [Source]

extended-thinking [Source]

  • No significant changes.

files [Source]

  • No significant changes.

claude-prompting-best-practices [Source]

  • Page restructured into three parts and rewritten to reference Claude Fable 5, Claude Mythos 5, Claude Opus 4.8, and Claude Sonnet 5. [lines 7-10] [Source]
  • All inline Opus-4.7-specific guidance removed and replaced with short pointer sections linking out to new dedicated per-model prompting guides. [lines 17-27] [Source]
  • New guidance that setting budget_tokens now returns a 400 error on Claude Opus 4.7+, Claude Fable 5, and Claude Mythos 5. [line 349] [Source]

overview [Source]

  • New pointer to the general prompt-engineering blog post as a resource distinct from Claude-specific techniques. [line 40] [Source]

prompting-tools [Source]

  • Prompt generator Colab notebook link moved to the maintained anthropic/claude-cookbooks GitHub repo notebook. [line 25] [Source]

cmek [Source]

  • Dropped the statement that "Multi-region keys and EU key residency are not yet supported." [line 37] [Source]

data-residency [Source]

  • No significant changes.

overview [Source]

  • Workbench legacy console is being sunset (access ends August 17, 2026) and experimental prompt-tools APIs are being retired alongside it. [lines 13-16] [Source]
  • Launched Claude Sonnet 5, Claude Opus 4.8, Claude Fable 5, and Claude Mythos 5, each with dated entries detailing context window, tokenizer, thinking, and refusal-handling changes. [lines 44-98] [Source]
  • Rate limits raised across the API; tiers consolidated into Start/Build/Scale. [lines 57-59] [Source]
  • Launched Claude Platform on AWS with AWS billing/IAM auth for Messages API, Files API, Batches, Managed Agents, Skills, and code execution. [lines 156-158] [Source]
  • Workload Identity Federation reached general availability for OIDC-based API authentication. [lines 168-170] [Source]

system-prompts [Source]

  • Added new model sections for Claude Fable 5 (June 9, 2026) and Claude Opus 4.8 (May 28, 2026) system prompt history. [lines 9-15] [Source]

overview [Source]

  • Added system card entries for Claude Sonnet 5, Claude Fable 5/Mythos 5, Claude Opus 4.8, and Claude Mythos Preview, updating the model-cards list to reflect current releases. [lines 9-105] [Source]

develop-tests [Source]

  • No significant changes.

eval-tool [Source]

  • The Console's built-in prompt generator is now stated to be powered by Claude Sonnet 4.5, updated from the previously documented Claude Opus 4.1. [line 22] [Source]

increase-consistency [Source]

  • Updated the list of models that don't support response prefilling to add Claude Fable 5, Claude Mythos 5, and Claude Opus 4.8. [line 27] [Source]

mitigate-jailbreaks [Source]

  • Page substantially rewritten to distinguish jailbreaks/direct prompt injection from indirect prompt injection. [lines 9-16] [Source]
  • New "Indirect prompt injection" section adds concrete guardrail techniques: keep untrusted content in tool_result blocks, disclose content provenance, JSON-encode untrusted content, apply least-privilege access, and screen tool outputs with a classifier. [lines 27-52] [Source]

reduce-hallucinations [Source]

  • No significant changes.

reduce-latency [Source]

  • Added a new "Next steps" section linking to Reduce hallucinations and Streaming messages guides. [lines 88-96] [Source]

reduce-prompt-leak [Source]

  • Updated the list of models that don't support prefilling to add Claude Fable 5, Claude Mythos 5, and Claude Opus 4.8. [line 24] [Source]