published fresh until

Claude Sonnet 4.5 retirement: which API changes matter?

Summary Claude Sonnet 4.5 retires on the Claude API on 2026-11-30; Anthropic recommends claude-sonnet-5-5. Migrate that route before independently adopting compaction, diagnostics, inline tools or Managed Agents (checked 2026-10-20).

Not for tier choice, see claude-5-5-family-which-tier-for-coding; Haiku migration, see haiku-5-5-api-migration-what-breaks-from-haiku-4-5

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Your Claude API app needs a retirement plan while new examples introduce unfamiliar blocks and beta headers. Migrate the retiring route first; adopt optional features for a measurable problem. Official pages below were fetched today.

What changed

All dates and statuses in this table are checked 2026-10-20. Links point to dated official release notes.

Date, each checked 2026-10-20Verified change
2026-09-14On-demand compaction, beta; signed summaries
2026-09-23Cache diagnostics leaves beta
2026-09-22Inline definitions, beta
2026-04-08; 2026-10-09Managed Agents beta; dynamic workflows added later
2026-02-17Programmatic calling no longer needs a beta header; older than inline definitions
2026-09-30Retirement announcement

Claude Sonnet 4.5 retires on the Claude API on 2026-11-30 (both checked 2026-10-20). The deprecations table names claude-sonnet-4-5-20250929 and recommends claude-sonnet-5-5 (IDs checked 2026-10-20). Deprecated still works before retirement; retired calls fail. No exact error string or cutoff hour is specified. Verify partner schedules separately.

Model, access and prices — checked 2026-10-20

API service, versions checked 2026-10-20USD / million input / output tokensCache read
Sonnet 4.5, deprecated$3 / $15$0.30
Sonnet 5.5, replacement$2 / $10$0.10

Standard rates come from official pricing, checked 2026-10-20. No downloadable package or OSS model licence is supplied. Token rates alone do not establish task-cost savings.

What breaks

  • A model-only swap can cause 400s from thinking budgets, sampling, prefill or forced tool use. The Sonnet migration guide also warns that thinking is on by default and can precede text.
  • Altered summaries yield 400 compaction_signature_invalid or compaction_content_mismatch, per compaction.
  • Diagnostics can report previous_message_not_found if the prior request never opted in; the response field can be null.
  • Inline tool changes can yield 400 tool_reference_unresolved for undeclared references or tool_name_conflict for conflicting types.

When to pick which

ConstraintRecommendation
Retiring model still configuredMigrate that route first
Cache reads disappearDiagnostics and usage inspection
Long history needs a chosen summary pointOn-demand compaction
Tools become known laterInline definitions
Intermediate results need filteringProgrammatic tools
Want hosted execution and sessionsEvaluate Managed Agents separately

How to migrate

1. Find the old ID in configs, queues, routers and evals. Use claude-sonnet-5-5 (checked 2026-10-20). Follow the Sonnet guide: remove manual thinking budgets, sampling overrides, prefill and forced tool choice. Use adaptive thinking, or between_tools at high effort or below. Parse blocks by type; preserve thinking blocks. 2. For diagnostics, send diagnostics.previous_message_id as null initially, then the previous response ID on every turn. The old cache-diagnosis-2026-04-07 header (checked 2026-10-20) is optional. Compare findings with usage.cache_read_input_tokens; similarity alone does not prove a hit. 3. For compaction, send compaction as {"type":"summarize"} with compact-2026-09-04 (checked 2026-10-20), also on replay. Replace summarized messages with the unchanged signed block first in history. Handle stop_reason equal to compaction; do not combine with context_management. 4. For inline tools, use inline-tools-2026-09-15 (checked 2026-10-20), a system message, a tool_addition block, and a tool object whose type is tool_definition and whose definition holds the schema. Keep a non-deferred tool in the original array to avoid the documented initial cache miss. Never insert between a call and its result. 5. For programmatic calling, declare code execution and set the callable tool's allowed_callers to ["code_execution_20260120"] (checked 2026-10-20). Handle tool-result continuation and caller. This runs tools from code; inline definitions introduce tools. MCP connector tools and computer/browser toolsets cannot be called this way. 6. For Managed Agents workflows, use managed-agents-2026-04-01 and multiagent as {"type":"multiagent_20261001","workflows":{"type":"enabled"}} (both checked 2026-10-20). Follow workflow_run.* events. This is a hosted-session integration, not a Messages-body toggle.

Community evidence

  • Vercel AI issue 21263, by linuslofgren, reported an adapter stripping compaction signatures. Maintainer gr2m closed the linked implementation as completed. Test persistence through your installed adapter.
  • QCode's compaction article, attributed to QCode, distinguishes threshold and on-demand compaction and says it has “not sent a real billed request”. This is documentation analysis, not runtime confirmation.

What to test

Validate the replacement route on saved tasks, streaming, JSON extraction and a tool loop. Enable features individually. Persist and reload a signed summary, continue after it and check important facts survive. Edit a prefix and inspect cache usage. Exercise tool additions, programmatic results and workflow events. Count billed usage, including compaction iterations.

Pitfalls

  • Treating every feature as new or generally available.
  • Dropping signatures or retaining summarized turns before the block.
  • Reading only top-level compaction usage; inspect usage.iterations.
  • Assuming beta headers enable unsupported models or partner routes.

A prompt to give your agent

Your training data predates these changes. Read the linked official release notes, deprecations table and feature guides now; do not guess IDs, headers or the deadline. Separate the retiring route migration from optional features. Inspect our SDK and endpoint, prepare a scoped patch and checks for streaming, tool results, signed replay and nullable diagnostics. Cite compatibility decisions and report what you did not run. Details here are checked 2026-10-20; reverify before rollout.

Limits

No API calls, SDK installs, hosted sessions or cost experiments were run. Community evidence covers compaction only; independent runtime evidence for diagnostics, inline definitions and workflows is thin. This is not a complete release inventory or partner-availability guarantee.

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Sonnet 4.5 retirement: which API changes matter?
Summary: Claude Sonnet 4.5 retires on the Claude API on 2026-11-30; Anthropic recommends claude-sonnet-5-5. Migrate that route before independently adopting compaction, diagnostics, inline tools or Managed Agents (checked 2026-10-20).
Copy for agent
get the whatworks thread claude-api-features-sonnet-4-5-retirement-plan and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-api-features-sonnet-4-5-retirement-plan
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks