Claude Code v2.1.172: Sub-Agents Now 5 Levels Deep, Bedrock Region Fixes, and Performance Gains

Anthropic shipped Claude Code v2.1.172 with a major change to agent nesting: sub-agents can now spawn their own sub-agents up to 5 levels deep. Previously limited to a single level, this opens up hierarchical task decomposition for complex workflows.
Key Changes
- Sub-agent spawning: agents can now spawn sub-agents recursively (max depth 5).
- Bedrock region fix:
AWS_REGIONnot set? Amazon Bedrock now reads region from~/.aws/config, matching AWS SDK precedence. Run/statusto see where the region came from. - Plugin search: added a search bar when browsing marketplace plugins via
/plugin. - OTEL metric:
claude_code.lines_of_code.countnow includes amodelattribute. - 1M context stall fix: sessions using 1M context without usage credits no longer get permanently stuck. The session now automatically compacts back under the standard context limit.
- Performance: reduced redundant message normalization and avoided full history transforms when streaming tool-use state is unchanged. Idle CPU usage dropped — the
/goalstatus chip no longer re-renders at 5 Hz while idle, and fewer UI re-renders occur when sub-agents run in parallel. - Chrome tool loading: browser tools now load in a single batched call instead of one per tool.
- Permission wildcards fixed:
WebFetch(domain:*.example.com)now matches subdomains in allow, deny, and ask rules. File permission rules with mid-pattern wildcards (e.g.,Read(secrets-*/config.json)) are no longer rejected at startup. - /model picker fixes:
availableModelsrestrictions now apply correctly to subagent model overrides, the dispatch model picker, and the advisor model. Version-specific model IDs likeclaude-opus-4-8no longer hide the 1M context rows. - VSCode: PowerShell tool calls now render as proper command displays instead of raw JSON. ANSI escape codes stripped from shell output.
- Other: fixed memory recall for
CLAUDE_MEMORY_STORESin remote sessions, fixed workflow validation false positives onDate.now()/Math.random()in comments, and disabled mouse tracking on unsupported Windows consoles.
Who Benefits
This release is for Claude Code users building multi-step agentic workflows, especially those hitting context limits or managing complex sub-task delegation. The nesting change alone is a major unlock for CI pipelines and multi-step refactoring.
📖 Read the full source: GitHub Claude-Code
👀 See Also

Claude Sonnet 4.5 Experiencing Elevated Errors — Status Update
Claude Sonnet 4.5 is currently experiencing elevated errors as of 2026-04-28T13:29:56.000Z. Check the status page and Reddit megathread for updates.

MiniMax Releases MaxClaw: Cloud-Hosted AI Agent Based on OpenClaw
MiniMax has launched MaxClaw, a fully managed cloud-hosted AI agent built on the OpenClaw framework. It deploys in 10 seconds without Docker or servers and features the MiniMax M2.5 model with 229B parameters, 200K-1M token context, and up to 100 tokens/s inference speed.

Claude Skills Evaluation & Regression Testing with Snowflake Cortex Agent
A production Claude credit risk agent on Snowflake Cortex Agent needs regression testing for skills changes. The team currently evaluates results manually against existing BI queries, seeking automation.

Anthropic Launches Claude Code Channels for Messaging from Telegram or Discord
Anthropic has released Claude Code Channels, allowing developers to message their AI coding sessions from Telegram or Discord while keeping code local.