Repository navigation
docs: Claude Code v2.1.308 - archived API examples now match API 2026-10-21 (Bearer auth, new SDK majors) so copied code stops using the old version; Claude Duet launches - #1401
Merged
Conversation
…n 2026-10-21 (Bearer auth, SDK majors); Claude Duet launches Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Night shift report
WHY THIS MATTERS: The whole Claude API reference has been regenerated for API version
2026-10-21, which was announced yesterday. About 1,100 reference pages across cURL, theantCLI, Go, Java, C#, PHP, Ruby, Python and TypeScript now show the new SDK majors. In the examples,anthropic-version: 2023-06-01becomes2026-10-21,X-Api-KeybecomesAuthorization: Bearer, and Go imports move toanthropic-sdk-go/v2. Before this run, anyone copying code from the archived reference got the old version. Anthropic also published support docs for Claude Duet, a new consumer product, and Claude Science got auto mode. The Claude Code version did not change (still 2.1.308), and nothing was deleted, tombstoned or discovered.HIGHLIGHTS:
2026-10-21. Every endpoint page (content/en/api/**, about 1,100 files) has the new version header and examples for the new SDK majors (Python 2.0.0, TS 1.0.0, Go 2.0.0, Java 3.0.0, C# 13.0.0, PHP 1.0.0, Ruby 2.0.0,ant2.0.0). The SDKs now send the key asAuthorization: Bearer, so proxies and gateways that readX-Api-Keyneed updating. Beta message param shapes were also restructured (for example,BetaUserMessageParam/BetaMessageContentParam). The migration guide is atcontent/en/api/migration-2026-10-21.md.content/claude/claude-science/auto-mode.md). A safety classifier approves code and connector calls in place of permission cards, and it is on by default where available.idempotentHint), which lets Claude Code retry a pending call after a connection drops. Also new credential-store errors (Couldn't read the stored credentials…,needs-authstatus in the Agent SDK) and a sleep/clock-change timeout error.axScreenReaderandCLAUDE_AX_*are now user/managed only.managed-mcp.jsonallowlist checks changed in v2.1.305 (${VAR}insideenvno longer triggers a check). Managed policy files can be symlinks.CLAUDE_CODE_ENABLE_SHARE_BUNDLE(/sharewrites to a local archive),CLAUDE_CODE_WARN_DISK_FREE_GIB,CLAUDE_CODE_WARN_MEMORY_FREE_GIB.Write(path)/Glob(path)rules never match..mdtargets across most of the ~1,975 modified files. MCP docs had relative-link and image alt-text churn only. Claude for Government added video captions.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning