Claude docs changes for May 19th, 2026 [diff]
Executive Summary
- MCP tunnels (Research Preview): New feature lets you connect Claude to MCP servers running in your private network via outbound-only connections, with full deployment guides (Docker Compose, Helm), Admin API, and security documentation
- Self-hosted sandboxes for Managed Agents: New guide and security model for running Managed Agent tool execution in your own infrastructure instead of Anthropic-managed cloud containers
- Cache diagnostics (beta): New
cache-diagnosis-2026-04-07beta feature lets you pass the previous response ID to identify exactly why a prompt cache miss occurred (model changed, system changed, tools changed, messages changed) - Computer use improvements: Added model-specific thinking
effortrecommendations, click accuracy guidance (instruction before screenshot), macOS Retina display scaling notes, and a click diagnostics troubleshooting table - Claude Code 2.1.144: Major release with
/modelnow session-scoped,/usage-creditsrename, many background session improvements, and over 25 bug fixes including startup hang and terminal display corruption
New Claude Code versions
2.1.144
New features
- Added
/resumesupport for background sessions — sessions started viaclaude --bgor agent view now appear alongside interactive ones, marked withbg - Added elapsed duration to background subagent completion notifications (e.g. "Agent completed · 3h 2m 5s")
/pluginbrowse and discover panes now show when a plugin was last updated/modelnow changes the model for the current session only; pressdin the model picker to set a default for new sessions- Renamed "extra usage" to "usage credits" across CLI copy;
/extra-usageis now/usage-credits(old name still works)
Existing feature improvements
- Improved recovery from rare pre-response stream stalls — now retries streaming once instead of falling back to a slower non-streaming request
- Improved SDK/headless MCP startup: pre-wait now overlaps startup instead of blocking before the first turn (up to 2s faster with slow MCP servers)
/doctornow shows an exec-form example when a command hook is missing thecommandfield/pluginnow returns to the Installed list after enabling, disabling, or uninstalling a plugin- Skill-listing truncation is no longer shown as a startup notification — run
/doctorfor the full breakdown - Background session worktree isolation guard now applies for non-git VCS users with
WorktreeCreatehooks configured claude agents/--bgrejection messages now name the specific gate (non-TTY, env var, or setting) instead of a generic messageclaude --bg --name <label>now echoes the name in the post-spawn confirmation/bgand←-detach now preserve directories added via/add-dir
Major bug fixes
- Fixed startup hanging up to 75s when
api.anthropic.comis unreachable (captive portal, firewall, VPN issues) — side-channel API calls now time out after 15s - Fixed garbled terminal output after a missed window-resize event (e.g. dragging a VS Code split-pane divider) — now self-heals on the next frame instead of requiring Ctrl+L
- Fixed progressive terminal display corruption in very long sessions that only cleared on terminal resize or restart
- Fixed macOS background sessions crashing with "exit 1 before init" when the project lives under a Full Disk Access-protected folder (regression in 2.1.143)
- Fixed unrecoverable conversation when reading a file whose image extension doesn't match its contents (e.g. HTML saved as .png)
- Fixed
head/tailfile views not satisfying the read-before-edit check; "no matches" result (exit code 1) fromegrep,fgrep,git grep, orgit diffis no longer reported as a command failure - Fixed
/branchfailing with "No conversation to branch" after entering a worktree or in some background sessions - Fixed pressing Escape in the AskUserQuestion notes field aborting the turn instead of returning to answer selection
- Fixed model selection not applying when changed via the IDE model picker or
applyFlagSettingsafter startup - Fixed Bedrock and Vertex users unable to select "Opus (1M context)" from the
/modelpicker (regression in v2.1.129) - Fixed remote-session login failing with "Can't access this organization" for users with
forceLoginMethodandforceLoginOrgUUIDset - Fixed MCP servers with paginated
tools/listresponses only returning the first page, silently dropping tools - Fixed MCP images with unsupported MIME types (e.g. SVG) breaking the conversation — now saved to disk and referenced in the tool result
- Fixed file descriptor exhaustion when a build runs inside a skill directory — non-
.mdfiles no longer trigger skill reloads - Fixed Skill tool failing with permission error in headless mode (regression in v2.1.141)
- Fixed
claude mcp listsilently reporting no servers when.mcp.jsoncan't be parsed (e.g. using VS Code's"servers"key) - Fixed scrolling in attached background sessions on Windows (PgUp/PgDn, mouse wheel, Ctrl+O)
- Fixed crash when closing the terminal while attached to a background session
- Fixed
! <cmd>exec sessions not responding to Ctrl+C while attached - Fixed
/resumepicker not showing sessions forked from a background session - Fixed background Bash tasks spawned by subagents staying "Running" in SDK task panels after the process exits
- Fixed markdown links in
claude agentsattached sessions rendering as plain text instead of clickable hyperlinks
Claude Code changes
(No Claude Code documentation changes this day)
API changes
New Documents
Admin: MCP Tunnels [Source]
Admin API reference for managing MCP tunnels. Documents endpoints to get, list, reveal token, rotate token, and archive tunnels, along with tunnel certificate management (create, list, retrieve, archive). Includes the MCPTunnelRetrieveResponse model with fields like id, domain, archived_at, display_name, and type.
Beta: Environments Work [Source]
New Work queue API for self-hosted sandbox environments. Documents the BetaSelfHostedWork model and endpoints for polling work items, acknowledging work, recording heartbeats, stopping work, listing work items, updating work item metadata, and retrieving queue statistics (depth, pending, oldest_queued_at, workers_polling).
Beta: Skills - Download Skill Version Content [Source]
New endpoint GET /v1/skills/{skill_id}/versions/{version}/content to download a skill version's content as a zip archive. Requires the skills-2025-10-02 beta header.
Build with Claude: Cache Diagnostics [Source]
New guide for the cache-diagnosis-2026-04-07 beta feature. Explains how to pass diagnostics.previous_message_id on each turn to identify prompt cache divergences. Documents all cache_miss_reason types (model_changed, system_changed, tools_changed, messages_changed, previous_message_not_found, unavailable), how to combine diagnostics with cache_read_input_tokens, streaming usage, data retention, and limitations.
MCP Tunnels: Console Setup [Source]
Guide for creating and managing MCP tunnels in the Claude Console, including how to add CA certificates and retrieve tunnel connection details.
MCP Tunnels: Deploy with Docker Compose [Source]
Step-by-step deployment guide for running an MCP tunnel stack on a VM using Docker Compose, covering both programmatic (Workload Identity Federation) and manual credential authentication.
MCP Tunnels: Deploy with Helm [Source]
Step-by-step deployment guide for installing an MCP tunnel on a Kubernetes cluster using the Anthropic Helm chart.
MCP Tunnels: Overview [Source]
Overview of the MCP tunnels Research Preview feature. Explains how outbound-only tunnel connections via cloudflared and an Anthropic proxy let Claude reach private-network MCP servers without inbound firewall changes. Covers the three-layer security model (outer mTLS, inner TLS, OAuth), shared responsibility model, network requirements, and how to use tunneled servers from both Managed Agents Console and the Messages API.
MCP Tunnels: Quickstart [Source]
Quickstart guide for getting a working MCP tunnel locally using Docker Compose with a sample MCP server.
MCP Tunnels: Reference [Source]
Reference documentation covering proxy configuration fields, the Tunnels API, certificate requirements, and the setup CLI.
MCP Tunnels: Security [Source]
Security hardening guidance for MCP tunnels: credential rotation procedures, breach response steps, and hardening recommendations for the proxy and MCP servers.
MCP Tunnels: Troubleshooting [Source]
Troubleshooting guide for diagnosing connectivity, TLS, and routing issues with MCP tunnels.
Managed Agents: Self-Hosted Sandboxes [Source]
New guide for running Managed Agent tool execution in your own infrastructure. Covers the environment worker concept (always-on vs webhook-triggered), sandbox filesystem layout (/workspace, /mnt/session/outputs), in-process and container-per-session deployment patterns with the ant CLI and SDK, session creation targeting a self-hosted environment, and monitoring operations (queue depth, graceful session stop). Includes integration notes for Cloudflare, Daytona, Modal, and Vercel platforms.
Managed Agents: Self-Hosted Sandboxes Security [Source]
Security model for self-hosted sandboxes defining the shared responsibility boundary: container image hardening, network egress controls, environment key rotation, tool-execution blast radius, and log retention are all the operator's responsibility.
Changed documents
Admin [Source]
- Added the new AdminMCP Tunnels section with endpoints: Get Tunnel, List Tunnels, Reveal Tunnel Token, Rotate Tunnel Token, Archive Tunnel. [diff]
Admin: Workspaces - Archive [Source]
Workspaceobject now includes atagsfield (user-definedmap[string]key-value pairs; keys may not begin withanthropic).
Admin: Workspaces - Create [Source]
- Added optional
anthropic-betaheader parameter documentation. - New optional
tagsbody parameter (map[string]) added to workspace creation. Workspaceresponse object updated to includetags.
Admin: Workspaces - List [Source]
Workspaceobject now includes thetagsfield.
Admin: Workspaces - Retrieve [Source]
Workspaceobject now includes thetagsfield.
Admin: Workspaces - Update [Source]
Workspaceobject now includes thetagsfield.
Beta: Environments [Source]
BetaEnvironment.confignow acceptsBetaSelfHostedConfig { type: "self_hosted" }in addition toBetaCloudConfig.- New
scopefield onBetaEnvironment("organization"or"account") controls environment visibility.
Beta: Environments - Create [Source]
configbody parameter now acceptsBetaSelfHostedConfigParams { type: "self_hosted" }for creating self-hosted environments.- New optional
scopeparameter ("organization"or"account") for self-hosted environment visibility. - Added
cache-diagnosis-2026-04-07to the list of accepted beta headers.
Beta: Environments - Update [Source]
configbody parameter now acceptsBetaSelfHostedConfigParamsfor updating to self-hosted configuration.- New optional
scopeparameter for updating visibility. - Added
cache-diagnosis-2026-04-07to the list of accepted beta headers.
Beta: Messages [Source]
- Added
BetaCacheMiss*model types (MessagesChanged,ModelChanged,SystemChanged,ToolsChanged,PreviousMessageNotFound,Unavailable) documenting all possiblecache_miss_reasonvariants. - Added
BetaDiagnosticsresponse envelope model withcache_miss_reasonfield.
Beta: Messages - Create [Source]
- Added
cache-diagnosis-2026-04-07to accepted beta headers. - New optional
diagnosticsrequest body field (BetaDiagnosticsParam { previous_message_id }) for opting into cache miss reporting. BetaMessageresponse now includes adiagnosticsfield withcache_miss_reasonexplaining the first point of prompt divergence.
Beta: Messages - Count Tokens [Source]
- Added
cache-diagnosis-2026-04-07to the list of accepted beta headers.
Beta: Sessions [Source]
- Added
BetaManagedAgentsSessionAgentUpdatetype for mid-session agent configuration updates, allowing full replacement oftoolsandmcp_serversarrays without restarting the session. - Outcome evaluation state values updated to use code formatting.
Beta: Sessions - Create [Source]
- Added
cache-diagnosis-2026-04-07to the list of accepted beta headers.
Beta: Skills [Source]
- Added reference to the new Download Skill Version Content endpoint (
GET /v1/skills/{skill_id}/versions/{version}/content).
Computer Use Tool [Source]
- New best practice tip: place instruction text before the screenshot image in the user turn
contentarray to improve click accuracy. - Added model-specific recommended
thinking.effortsettings for computer use:highdefault for Opus 4.7;mediumdefault for Sonnet 4.6 and Opus 4.6 (avoidmax;lowis cost-efficient on these models). - Added macOS Retina display note: screenshots capture at 2× device pixel ratio — downscale by 2× before sending or halve the returned coordinates.
- New Diagnose click issues section with a symptom/cause/fix table covering offset clicks, near-miss clicks, wrong-element clicks, and consistently poor accuracy.
- Added model precision guidance: Sonnet 4.6 is more mechanically precise than Opus 4.6; Opus 4.7 narrows that gap and has a higher resolution limit.
- New Manage screenshot history for prompt caching section header added to implementation best practices.