Claude-Code v2.1.219: Opus 5 default, stricter sandbox, nested subagents
Claude-Code version 2.1.219 updates the default Opus model to Claude Opus 5, offering a 1M context window and a faster mode. New sandboxing features enhance security by strictly allowing hosts, and subagent nesting is deepened to depth 3, benefiting complex workflow execution. These changes primarily impact developers and architects working with Anthropic's Claude models and require attention to updated security settings and workflow design.
- →Default Opus model updated to Claude Opus 5 with 1M context
- →Added `DirectoryAdded` hook for mid-session directory registration
- →Nested subagent forwarding and increased depth limit
- →Stricter sandbox network settings with `strictAllowlist`
- →Improved error reporting for MCP and runner failures
Features (3) ›
- Default Opus model updated to Claude Opus 5 with 1M context
Claude Opus 5 is now the default Opus model, featuring a 1 million token context window and a fast mode priced at $10/$50 per million tokens. The claude-api skill also defaults to Opus 5.
- Added `DirectoryAdded` hook for mid-session directory registration
The `DirectoryAdded` hook now fires after `/add-dir` or SDK `register_repo_root` requests register a new working directory during an active session.
- Nested subagent forwarding and increased depth limit
Subagents spawned at depth-2 and beyond are now visible when `--forward-subagent-text` is enabled. The default maximum subagent spawn depth has been increased from 1 to 3.
Enhancements (3) ›
- Stricter sandbox network settings with `strictAllowlist`
A new `sandbox.network.strictAllowlist` setting is introduced to deny non-allowlisted hosts for sandboxed commands, preventing execution without explicit user prompting.
- Improved error reporting for MCP and runner failures
HTTP status and error text are now included in `claude mcp list` and `/mcp` for connection failures. Structured failure categories have been added for self-hosted runner spawn and session failures.
- Dynamic workflow size guideline and default adjustment
The `workflowSizeGuideline` setting key allows setting the advisory Dynamic workflow size from any settings file. Dynamic workflows now default to a medium size guideline, aiming for fewer than 15 agents.
https://github.com/anthropics/claude-code/releases/tag/v2.1.219
Related releases
- Anthropic CEO on Open-Weights Models and National Security Anthropic News ·
- Cognizant and Anthropic Expand Partnership for Enterprise Claude Deployment Anthropic News ·
- Claude Code v2.1.220: Bug fixes and reliability improvements Claude Code Releases ·
- Claude Opus 5 Launched with 1M Token Context and Breaking Change Claude Platform Release Notes ·
- Anthropic launches Claude Opus 5 Claude Release Notes ·
- Anthropic Releases Claude Opus 5 with Enhanced Performance and Efficiency Anthropic News ·