ToolClaudeClaude Code
Anthropic updates Claude Code with a new API
Original title: Claude Code 2.1.307
- Date
- Company
- Anthropic
- Type
- Tool
- Source
- AnthropicRead the source (opens in a new tab)

Plain language
- What it is
- Anthropic released an update to Claude Code, version 2.1.307, which includes bug fixes and performance improvements. The update transitions the Claude API code to a newer version and improves how the tool handles errors and connections.
- How it works
- The tool now automatically retries failed tool calls up to two times before stopping. It also improves the sign-in process and fixes issues with background tasks, file loading, and voice dictation.
- Where it is available
- This update applies to Claude Code, including its VSCode extension, cloud sessions, and self-hosted runners.
- Example
- A user can stop an active automatic code review subscription on a pull request by typing @claude review stop.
For developers
- What it is
- Claude Code version 2.1.307 has been released. It updates the Claude API code to version 2026-10-21 and adds a new OpenTelemetry event named claude_code.safety_event for tracking tool calls and safety checks.
- How it works
- The update fixes model-not-found errors when using the CLAUDE_CODE_DISABLE_1M_CONTEXT environment variable with specific model aliases. It also limits retries for HTTP MCP tool calls to read-only or idempotent tools when connections close mid-call.
- Where it is available
- The changes apply to the Claude Code CLI, the VSCode extension, self-hosted runners, and cloud sessions.
- Example
- Developers can use the command @claude review stop to end an active @claude review always subscription on a pull request.
The original post
The headline and explanation on this page are based on Anthropic's post. The full details are in the original.
Claude Code 2.1.307
Read the source (opens in a new tab)