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

Open-weight models under 100GB can't beat Claude Haiku on coding benchmarks
A comparison of open-weight models on LiveBench and Arena Code/WebDev benchmarks shows no model under 100GB comes close to Claude Haiku 4.5. The nearest competitor is Minimax M2.5 at 136GB, which roughly matches Haiku's performance.
Opus 4.7's attention degradation: MRCR scores drop from 92% to 59% at 256k context
Opus 4.7 shows significant recall drop per MRCR v2 8-needle test: 91.9% to 59.2% at 256k context, and 78.3% to 32.2% at 1M. Anthropic is retiring MRCR in favor of Graphwalks, but the degradation matches user reports.

Reddit user reports 18.8 tok/s CPU inference with Qwen 3 30B Q4 on Zen 4
A user on r/LocalLLaMA tested Qwen 3 30B Q4 on CPU and achieved 18.8 tokens per second with a Zen 4 processor and DDR5 memory, significantly exceeding expectations of 3-5 tok/s.

AI Agents Are Killing Code Review — The Principal-Agent Problem Explained
Inserting AI agents into the traditional code review process doubles review load, collapses trust signals, and creates an unsustainable imbalance — this is the principal-agent problem as applied to software engineering.