releaseintermediate
[Release] anthropics/claude-code v2.1.212: v2.1.212
By ashwin-antgithub
View original on githubClaude Code v2.1.212 introduces significant workflow improvements including session forking with background execution, enhanced safety limits on web searches and subagent spawning, and automatic background migration for long-running MCP tools. The release fixes critical issues with plan mode command execution, symlink handling, hook infrastructure, and cross-platform compatibility while improving prompt caching and inter-agent messaging efficiency.
Key Points
- •Session forking now creates independent background sessions while maintaining current work context; `/subtask` replaces the old in-session subagent behavior
- •New session-wide limits prevent runaway loops: 200 WebSearch calls (configurable via `CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION`) and 200 subagent spawns (configurable via `CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION`)
- •MCP tools running longer than 2 minutes automatically move to background to keep sessions responsive; threshold configurable via `CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS`
- •Session resumption now supports picker interface for past sessions including deleted ones, resumable as background sessions via `/resume`
- •Fixed critical security issue: plan mode no longer auto-runs file-modifying Bash commands without permission prompts or SDK callbacks
- •Resolved symlink vulnerability in worktree creation that could write files outside repository boundaries
- •Windows compatibility improved: daemon now prefers PowerShell 7 when Group Policy blocks PowerShell 5.1
- •Enhanced `/ultrareview` command with better branch fetching, PR reference support, and improved error messaging
- •Reduced token usage in inter-agent messaging by eliminating `SendMessage` body duplication in replayed history
- •Improved prompt caching now works behind LLM gateways and custom base URLs (Bedrock, Vertex, 1P)
Found this useful? Add it to a playbook for a step-by-step implementation guide.
Workflow Diagram
Start Process
Step A
Step B
Step C
Complete
Concepts
Artifacts (7)
WebSearch Limit Configurationbashconfig
CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION=200Subagent Spawn Limit Configurationbashconfig
CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION=200MCP Auto-Background Threshold Configurationbashconfig
CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS=120000Auto-Mode Reset Commandcommand
claude auto-mode reset [--yes]Session Fork Commandcommand
/forkSession Resume Commandcommand
/resumeSubtask Commandcommand
/subtask