anthropic Claude Code Releases · · 2.1.219

Claude-Code v2.1.219: Opus 5 default, stricter sandbox, nested subagents

sdkai
feature patch

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.

Read the original announcement →

https://github.com/anthropics/claude-code/releases/tag/v2.1.219

Related releases