Claude Code 2.1.133: Worktree Config, Effort Level Hooks, Credential Fixes

Claude Code 2.1.133 adds worktree base configuration, effort level hooks, and fixes credential races, proxy handling, and session isolation bugs.

Claude Code 2.1.133: Worktree Config, Effort Level Hooks, Credential Fixes

TL;DR

  • New worktree.baseRef setting controls whether worktrees branch from origin/<default> or local HEAD — default changed to fresh
  • Hooks now receive effort level via $CLAUDE_EFFORT env var and JSON input
  • Fixed credential race condition causing parallel sessions to dead-end at 401
  • Fixed proxy/mTLS not being respected for full MCP OAuth flow
  • Fixed effort level changes leaking between concurrent sessions

New

  • worktree.baseRef setting — choose whether --worktree, EnterWorktree, and agent-isolation worktrees branch from origin/<default> (fresh) or local HEAD (head). Default is now fresh, which changes EnterWorktree's base back to remote default (it was local HEAD since 2.1.128) — set worktree.baseRef: "head" if you need unpushed commits in new worktrees.
  • sandbox.bwrapPath and sandbox.socatPath — managed settings for Linux/WSL to specify custom bubblewrap and socat binary locations.
  • parentSettingsBehavior admin key — lets admins opt SDK managedSettings into policy merge instead of first-wins behavior.
  • Effort level in hooks — hooks now receive active effort level via effort.level JSON field and $CLAUDE_EFFORT environment variable; Bash tool commands can also read $CLAUDE_EFFORT.
  • Focus mode improvements — improved behavior and reliability.
  • Memory optimization — warm-spare background workers now released under memory pressure.

Fixed

  • Parallel sessions dead-ending at 401 after refresh-token race wiped shared credentials.
  • Edit/Write allow rules scoped to drive root (C:\) or POSIX / matching incorrectly and always prompting.
  • Unhandled rejection (ECOMPROMISED) when history or session-log file lock is compromised by clock skew or slow disk.
  • Spurious "Error compacting conversation" notification when pressing Esc during conversation compaction.
  • HTTP(S)_PROXY, NO_PROXY, and mTLS not being respected for full MCP OAuth flow (discovery, dynamic client registration, token exchange, token refresh).
  • Read/Write/Edit being denied on mapped network drives passed via --add-dir or SDK additionalDirectories.
  • Remote Control stop/interrupt from claude.ai not fully canceling CLI session, causing queued messages to never advance after interrupting stuck tool or prompt.
  • /effort in one session unexpectedly changing effort level of other concurrent sessions; related issue where IDE effort change could be silently dropped.
  • Subagents not discovering project, user, or plugin skills via Skill tool.
  • claudeCode.claudeProcessWrapper failing with "Unsupported platform" when extension build doesn't bundle Claude binary.
  • claude --help now lists --remote-control alongside --remote-control-session-name-prefix.

Update: npm install -g @anthropic-ai/claude-code or check your IDE extension marketplace for Claude Code 2.1.133.

Source: Claude Code