Claude docs changes for May 29th, 2026 [diff]
Executive Summary
- Claude Opus 4.8 launches as the new flagship model with adaptive-only thinking,
xhigh/higheffort defaults, fast mode at 2x the standard rate, and 1M-token context window - Dynamic Workflows (research preview) let Claude orchestrate tens to hundreds of background subagents for large tasks; a new
ultracodeeffort level usesxhighreasoning + automatic workflow planning - Mid-conversation system messages (Opus 4.8, Claude API only): insert
{"role": "system"}messages mid-conversation to add instructions without invalidating the prompt-cache prefix - New
MessageDisplayhook in Claude Code lets hooks intercept and reformat assistant text as it renders on screen, without modifying the transcript - Batch processing gains a documented table of unsupported parameters and new server-tool/web-search behavior notes
New Claude Code versions
2.1.153
New features
- Added
skipLfsoption togithub/gitplugin marketplace sources to skip Git LFS downloads during clone and update - Status line commands now receive
COLUMNSandLINESenvironment variables so scripts can size output to the terminal width /bgwhile Claude is responding now continues the response in the background session instead of dropping it/modelnow saves the selection as the default for new sessions; presssin the picker to switch for the current session only (replaces thedkey)
Existing feature improvements
claude agents: autocomplete in the dispatch input now suggests native slash commands and bundled skillsclaude agents: PR column now showsPR #Nfor a single PR orN PRsfor multipleclaude doctornow shows the result of the most recent update attempt- Combined separate MCP authentication startup notifications into a single message
- macOS: background agents now appear as "Claude Code" in Privacy & Security across upgrades
Major bug fixes
- Fixed stateful MCP servers without the optional GET SSE stream reconnect-looping on
tools/list(regression in v2.1.147) - Fixed regression where a custom API gateway could receive the user's Anthropic OAuth credential instead of the gateway's own token
- Fixed subagent frontmatter MCP servers ignoring
--strict-mcp-config,--bare, remote mode, enterprise managed MCP, and managed-settings allow/deny policies - Fixed excessive memory usage (multiple GB) when resuming a session by transcript file path on machines with many stored sessions
- Fixed
Agenttool withsubagent_type: 'claude'silently discarding outputs written to gitignored paths via a temporary worktree
2.1.154
New features
- Claude Opus 4.8 is now available; defaults to
higheffort; use/effort xhighfor hardest tasks - Dynamic workflows: ask Claude to write a workflow and it orchestrates tens to hundreds of background agents; use
/workflowsto view runs - Fast mode on Opus 4.8 available at 2x the standard rate (vs 3x for 4.6/4.7) with 2.5x the speed
claude agents: type! <command>to run a shell command as a background session you can attach to and detach from; also available asclaude --bg --exec '<command>'- Plugins can now declare
defaultEnabled: falseinplugin.jsonor a marketplace entry; users opt in withclaude plugin enable - Stdio MCP server subprocesses now receive
CLAUDE_CODE_SESSION_IDandCLAUDECODE=1in their environment claude mcp list/getnow show unapproved.mcp.jsonservers as⏸ Pending approvalinstead of auto-approving when output is piped- Streaming tool execution is now always enabled, including when telemetry is disabled or on Bedrock/Vertex/Foundry
Existing feature improvements
- The lean system prompt is now the default for all models except Haiku, Sonnet, and Opus 4.7 and earlier
- Claude now reserves multiple-choice questions for decisions it genuinely cannot make itself
/simplifynow runs a cleanup-only review (reuse, simplification, efficiency) instead of the full bug-hunting review/pluginDiscover tab now pins plugins matching the current directory with a "suggested for this directory" annotation- Renamed
/effortslider labels from "Speed"/"Intelligence" to "Faster"/"Smarter" - Claude in Chrome: pick which connected browser to use via
/chromeor in-chat when multiple browsers are connected - Deprecated
CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE(will be removed 06/01) - Improved auto-mode classifier's detection of data exfiltration, particularly bulk repository transfers
Major bug fixes
- Fixed
rm -rf $HOMEnot being blocked as a dangerous path whenHOMEhas a trailing slash - Fixed background-agent completion notifications triggering premature "out of context" behavior on some 1M-context models
- Fixed orphaned
claude --bg-pty-hostprocesses spinning at 100% CPU after the daemon exits on macOS - Fixed
worktree.baseRef: "head"resolving to the main checkout's HEAD instead of the current worktree's HEAD when spawning subagents or callingEnterWorktreefrom inside a linked worktree - Fixed a single invalid
allowedMcpServers/deniedMcpServersentry in managed settings discarding all managed-settings policy
2.1.156
Major bug fixes
- Fixed an issue when using Opus 4.8 where thinking blocks were modified, leading to API errors
Claude Code changes
New Documents
Workflows [Source]
New document covering dynamic workflows (research preview, requires v2.1.154+). Workflows are JavaScript scripts Claude writes to orchestrate subagents at scale — dozens to hundreds of agents running in the background while the session stays responsive. Covers when to use workflows vs subagents/skills, running the bundled /deep-research command, having Claude write a custom workflow, the ultracode effort level that auto-plans workflows for every substantive task, and how to manage, pause, resume, and save runs.
Changed documents
Agent SDK / Hooks [Source]
- New
MessageDisplayhook added to the SDK hooks table: fires when an assistant message with text completes, for redacting or reformatting displayed text without changing the transcript [line 116] [Source]
Agent SDK / Python [Source]
MessageDisplayhook added to the list of events supported by the Python SDK- New note: on Linux, sandbox
failIfUnavailabledefaults toFalsein the Python SDK (unlike TypeScript where it defaults totrue); commands run unsandboxed with a warning when the sandbox can't start unless"failIfUnavailable": Trueis set explicitly
Agent SDK / TypeScript [Source]
MessageDisplayhook event type andMessageDisplayHookInputinterface added, withturn_id,message_id,index,final, anddeltafields- New
failIfUnavailablefield documented onSandboxSettings(defaulttruein TypeScript): stops at startup when the sandbox can't start; set tofalseto fall back to unsandboxed execution with a warning
Agent View [Source]
- New feature: type
! <command>in the dispatch input to run a shell command as a background session; also available asclaude --bg --exec '<command>' - PR status indicator changed from a colored dot to labeled
PR #Ntext (orN PRsfor multiple) /bgwhile Claude is mid-response now continues the response in the background session/modelpicker:skey now switches session-only;dkey removed
Agents [Source]
- "Worktrees" replaced with "Dynamic workflows" (
workflows.md) as one of the four parallelism approaches in the comparison table
CLI Reference [Source]
- New
--execflag: runs a shell command as a PTY-backed background job instead of a Claude session; use with--bg - New
--prompt-suggestionsflag: emits aprompt_suggestionmessage in--output-format stream-json --verbosemode (off by default) --fallback-modelnow also covers retired or unavailable models in addition to overloaded ones
Commands [Source]
- New
/deep-research <question>command: a bundled workflow that fans out web searches across several angles and returns a cited report - New
/reload-skillscommand: re-scans skill directories mid-session without restarting - New
/simplify [target]command: cleanup-only review (reuse, simplification, efficiency); use/code-reviewfor bug hunting - New
/workflowscommand: opens a progress view for running and completed workflows /code-reviewupdated: now acceptsultralevel and--fixflag;ultrais the preferred alias for/ultrareview/effortnow includesultracodeas a new level/modelbehavior changed:Entersaves as default;sapplies session-only
Environment Variables [Source]
- New
CLAUDE_CODE_DISABLE_WORKFLOWS: disables dynamic workflows entirely - New
CLAUDE_CODE_PROPAGATE_TRACEPARENT: propagates W3C trace context to custom proxies - New
OTEL_METRICS_INCLUDE_ENTRYPOINT: includes session entrypoint in OpenTelemetry metrics attributes CLAUDECODEandCLAUDE_CODE_SESSION_IDnow also set in stdio MCP server subprocessesCLAUDE_EFFORTnow reportsultravalue for ultracode sessionsCLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDEdocumented as deprecated
Hooks [Source]
- New
MessageDisplayhook event: fires while assistant message text streams, delivering text in batches via adeltafield; returnsdisplayContentto replace what's rendered on screen without modifying the transcript effortfield in hook input now reports"ultra"as a value (for ultracode sessions)SessionStarthook can now returnsessionTitle(to name the session automatically) andreloadSkills(to trigger a skill re-scan after the hook installs new skills)SessionStartinput now includessession_titleso hooks can avoid overwriting a title the user set explicitly${CLAUDE_PROJECT_DIR}is now also set in the environment of stdio MCP servers and plugin LSP servers- Updated hooks lifecycle diagram to include
MessageDisplayas a display-only event
Interactive Mode [Source]
/btwside-question overlay now supportsfkey to fork into a new full session,xto clear earlier exchanges, andUp/Downto scroll- Prompt suggestions in print mode: off by default, enabled via
--prompt-suggestionsflag
Keybindings [Source]
/in vim normal mode now opens reverse history search (same asCtrl+R)modelPicker:setAsDefault(keyd) replaced withmodelPicker:thisSessionOnly(keys)
MCP [Source]
- Pending approval servers from
.mcp.jsonnow appear inclaude mcp listasPending approval;claude mcp getalso shows rejected status
Model Configuration [Source]
- Claude Opus 4.8 is now the default
opusalias on the Anthropic API (requires v2.1.154+); default effort ishigh - New
ultracodeeffort level: combinesxhighreasoning with automatic dynamic workflow orchestration; session-only, cannot be set viaeffortLevelor--effortin config /modelnow saves as default by default;skey applies to the current session only
Plugin Marketplaces [Source]
- New
defaultEnabledfield in marketplace entries (takes precedence overplugin.json): ships plugins disabled by default, requiring user opt-in claude plugin marketplace removenow supports--scopeoption to remove from a specific settings scope without uninstallingclaude plugin marketplace list --jsonnow includes source-specific fields in output
Plugins Reference [Source]
- New
defaultEnabledfield inplugin.json: ships a plugin disabled by default; users opt in with/pluginorclaude plugin enable(requires v2.1.154+) MessageDisplayhook event type added to plugin hook events
Setup [Source]
claude doctornow shows the result of the most recent update attempt and lists fixes when the npm global directory isn't writable
Skills [Source]
- New
disallowed-toolsfrontmatter field: removes specific tools from Claude's available pool while a skill is active (useful for background loops to preventAskUserQuestion) ${CLAUDE_EFFORT}substitution now also reports theultravalue (for ultracode)allowed-toolsnow accepts comma-separated strings in addition to space-separated
Status Line [Source]
COLUMNSandLINESenvironment variables are now set before status line scripts run, enabling terminal-width-aware output (requires v2.1.153+)effort.levelfield now reportsultravalue for ultracode sessions
Sub-agents [Source]
- MCP restrictions (
--strict-mcp-config,--bare, enterprise managed MCP,allowedMcpServers/deniedMcpServers) now apply to MCP servers declared in subagent frontmatter as of v2.1.153
Voice Dictation [Source]
- Voice dictation is now unavailable when HIPAA compliance is enabled for the organization
API changes
New Documents
Build with Claude / Mid-Conversation Effort Example [Source]
New guide showing how to build an orchestration mode using mid-conversation system messages. Demonstrates a full agentic loop that toggles xhigh effort and automatic workflow use via system messages appended mid-conversation, with parallel subagent fan-out and structured report_findings results. Available on Claude Opus 4.8 only.
Build with Claude / Mid-Conversation System Messages [Source]
New guide for the mid-conversation system message feature (Claude Opus 4.8, Claude API only). Explains how appending {"role": "system"} messages mid-conversation allows adding instructions without invalidating the prompt-cache prefix. Covers placement constraints, caching interaction, use cases (mode switches, per-turn context injections, policy changes), and limitations.
Managed Agents / Cloud Sandboxes Reference [Source]
New reference page documenting the specifications of cloud sandboxes for Managed Agents. Lists pre-installed languages (Python 3.12+, Node.js 20+, Go 1.22+, Rust, Java, Ruby, PHP, C/C++), databases (SQLite local, PostgreSQL/Redis clients), system utilities, and development tools.
Changed documents
Agents and Tools / Agent Skills / Quickstart [Source]
- Code examples updated to
claude-opus-4-8
Agents and Tools / MCP Connector [Source]
- MCP connector now supports Message Batches API requests; MCP tool calls via the Batches API are priced the same as regular requests
Agents and Tools / Tool Use / Advisor Tool [Source]
- Claude Opus 4.8 added as a supported advisor and executor model
- New
stop_reasonfield onBetaAdvisorResultBlockandBetaAdvisorRedactedResultBlock: reports the advisor sub-inference's stop reason (same values as top-levelstop_reason);max_tokensindicates the advisor's output was truncated
Agents and Tools / Tool Use / Code Execution Tool [Source]
- Claude Opus 4.8 added to the supported model table for both
code_execution_20250825andcode_execution_20260120tool versions
Agents and Tools / Tool Use / Overview [Source]
- Tool use system prompt token counts updated for all models; Claude Opus 4.8 added (290 tokens for
auto/none, 410 forany/tool) - Token counts for existing models changed significantly (e.g., Opus 4.7 updated from 346/313 to 675/804)
Agents and Tools / Tool Use / Web Search Tool [Source]
- Claude Opus 4.8 added to the dynamic filtering support list for
web_search_20260209 - New note: the Batches API throttles web search per organization for large batches; links to the Claude Console Limits page to view or request rate limit increases
API / Beta [Source]
- Two new beta header values added:
thinking-token-count-2026-05-13andmid-conversation-system-2026-04-07 - Claude Opus 4.8 (
"claude-opus-4-8") added to the model enum with description "Frontier intelligence for long-running agents and coding" BetaAdvisorResultBlockandBetaAdvisorRedactedResultBlocknow includestop_reasonfield
API / Messages [Source]
- New
MidConversationSystemBlockParamtype added: represents system instructions that appear mid-conversation instead of via the top-levelsystemparameter; type is"mid_conv_system" - New
url_not_in_prior_contexterror code added to the web fetch error enum ContentBlockParamunion expanded to includeMidConversationSystemBlockParam(now 14 variants)
API / Messages / Create [Source]
rolefield now accepts"system"in addition to"user"and"assistant"to support mid-conversation system messagesMidConversationSystemBlockParamdocumented as a new content block type- Claude Opus 4.8 added to the model enum
Build with Claude / Batch Processing [Source]
- New pricing row for Claude Opus 4.8: $2.50/MTok batch input, $12.50/MTok batch output
- New table documenting unsupported parameters in batch requests (e.g.,
stream,speed,store,cache_hint,max_tokens: 0,research_preview_2026_02) with reasons for each - New "Server tools and the agentic loop" section: all server tools work in batches; the batch loop runs more iterations per turn before returning
pause_turn;web_searchis throttled per organization in batch mode - Extended output beta (
output-300k-2026-03-24) now includes Claude Opus 4.8
Build with Claude / Context Windows [Source]
- Claude Opus 4.8 added to the 1M-token context window group; note added that on Microsoft Foundry, Opus 4.8 has a 200k-token context window
- Compaction beta support list updated to include Claude Opus 4.8
Build with Claude / Effort [Source]
- Claude Opus 4.8 added to supported models for
maxandxhigheffort levels - New "Recommended effort levels for Claude Opus 4.8" section: recommends
xhighfor coding/agentic use,highas default; links to the new orchestration mode guide - New note clarifying that Claude Code's
ultracodemode is not an API effort level — it pairsxhigheffort with multi-agent permissions via mid-conversation system messages
Build with Claude / Extended Thinking [Source]
- Claude Opus 4.8 added: manual extended thinking (
budget_tokens) not supported (returns 400); adaptive thinking only, withdisplaydefaulting to"omitted" - New
usage.output_tokens_details.thinking_tokensfield documented for tracking how many billed output tokens were spent on reasoning - Model comparison table expanded with Claude Opus 4.8 column
Build with Claude / Fast Mode [Source]
- Claude Opus 4.8 added to supported fast mode models at $10/$50 per MTok (vs $30/$150 for 4.6/4.7) — 2x the standard rate
- Fast mode for Opus 4.6 is now deprecated; will be removed approximately 30 days after the Opus 4.8 launch
- Fast mode for Opus 4.8 is Claude API only (not available on Bedrock, Vertex, or Foundry)
Build with Claude / Prompt Caching [Source]
- New pricing row for Claude Opus 4.8: $5/MTok input, $0.50/MTok cache hits, $25/MTok output; added to 1,024-token minimum cacheable prompt length group
- New note: on Opus 4.8, you can append a
{"role": "system"}message mid-conversation without invalidating cached prefixes
Build with Claude / Structured Outputs [Source]
- Claude Opus 4.8 added to the supported model list for structured outputs on the Claude API, Amazon Bedrock, and Vertex AI
Build with Claude / Task Budgets [Source]
- Task budgets now listed as available in beta on Claude Opus 4.8 (previously only Opus 4.7)
- Code examples updated to use the streaming pattern (
client.beta.messages.stream)
Build with Claude / Working with Messages [Source]
- New note:
temperature,top_p, andtop_kare not supported on Claude Opus 4.7 and later (including 4.8); setting them returns a 400 error - New note: refusal responses (
stop_reason: "refusal") on Opus 4.7+ include astop_detailsobject identifying the policy category - New "System role in messages" section documenting mid-conversation system messages for Opus 4.8
Get Started [Source]
- Prerequisites section now explicitly lists having an API key
- Quickstart steps expanded to include more language tabs (C#, Go, PHP, Ruby)
- Step 2 now includes creating a virtualenv before installing the SDK
- Example output simplified to show a condensed response format
Intro [Source]
- Featured "latest model" updated to Claude Opus 4.8, described as Anthropic's most capable model for complex reasoning and agentic coding
Managed Agents / Agent Setup [Source]
- Note added: fast mode for Opus 4.6 is deprecated as of the Opus 4.8 launch and will be removed approximately 30 days later
Managed Agents / Environments [Source]
- Terminology updated throughout: "cloud container" renamed to "cloud sandbox"; broken link updated from
cloud-containers.mdtocloud-sandboxes-reference.md
Managed Agents / Overview [Source]
- "Container" terminology replaced with "sandbox" throughout; code examples updated to
claude-opus-4-8