Vibeleaderboard
← All Intel
Intel / repo

claude-code v2.1.307

Source
github.com
Publisher
Anthropic
Author
ashwin-antTop Viber
Date

Context

The most consequential line in Claude Code v2.1.307 is a migration helper: the bundled /claude-api gains an api-version command that moves Claude API code to API version 2026-10-21. That date names a new version of the Claude API itself. Every request to the API carries an anthropic-version header, and Anthropic promises in its versioning policy that within a version it keeps existing input and output parameters and changes things mainly by adding to them. Removals have to wait for a new version, and the version history lists only one before this, 2023-06-01, after the initial release.

The new version does remove things. According to the migration guide, a Messages request that sends , top_p or top_k now fails with a 400 error on every model, "even at the parameter's default value." Without them, requests sample at the defaults, including a temperature of 1.0. Claude 4.7 and later models already accept only the defaults, so they behave as before; on older models such as Claude Sonnet 4.6, code that lowered temperature for more consistent output loses that effect, and the guide says no other setting replaces it. The guide's options are to drop the parameter or keep that request on 2023-06-01. The version also rejects document blocks placed directly in assistant messages and citations on text in user messages, and renames several Admin API fields. SDKs switch with their major versions; the Python SDK's 2.0.0 is the first to send the new header, so upgrading the SDK is what opts code in. The release note says only that the command moves code to the new version; it does not say how it handles a deliberately lowered temperature, where the guide leaves the choice to the developer.

Two other changes matter for teams running Claude Code at scale. A new claude_code.safety_event OpenTelemetry event is emitted for each tool call that a permission rule, auto mode, a safety check, a or the sandbox stopped, prompted on or sent back, so anyone exporting Claude Code telemetry can see where guardrails intervened call by call rather than inferring it from transcripts. And HTTP tool calls were being sent twice when a connection closed mid-call, which for a tool that changes something could mean the action ran twice; Claude Code now retries only tools that are read-only or idempotent, meaning safe to repeat.

Key takeaways · AI-distilled
  • Claude Code v2.1.307 adds a claude_code.safety_event OpenTelemetry event for each tool call that a permission rule, auto mode, a safety check, a hook or the sandbox stopped, prompted or sent back.
  • Unparseable tool calls are now retried up to twice before the turn ends with an error, and fork subagents launched together are each told which launch is theirs, so they are much less likely to start each other's work.
  • Self-hosted runners now stop checkout hooks after 30 minutes by default and fail the session's setup; hooks that need longer must raise --checkout-hook-timeout-min or set it to 0.
  • Code Review gains @claude review stop (also off and pause), which ends an @claude review always subscription on a pull request without starting a new review.
Terms in this piece · Glossary
  • agent skill — A reusable instruction file that teaches an agent how to do one job well — the procedure, the tools, and what counts as done.
  • Sampling controls — Parameters that shape how deterministic or varied model generation becomes.
  • agent hook — A script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.
  • Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

More from ashwin-ant
Recommended reads