Claude Code 2.1.181 adds /config key=value syntax to set any setting directly from the prompt, plus a new CLAUDE_CLIENT_PRESENCE_FILE env var to suppress mobile push notifications when you're at the machine
Version 2.1.181 fixes critical file corruption (0-byte/truncated writes on network drives), multiple startup issues (15s blocking on slow networks, macOS TUI freeze, crash on corrupted .claude.json), and prompt caching failures on custom base URLs and Foundry
CLAUDE.md import parsing now explicitly skips code spans and fenced code blocks, letting you reference a path with backticks without triggering an import
Sub-agents documentation gained a concrete example showing how to block an entire MCP server's tools with a single disallowedTools: mcp__<server> entry
Analytics API docs clarified that both Claude Code and Claude Enterprise Analytics APIs share the Admin API reference but require separate key types
Fixed mid-stream connection drops: partial responses are now preserved instead of showing a raw error, and the spinner no longer gets stuck at "running tool"
Fixed mouse-wheel scrolling in WSL2 under Windows Terminal and VS Code (regression in 2.1.172)
Fixed sandbox denyRead/allowRead glob over a large directory tree making the Bash tool description enormous and the session unusable on Linux
Fixed Ctrl+O not showing the subagent's transcript when viewing a subagent; fixed clicking the prompt input not returning focus from the subagent/footer panel
Fixed remote session background tasks appearing stuck as "still running" between turns
Improved plugin loading performance in remote sessions
Changed the Improved N memories line to no longer list individual files outside verbose mode
Major bug fixes
Fixed prompt caching not reading on custom ANTHROPIC_BASE_URL and on Foundry due to a per-request attestation token changing every turn
Fixed Write/Edit producing 0-byte or truncated files on network drives and cloud-synced folders
Fixed open, osascript, and browser-based auth flows failing with error -600 on macOS by adding the Apple Events entitlement
Fixed a startup regression (~120ms per launch, introduced in 2.1.169): first prompt no longer waits for managed-settings fetch when no MCP servers are configured
Fixed startup blocking with a blank terminal for up to 15 seconds when the account settings fetch is slow on a degraded network
Fixed startup crash (TypeError: Cannot read properties of null) when .claude.json contains corrupted null project entries
Fixed macOS TUI freezing at session start (Ctrl+C unresponsive) when Spotlight is busy reindexing
Fixed long-running idle sessions losing their history when another Claude Code process ran the 30-day transcript cleanup
Fixed foreground subagents spawning unbounded nested chains; they now respect the same 5-level depth limit as background subagents
Fixed /recap and conversation forks using the previous model immediately after a model switch
Fixed AWS awsCredentialExport credentials with a short remaining lifetime causing credential refreshes every minute
Fixed claude mcp get/list showing โ Connected when tools/list fails; now shows ! Connected ยท tools fetch failed with the error detail
Fixed settings changes (such as /effort or /model) failing with ENOENT when ~/.claude/settings.json is a relative symlink under a symlinked ~/.claude
Fixed AskUserQuestion multi-select questions silently dropping a typed "Other" free-text answer when submitting
Fixed /stats "Most active day" and daily token chart dates showing one day early in UTC-negative timezones
Import parsing now explicitly skips Markdown code spans and fenced code blocks. Wrapping a path in backticks (`@README`) keeps it literal, while @README outside backticks imports the file. [line 82] [Source]
Added a new row to the command name table documenting how nested .claude/skills/ directories are handled when a name clashes with another skill: the command name becomes the subdirectory path relative to the working directory plus the skill directory name (e.g. apps/web/.claude/skills/deploy/SKILL.md โ /apps/web:deploy). [line 224] [Source]
Updated the /doctor description to specify it shows how many skill descriptions are being shortened or dropped (not just which skills are affected). [line 750] [Source]
Added a code example demonstrating how to use disallowedTools: mcp__github to remove every tool from the github MCP server while keeping all other built-in and MCP tools. [lines 316-325] [Source]
Added clarification that both the Claude Code Analytics API and the Claude Enterprise Analytics API appear under the Admin API reference, but are separate APIs requiring separate key types. [line 21] [Source]
Updated Claude Enterprise Analytics API reference links from external support.claude.com articles to the internal api/admin/analytics.md reference page. [lines 75, 84, 94]