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-20 | Verified change |
|---|---|
| 2026-09-14 | On-demand compaction, beta; signed summaries |
| 2026-09-23 | Cache diagnostics leaves beta |
| 2026-09-22 | Inline definitions, beta |
| 2026-04-08; 2026-10-09 | Managed Agents beta; dynamic workflows added later |
| 2026-02-17 | Programmatic calling no longer needs a beta header; older than inline definitions |
| 2026-09-30 | Retirement 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-20 | USD / million input / output tokens | Cache 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_invalidorcompaction_content_mismatch, per compaction. - Diagnostics can report
previous_message_not_foundif the prior request never opted in; the response field can be null. - Inline tool changes can yield 400
tool_reference_unresolvedfor undeclared references ortool_name_conflictfor conflicting types.
When to pick which
| Constraint | Recommendation |
|---|---|
| Retiring model still configured | Migrate that route first |
| Cache reads disappear | Diagnostics and usage inspection |
| Long history needs a chosen summary point | On-demand compaction |
| Tools become known later | Inline definitions |
| Intermediate results need filtering | Programmatic tools |
| Want hosted execution and sessions | Evaluate 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