The Agent SDK adds a new SDKContextUsage payload: sending /context as a prompt now attaches a structured context_usage field (token breakdown by category, MCP tool, memory file, agent, and skill) to the assistant message that delivers the result, requiring Agent SDK v0.3.232+.
The permission_prompt Notification hook now fires in Claude Desktop and VS Code extension sessions (hosted through the Agent SDK's canUseTool callback), about six seconds after a permission ask; a new CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS env var turns it off there.
A new CLAUDE_CODE_TOOL_MEMORY_LIMIT env var caps the memory Bash and PowerShell tool commands can use on Linux and WSL via a memory cgroup, guarding against one runaway command starving the rest of the session.
strictKnownMarketplaces and extraKnownMarketplaces gain settings-key aliases (allowedMarketplaces and additionalMarketplaces) on Claude Code v2.1.232+.
WebFetch's 15-minute response cache TTL is now configurable via CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS.
Clarifies that in SDK sessions, permission_prompt now fires (once a request has waited about six seconds on canUseTool, requiring TypeScript SDK v0.3.233+ or Python SDK v0.2.139+) alongside the elicitation notification types; other notification types remain interactive-UI only. [lines 653-659] [Source]
The TypeScript SDK now also strips the additionalMarketplaces alias (not just extraKnownMarketplaces) when seeding a temporary config directory for store-backed resume, as of Agent SDK v0.3.232. [line 277] [Source]
Documents the new SDKContextUsage and SDKContextUsageCategory types: a structured, display-field-free copy of the /context breakdown (model, token totals, over-limit info, and per-category/MCP-tool/memory-file/agent/skill token attribution). [lines 1424-1517] [Source]
SDKAssistantMessage gains an optional context_usage field carrying that payload when a /context prompt's result is delivered; requires Agent SDK v0.3.232+. [lines 1112-1126] [Source]
SDKControlGetContextUsageResponse docs note the new rawMaxTokens and percentage fields, and that sending /context as a prompt attaches the new SDKContextUsage payload to the result message. [lines 630-637] [Source]
New CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS: set to 1 to stop the permission_prompt Notification hook from firing in Claude Desktop/VS Code-extension (canUseTool-hosted) sessions. Requires v2.1.233+. [line 228] [Source]
New CLAUDE_CODE_TOOL_MEMORY_LIMIT: caps memory for Bash/PowerShell tool commands on Linux/WSL (e.g. 4G); 0 or off disables it. Requires v2.1.233+. [line 341] [Source]
New: in sessions where permission requests go through the Agent SDK's canUseTool callback (Claude Desktop, VS Code extension), permission_prompt now fires about six seconds after Claude asks for permission, doesn't defer while typing, and can be disabled with CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS. Didn't fire in these sessions before v2.1.233. [lines 1983-1989] [Source]
Notes that permission_prompt timing now differs between terminal sessions and Agent-SDK-hosted sessions (Claude Desktop, VS Code extension, etc.), pointing to the full timing breakdown in the hooks reference. [line 181] [Source]
New "Marketplace key aliases" section: on v2.1.232+, extraKnownMarketplaces can also be written as additionalMarketplaces and strictKnownMarketplaces as allowedMarketplaces; older versions ignore the alias, and Claude Code prefers the canonical key if both are set. [lines 891-899] [Source]
New "Memory limit on Linux and WSL" section documenting CLAUDE_CODE_TOOL_MEMORY_LIMIT: applied via a memory cgroup to all of a session's Bash/PowerShell commands combined, with a changed value taking effect on the next claude launch. Requires v2.1.233+. [lines 165-174] [Source]
Notes WebFetch's 15-minute cache TTL is now configurable via CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS on v2.1.233+. [line 394] [Source]