Claude Code 2.1.304
Highlights in this release
New 16
Auto Mode Adds Guided Setup, and Session Logs Stop Accumulating Classifier Context
If you want to let Claude execute tasks automatically but worry it will not understand your project architecture, a new tool can now help build its background context first. Running the /auto-mode-setup command reads your current project and recent sessions (the lifecycle of a conversational interaction), guiding you through teaching auto mode about your execution environment. This feature also supports Bedrock, Vertex, Foundry, Claude app gateways, and sessions with telemetry disabled. While auto mode is running, safety classifier context is no longer rewritten with every request, significantly reducing log file size. ⟦Think of a new assistant reading a handover manual thoroughly upon onboarding; subsequent paperwork no longer requires stapling the thick rulebook behind every single sign-off sheet.⟧
Original changelog
Added /auto-mode-setup: a guided setup that reads your project and recent sessions to teach auto mode about your environment, now also available on Bedrock, Vertex, Foundry, Claude apps gateway and telemetry-disabled sessions
Improved session file size in auto mode: the safety classifier's context is no longer stored with every request
/claude-api Adds Agent Security Verification and Prioritizes Dedicated CLI on AWS
When managing autonomous agents in the cloud, you often need to confirm whether current configurations comply with official security standards. Running /claude-api managed-agents-secure now audits managed agent settings item by item against Anthropic's published security guidelines without modifying any existing configuration. In Claude Platform environments on AWS, the /claude-api skill directly invokes the ant command-line tool instead of falling back to software packages or transfer commands. ⟦An inspector tours a server room with an official fire safety checklist, checking fire exits and extinguishers item by item without moving any equipment, and reporting updates directly over a dedicated radio.⟧
Original changelog
Added /claude-api managed-agents-secure, which compares a Managed Agents agent's settings with Anthropic's published security guide, without changing anything
Updated the /claude-api skill to use the ant CLI on Claude Platform on AWS instead of falling back to the SDK or curl
Artifacts Support Independent Tab Links, and Deletion Confirmations Use Number Keys to Prevent Accidents
When asking Claude to produce artifacts containing multiple views, you often need precise control over the location and link for each screen. Requesting artifact links now prompts Claude to explicitly list full URLs for every tab view, while noting that switching views will not update the browser address bar. When deleting artifacts via /artifacts, the confirmation prompt now uses a numbered menu: pressing 1 or Enter keeps the artifact, while pressing 2 confirms deletion, with familiar y, n, and Esc keys remaining compatible. ⟦Flipping through an exhibition guide with bookmarked sections reveals the exact code for each display hall, while tearing out a page requires matching a numbered stub to prevent mistakes.⟧
Original changelog
Improved artifacts with several views: when you ask for links to them, Claude now writes out each view's link and explains that the address bar stays the same as you switch views
Changed the /artifacts delete confirmation to show numbered choices: 1 or Enter keeps the artifact, 2 deletes it, and y, n and Esc still work
Resume Prompts Warn of Usage Impact on Long Conversations, and Usage Queries Display Cooldown End Times
When planning to resume a lengthy paused conversation, it is often hard to gauge how much quota loading historical context will consume. Pro and Max plans now introduce a usage warning: if resuming an inactive conversation would take up a significant share of your 5-hour limit, the terminal displays a confirmation prompt. You can choose to resume directly or start a clean new conversation, after which Claude will proactively look back whenever you mention earlier context. When checking /usage hits a data rate limit, the interface clearly shows when the restriction ends; Opus 5.5's research preview label in the /fast window title has also been officially removed. ⟦Before restarting an engine, the dashboard warns that the planned trip will consume most remaining fuel, and a gas pump displays a countdown timer when it shuts off.⟧
Original changelog
Added a warning on Pro and Max plans when resuming an inactive conversation would use a noticeable share of your 5-hour usage limit: resume anyway, or start a new conversation and Claude can look up the previous one if you refer to it
Improved /usage to say when a rate limit on usage data ends instead of "try again in a moment"
Removed the "(research preview)" label from the /fast dialog title on Opus 5.5
Extensions Support Strict Human Authorization, with Precise Read-Only Flags and Configuration Tier Control
When writing extensions to intercept tool calls, controlling authorization boundaries for sensitive operations is critical. Modules add a decider: "person" property to tool.check, restricting approvals exclusively to permission confirmation dialogs or host callbacks; without an available human to ask, requests are denied directly with the module's reason. The event parameter also adds e.isReadOnly to flag whether a tool is read-only. If an earlier plugin bypasses your module hooks (small programs triggered by specific events), the log explicitly records the plugin and event names. The settings.read hook in modules can now read every configuration layer and override merged values, locking organizational settings as an inviolable ceiling. Plugin validation commands also no longer print text guessing hook locations. ⟦A high-security checkpoint deploys dual defense lines, requiring security personnel to stamp dangerous operations in person while executive authorization ceilings block unauthorized escalations.⟧
Original changelog
Added a transcript line when a plugin that runs first skips one of your mod's hooks, naming the event and the plugin
Added decider: "person" to a mod's tool.check answer: only the permission dialog or a host's callback can approve the ask, and it is refused with the mod's reason where nobody can be asked
Added e.isReadOnly to a mod's tool.check event, set when the tool call is read-only
Changed mods' settings.read hooks to receive each settings layer and rewrite the merged settings, so a managed mod can make an organization's setting a ceiling, including the cleanupPeriodDays the retention sweep uses
Removed the notes from claude plugin validate that predicted where a mod's hooks would run
Module Reload Failures Retain Older Tools, and Clicks on Duplicate Buttons Register Accurately
Adjusting custom modules during a conversation can easily disrupt workflows if a syntax error occurs. Previously, a failed module reload cleared out working older tools and commands by mistake; now, reload failures preserve existing versions intact while the terminal clearly displays reload status. When multiple buttons share identical labels without a specified key, click events are no longer lost after rerendering. On enterprise or managed devices, sharing modules via the plugin-authoring skill no longer hangs on secrets scanning. Prompts activating in-session modules have switched to plain text, remaining visible across turns and clearly reporting loaded content upon activation. ⟦Much like an orchestra changing sheet music, musicians keep playing from older scores when new prints contain errors without breaking the melody, and duplicate keystrokes still produce clear feedback.⟧
Original changelog
Fixed a failed mod reload removing the tools and commands of the version that stays loaded, and its messages being wrong or silent about whether the previous version is still loaded
Fixed a click on a mod's button being lost when buttons with the same label and no key were redrawn unchanged
Fixed mod sharing in the built-in plugin-authoring skill stopping at the secret scan on machines with managed settings and on Team and Enterprise plans
Improved the lines shown when a mod written in the session loads, reloads or fails to load
Changed the question that turns on the mods Claude writes in a session to plain text with no link or session id; it stays up when a new turn starts, and Claude tells you what loaded when you turn them on
Skill Reloads Transmit Only Changes, and Single Sources Face Hook Limits
When a project loads numerous custom skills, frequent updates can easily flood conversation context with redundant descriptions. Previously, every plugin reload resent the entire skill inventory; running /reload-skills now transmits only added or modified entries, while conversation compaction reliably resends a fresh full inventory. To prevent plugins from expanding indefinitely, a single source can register at most 1,024 hooks and 16,384 matching characters per session (the lifecycle of a conversational interaction). A skill's single-fire hook no longer deletes identical hooks from other skills upon triggering, and skills cannot obtain default authorization tools if policy bans local skill hooks. ⟦Like a library updating its catalog, staff print supplementary slips only for new arrivals, while capping the number of display stands each private sponsor can place.⟧
Original changelog
Fixed resumed and cloud sessions sending Claude the whole skill list again each time plugins reloaded at startup
Fixed a skill's once hook also removing another skill's identical hook after it ran
Changed compaction to send Claude the skill list again afterwards; /reload-skills now sends only new or changed skills
Changed skill hooks: the skills of one source (a repo, your own folder, or a plugin) can register at most 1,024 hooks and 16,384 matcher characters per session
Changed skills under a policy that allows hooks from plugins only: a skill used in the main conversation whose hooks are kept out no longer gets its allowed-tools
Multiple Subagents Run More Smoothly in Parallel, Eliminating Memory Loss When Messaged Immediately After Tasks
When dispatching multiple subagents across large projects, information transfer between agents is critical. Responsiveness and processing throughput when running multiple subagents concurrently have improved significantly. Previously, messaging or resuming a subagent immediately after it finished a task sometimes caused it to forget its most recent output; this cache loss issue is now resolved. In headless mode (an execution mode without terminal windows or visual interfaces), plugins can no longer spawn subagents to bypass turn limits or stop commands. When an agent team approves a shutdown request in the main session, it no longer accidentally terminates the entire tool process, and tool interception timeouts no longer overwrite existing rejection reasons. ⟦Relay runners sprint along their respective lanes, taking on new tasks at the baton pass while carrying forward previous momentum, and the referee logging arrivals never whistles to abort the entire race.⟧
Original changelog
Fixed a plugin keeping a headless run going past --max-turns, Stop, or ended input by spawning subagents or re-running a finished one
Fixed subagents sometimes forgetting their most recent work when they were messaged or resumed right after finishing
Fixed a PreToolUse hook's deny reason being replaced by a timeout error when an Agent SDK callback hook on the same tool call timed out
Fixed agent teams: approving a shutdown request from the main session no longer exits the whole CLI
Improved responsiveness and throughput when many subagents are running at the same time
Conversation Compaction Summaries List Past Tool Names, and Low Disk Space No Longer Discards History
When conversations exceed model capacity and trigger automatic compaction, a clear summary helps you quickly grasp prior decisions. Pressing Ctrl+O to view transcripts now displays a compaction summary that explicitly lists the names of all previously called tools. The CLAUDE_CODE_AUTO_COMPACT_WINDOW environment variable officially supports k and M unit suffixes, issuing proactive warnings if values fall out of range or are ignored. Previously, local log cleaners could drop conversations while trimming files under low disk space; this issue has been eliminated. Aborting mid-compaction after the model rejects an oversized conversation no longer throws prompt-too-long errors, and jumping with shortcut keys in transcript views no longer drifts. ⟦A recording secretary binds lengthy proceedings into a concise memorandum, listing every previously presented slide on the cover, while tight filing cabinet space never causes a single voucher to slip out.⟧
Original changelog
Added the names of the tools called earlier to the compaction summary in the transcript view (Ctrl+O)
Fixed CLAUDE_CODE_TRANSCRIPT_LOCAL_GC dropping messages from the saved transcript when the disk filled up while the file was being trimmed
Fixed a "Context limit reached" or "Prompt is too long" error after stopping a turn while Claude Code was compacting a conversation the API had rejected as too long
Fixed transcript mode's { and } landing the prompt on an inconsistent row, or off screen, instead of the transcript's first row
Fixed CLAUDE_CODE_AUTO_COMPACT_WINDOW=200k silently setting a 100K window: the variable now accepts k and M suffixes like --autocompact, and warns when a value is out of range or ignored
Remote Control removes account restrictions, while custom proxy gateways automatically retry with compatibility
Connecting to Claude through different terminals or custom server gateways often leads to communication disruptions due to minor differences in environment parameters. Previously, Remote Control (a connection mechanism syncing the desktop client with the terminal) permanently withheld desktop history when logging in with a different account from the terminal, but this restriction has now been officially removed. Desktop remote connections now launch smoothly even when telemetry is disabled under paid plans. When a custom language model gateway reports unsupported context management fields, the client automatically strips incompatible fields and resends the request. Custom ANTHROPIC_BASE_URL settings enable tool search by default, and automatically fall back to retry upon protocol rejections. Telemetry tracking configurations assigned by the server after login are no longer ignored throughout the entire session. ⟦A roaming traveler’s device automatically detects local bandwidth during cross-border communication, falling back to basic packets for retransmission upon format mismatches, while switching to a temporary number never locks roaming history.⟧
Original changelog
Fixed Remote Control permanently withholding a desktop conversation's history when a different account was signed in to the terminal
Fixed Remote Control failing to start from Claude Desktop when DISABLE_TELEMETRY or DO_NOT_TRACK is set on a paid plan
Fixed context_management: Extra inputs are not permitted errors behind LLM gateways; Claude Code now resends the request without that field
Fixed OpenTelemetry settings delivered through server-managed settings being ignored for the whole session after signing in during first-run setup or the first start after /logout
Improved how a remote session recovers its status when the server refuses a status update that carried other session data
Changed tool search to be on by default behind a custom ANTHROPIC_BASE_URL; a 400 or 422 from the gateway is retried without it
Model switching and interruptions no longer queue or stutter, while one-hour recurring schedules accurately hit the cache
When rushing to switch models or press interrupt during a conversation, any waiting feels sluggish. Across the SDK and desktop app, switching models, sending new messages, or issuing interrupt signals are no longer stalled behind context checks. If reading tools get stuck on idle pipes or devices disguised as images, pressing interrupt breaks free immediately. Scheduled /loop recurring wakeups set at the one-hour ceiling had their trigger timing fixed, preventing them from narrowly missing the one-hour cache expiration and avoiding full conversation re-reads upon waking. First-response speeds when resuming large conversations are noticeably faster, alongside improved memory consumption. ⟦Picture a professional audio mixing console where pressing mute instantly cuts signals without waiting for background self-checks, while automated timed playback directly retrieves pre-warmed master tapes.⟧
Original changelog
Fixed model switches, messages and interrupts waiting behind a context usage check in SDK and desktop sessions
Fixed an interrupt not ending a Read that waits on an idle pipe or device named like an image
Fixed self-paced /loop wakeups scheduled at the 1-hour maximum firing just after the 1-hour prompt cache expired, so those wakeups no longer re-read the conversation uncached
Improved resume of large compacted sessions in SDK and headless mode: the first request after resuming is sent sooner
Improved memory use when sending requests in long or resumed conversations
Startup keys instantly sync organization policies, and desktop terminals fully inherit profile environment variables
When configuring team keys or switching project settings, failures to apply updated policies and system variables immediately often trigger permission errors. Previously, entering keys at launch or switching custom credentials in /config required waiting for an hourly routine check before organization policies updated. That sync now refreshes immediately. Running Bash commands within the desktop Code tab now fully inherits exported environment variables from profile files such as ~/.zshrc on macOS and Linux. After network disconnections, /privacy-settings no longer offers inapplicable privacy options, and Terms of Service reminders are never omitted. When loading configurations with claude -p, alerts focus strictly on critical errors that obstruct startup. ⟦Consider a new security badge that instantly grants access to every floor at the turnstile, while personal lockers in the office already hold every necessary tool.⟧
Original changelog
Fixed the organization policy not refreshing until the hourly check after approving an ANTHROPIC_API_KEY at startup or switching "Use custom API key" in /config
Fixed unsandboxed Bash commands in Claude Desktop Code tab sessions on macOS and Linux not seeing environment variables exported in shell startup files such as ~/.zshrc
Fixed the Consumer Terms notice being skipped for a day or longer after a server error
Fixed /privacy-settings offering choices that may not apply to you after a network or server error
Improved the claude -p invalid-settings warning: a file that did not load lists only what stopped it, and long lists are capped per file
Cloud scheduling eliminates waiting for unapproved URLs, and initial conversation turns skip local tool startup stalls
Scheduling tasks into unattended cloud sessions often causes severe stalls when encountering steps that require manual authorization. In Cowork scheduled cloud sessions, subagents fetching URLs without approvals no longer wait five minutes repeatedly for each agent. During the first turn of a new conversation, unless explicitly declared as required, startup no longer waits for local standard input MCP (Model Context Protocol, a protocol allowing AI to connect to external tools) servers synced from the web, speeding up launches. Selecting directory plugin skills from the slash menu now executes them smoothly as commands, and tagging folders in the prompt input no longer drops names. If a self-hosted runner cannot find a repository, it clearly presents the project name and point of contact. ⟦An unmanned weather station at night skips probes that lose signal instead of idling, while powering on equipment no longer requires pre-warming disconnected sensors.⟧
Original changelog
Fixed scheduled Cowork cloud sessions waiting five minutes again for each subagent whose WebFetch needed a URL approval that nobody was there to give
Fixed a claude.ai Directory plugin's skills not running as commands when picked from the "/" menu in Cowork cloud sessions
Improved cloud sessions: a new conversation's first turn no longer waits for the local (stdio) MCP servers of plugins synced from claude.ai, unless a server sets alwaysLoad: true
Self-hosted runner: Improved the error shown when the git host answers "not found" for a session's repository: it now names the repository and whom to ask
[Cloud sessions] Fixed folders in the composer's @ list showing no name in cloud sessions, where picking one added only a space instead of a mention
VS Code background agents present cleanly in status lines, and startup hook runtimes no longer count toward timeouts
Collaborating with Claude inside VS Code often causes conversation context to get buried under large volumes of background task output. Background subagents now appear as a single line of progress text below the agent card rather than flooding trivial steps into the chat window, with full logs accessible under /tasks. Conversation panels across cloud platforms and custom gateways now also support interface rendering for modules. Execution time for SessionStart command hooks (programs triggered by specific events) is no longer counted toward the one-minute timeout limit, expanding up to 10 minutes to prevent startup failures from subprocess initialization timeouts. Closing sessions midway through startup immediately terminates processes, module drawings no longer vanish when open for extended periods, and past conversations list correctly under custom packaged executables. ⟦Staging in a theater production reports backstage scenery shifts through side lights without disrupting the main stage, while lowering the curtain cleanly terminates rehearsal processes.⟧
Original changelog
[VSCode] Added mod drawing in the chat panel for sessions on Amazon Bedrock, Google Vertex AI and Microsoft Foundry, behind an LLM gateway, or with telemetry turned off
[VSCode] Fixed one cause of sessions failing to start with "Subprocess initialization did not complete within 60000ms": time a SessionStart command hook spends running no longer counts toward the limit, up to 10 minutes in total
[VSCode] Fixed a session closed while it was starting keeping its Claude Code process running until the start ended
[VSCode] Fixed a mod's drawings disappearing from a long-open panel until the next turn on machines that also run an older Claude Code
[VSCode] Fixed Past conversations hiding sessions when claudeCode.claudeProcessWrapper is set
[VSCode] Changed background sub-agents to show as one status line under their Agent card instead of streaming every step into the chat; the full transcript stays in /tasks
Shared channels proactively prompt for new threads mid-task, and commands run outside threads provide private guidance
Tagging Claude for collaboration in enterprise messaging apps can easily disrupt active conversations when channel properties change. Previously, if a channel was converted to an Enterprise Grid cross-workspace shared channel midway through a task, Claude would suddenly fall silent. Now it actively leaves a prompt guiding you to mention it again in a new thread to resume work. When someone runs the @Claude !fork branching command directly outside a thread, Claude no longer stays quiet, but sends an ephemeral message clearly explaining that this command can only be executed inside a thread. This ensures operational feedback remains consistently transparent during cross-group communication. ⟦When a neighborhood meeting transitions into a cross-building seminar, the host puts up signs directing participants to the new venue, and ballots miscast in hallways are returned with guidance toward the correct ballot box.⟧
Original changelog
[Claude Tag] Fixed Claude going silent in a thread when its channel becomes shared across Enterprise Grid workspaces mid-task; it now posts a one-time note to @-mention it in a new thread
[Claude Tag] Fixed @Claude !fork typed outside a thread getting no visible reply; Claude now shows you a private note saying to run it from inside a thread
Code review introduces three depth tiers, supporting automated organization-wide GitHub coverage
Rolling out automated code review across teams often calls for flexible review depth based on project importance. The code review feature now introduces a tiered system: team owners can select Fast, Standard (default), or In-depth checks for the entire organization, or customize distinct tiers for specific core projects. The administration console adds an automatic review option that brings all repositories under a GitHub organization into management at once, automatically including newly created projects to eliminate manual configuration overhead. If pull requests arrive immediately after enabling the review feature, the system no longer silently drops them, instead automatically rescheduling and completing the check. ⟦Quality inspection centers establish sampling mechanisms across production lines, quickly weighing daily goods while deeply scanning precision instruments, automatically cataloging new assembly lines, and promptly inspecting samples submitted right as shifts begin.⟧
Original changelog
[Code Review] Added review levels to Code Review: Owners choose Quick, Standard (the default), or Deep for the organization, and can give individual repositories their own level
[Code Review] Added an option in Code Review admin settings to review every repository in a GitHub organization, including ones added later, without selecting them one by one
[Code Review] Fixed pull requests opened within a minute or two of an admin turning on Code Review being silently skipped; they are now retried and reviewed
Fixed 2
External Drive Deletions Prompt Safety Confirmations, and Detached Worktrees Are Protected Upon Exit
When organizing files or testing project branches, operational boundaries are highly sensitive. Running rm -r on external drives or top-level directories such as /Volumes, /media, or WSL /mnt/c now triggers a safety confirmation prompt, matching the behavior for system directories. When using claude --worktree in a detached state or on a different branch, ending a session no longer arbitrarily deletes worktrees (Git's feature for running multiple parallel copies of the same project), keeping unpushed commits safe. When modifying files outside the working directory, paths now display as ~/ or absolute paths instead of lengthy relative notation. Linux sandbox paths containing square brackets no longer trigger errors, and Windows invokes git.exe directly to reduce latency. ⟦Operating heavy machinery sounds a warning buzzer when backing up toward cargo containers, and latching pins lock in place whenever a detached trailer holds goods.⟧
Original changelog
Fixed sandboxed commands failing to start on Linux when a sandbox.filesystem.denyRead glob contains brackets that are not a character class, such as a [user-id] route folder
Fixed rm -r of a mounted drive or a folder at its top level (/Volumes, /media, WSL's /mnt/c) not getting the safety prompt that rm -rf /Applications gets
Fixed Write results and rejected edits showing a file outside the working directory as ../../…; they now show ~/… or the full path
Fixed claude --worktree removing the worktree and its branch without asking at exit when HEAD was detached or on another branch, which could lose commits
Fixed Bash and PowerShell deleting a large command's output file when it could not be copied to the session's tool-results folder, unless the disk is full
Windows: Improved git command start-up with a standard Git for Windows install by running its git.exe directly instead of through its cmd launcher
Help text aligns with real parameter behavior, and terminal input notes are no longer cut off by ellipses
Typing commands and choosing response options in text terminals can be confusing when the interface display does not match underlying behavior. When running claude --help, descriptions for multiple options and update commands—including --tools, --resume, and --debug—have been recalibrated to reflect actual operation. When environment variables are set to auto or left unspecified, /effort and the effort indicator next to the input box no longer display guessed values on their own. In narrow windows under 100 columns wide, entering notes in the preview menu no longer cuts off text with ellipses. In the agent list, pressing Ctrl+C before releasing the mouse button will no longer clear selected text without copying it. ⟦Imagine reading a product manual on an e-paper device where chapter titles match physical buttons one by one, and handwritten notes in small screen sidebars never have corner text cropped off.⟧
Original changelog
Fixed claude --help text for --tools, --resume, --debug, --json-schema, --disable-slash-commands, --system-prompt-snapshot and claude update to match actual behavior
Fixed /effort status, /effort ultracode and the prompt's effort indicator showing a guessed effort level when CLAUDE_CODE_EFFORT_LEVEL is auto or unset and no level is sent
Fixed notes typed into a multiple-choice question with previews being cut off with "…" in terminals under about 100 columns, hiding what was typed (anthropics/claude-code#82768)
Fixed Ctrl+C in the agents view clearing a text selection without copying it when pressed before the mouse button was released