v2.1.172
2.1.172
Highlights:
- Sub-agents can spawn nested sub-agents up to five levels, enabling deeper multi-agent workflows
- 1M-context sessions without usage credits now auto-compact to standard limits, avoiding permanent stalls
- Marketplace plugin browser (/plugin) adds a search bar to speed plugin discovery and reduce browse time
CLI changelog
- Added a search bar when browsing a marketplace's plugins in /plugin
- Added model attribute to the claude_code.lines_of_code.count OTEL metric
- Fixed sessions using 1M context without usage credits getting permanently stuck — the session now automatically compacts back under the standard context limit
- Fixed a repeating "an image in the conversation could not be processed and was removed" error when the conversation contained multiple images
- Fixed the agents view keeping a session under Working with a busy spinner for up to 30 seconds after the worker replied
- Fixed background agents potentially reading another directory's project settings (.mcp.json approvals, trust) when dispatched onto a pre-warmed worker
- Fixed background-session attach failing with EAUTH for sessions started on an older version after the daemon auto-updated
- Fixed a background sub-agent staying stuck as "active" in the agent panel after a nested agent it spawned was stopped
- Fixed /model suggestions in the claude agents dispatch input rendering with a misleading slash prefix and showing models disabled for your org
- Fixed availableModels restrictions not being applied to subagent model overrides, the agent dispatch model picker, and the advisor model
- Fixed availableModels allowlists hiding the /model picker's Opus and Sonnet 1M rows when entries use version-specific IDs like claude-opus-4-8
- Fixed the /model picker on Bedrock offering models the provider doesn't serve — selecting one silently switched the session model and lit the selection marker on multiple rows
- … +18 more CLI changelog entries
Source: https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21172
Metadata
-
Time since 2.1.170 release: 1d 1h 21m 28s
-
Bundle file size: +244.3 kB (+0.8%)
-
Prompt files: +3 (+5.5%)
-
Prompt tokens: +3,687 (+4.7%)
Prompt token mix by kind:
- tools: 85.6%→86.2%
- system-reminder: 10.7%→10.3%
- system-data: 1.7%→1.6%
- skill: 0.9%→0.8%
- system: 0.7%→0.7%
- agent: 0.4%→0.4%
Files:
- metadata: 99e9a41/meta/metadata.md#diff-a08dfa163baef97ea4f56d29009ac65f5f7dbc46e3a58e80d7aa06a2a2520899L10-R10
- prompt stats: 99e9a41/meta/prompt-stats.md#diff-fa8e31336ece71d159f37b6fd4ed0c61939849140bd5c08c7ca793b5b2ae7f58L1-R1
Other prompt changes
- Adds a user-facing description recommending Grep (ripgrep) as the tool to use for search tasks.
Links: