# Claude Code v2.1.219 发布：新增 Claude Opus 5，支持 1M 上下文与嵌套子智能体

- 来源：Claude Code：GitHub Releases（RSS）
- 作者：ashwin-ant
- 发布时间：2026-07-25 01:14
- AIHOT 分数：50
- AIHOT 链接：https://aihot.virxact.com/items/cmrz8ja0m00r0rox8teqfnmam
- 原文链接：https://github.com/anthropics/claude-code/releases/tag/v2.1.219

## AI 摘要

Claude Code v2.1.219 新增 Claude Opus 5 作为默认 Opus 模型，支持 1M 上下文窗口，快速模式定价为 $10/$50 每百万 token。

## 正文

What's changed

Added Claude Opus 5 (claude-opus-5), now the default Opus model — 1M context, fast mode at $10/$50 per Mtok

Added sandbox.network.strictAllowlist setting to deny non-allowlisted hosts for sandboxed commands without prompting

Added DirectoryAdded hook that fires after /add-dir or the SDK register_repo_root control request registers a new working directory mid-session

Added mcp_server_errors to the headless stream-json init event, listing --mcp-config entries skipped by config validation; terminal runs print a startup warning

Added the workflowSizeGuideline settings key so the advisory Dynamic workflow size guideline can be set from any settings file; the /config row is hidden while one does

Added nested subagent forwarding in stream-json: subagents spawned at depth-2+ now appear when --forward-subagent-text is set, keyed by their spawning Agent tool_use id

Fixed claude -p text output dropping the answer already produced when a turn dies on a mid-stream API error

Added HTTP status and error text to claude mcp list and /mcp when a server fails to connect, and a warning for MCP config values with hidden leading or trailing whitespace

Fixed a permission you approved while a self-hosted runner was restarting being dropped when the session resumed, so the approved action now runs

Fixed the Fable model row showing "Requires usage credits" for plans that include it, when a stale cache had baked the label in

Fixed a SIGTERM arriving while a self-hosted runner was starting up leaving a stale active row until the lease expired; it now deregisters cleanly

Added structured failure categories to self-hosted runner spawn and session failures, so hook errors, runner crashes and config errors can be told apart

Fixed the /model picker showing the merged Opus row as plain "Opus" instead of "Opus (1M context)"

Fixed copy-on-select inside GNU screen printing base64 into the terminal instead of copying the selection

Fixed Remote Control clients keeping a stale fast-mode status after a model switch, reconnect, or failed org check

Fixed CLAUDE_CODE_GIT_BASH_PATH on Windows exiting or being used as bash when the path isn't a bash/sh binary; it's now ignored with a warning

Fixed Vim mode: pressing ← on an empty prompt now returns to the agent view from NORMAL mode, not just INSERT

Fixed screen-reader mode rewriting the entire input line on every keystroke instead of echoing only the typed character

Improved the "Remote Control is only available via api.anthropic.com" error to name the specific setting that caused it

Improved claude --teleport to show which repo your current checkout points at when it doesn't match the session's repo

Changed dynamic workflows to default to a medium size guideline (aim for fewer than 15 agents); pick another size or unrestricted with Dynamic workflow size in /config

Changed managed MCP allowlist/denylist ${VAR} entries to resolve from the startup environment and managed-settings env instead of settings-file env

Changed the /model picker to highlight only the newest model's name, so the highlight marks the new release rather than an arbitrary subset of the list

Added the current default workflow size to the running-workflow status line, with a pointer to /config for changing it

Removed Opus 4.7 from fast mode; /fast now applies to Opus 5 and Opus 4.8

Updated the claude-api skill to default to Claude Opus 5, with a migration path from Opus 4.8

Subagents can now spawn nested subagents up to depth 3 by default (was 1); set CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1 to disable nesting
