modified Manage mods for your organization View current →
--- a/admin.md +++ b/admin.md @@ -1,4 +1,4 @@ -A [mod](</docs/en/plugins/mods/overview>) is a plugin that runs code inside Claude Code with the permissions of the user who installed it. Mods aren’t sandboxed. Through [managed settings](</docs/en/managed-settings>), you decide whether mods run on your users’ machines, which ones, and in what order. You can also install a mod of your own that watches or refuses what other mods do. This page is for the person who deploys managed settings for Claude Code, whether as a file, through MDM, or from the claude.ai admin console. Mods are on by default in Claude Code v2.1.287 and later. Start with the section that matches what you came to do: +A [mod](</docs/en/plugins/mods/overview>) is a plugin that runs code inside Claude Code with the permissions of the user who installed it. Mods aren’t sandboxed. Through [managed settings](</docs/en/managed-settings>), you decide whether mods run on your users’ machines, which ones, and in what order. You can also install a mod of your own that watches or refuses what other mods do. This page is for the person who deploys managed settings for Claude Code, whether as a file, through MDM, or from the claude.ai admin console. Mods are on by default in Claude Code v2.1.286 and later. Start with the section that matches what you came to do: * **Keep users’ own mods out, with or without mods of your own** : Stop user-installed mods from loading * **See what your users get when you change nothing** : Know what happens by default
modified Manage multiple agents with agent view View current →
Show diff (113 lines)
--- a/agent-view.md +++ b/agent-view.md @@ -97,11 +97,11 @@ Working ✽ collision detection Adding swept-AABB checks to CollisionSystem 2m - ✢ playtest level 3 run 12 · all checkpoints cleared in 4m + ✢ playtest level 3 all checkpoints cleared ×12 in 4m Completed - ✻ title screen result: menu, options, and credits done 9m - ∙ sound effects result: 14 SFX exported to assets/audio 4h + ✻ title screen menu, options, and credits done 9m + ∙ sound effects 14 SFX exported to assets/audio 4h … 6 more ### @@ -121,11 +121,11 @@ Failed| Red| The task ended with an error Stopped| Grey| You stopped the session with `Ctrl+X` or `claude stop`, its process was ended from outside Claude Code, or it ended while the background service was off -Separately, the icon’s shape shows whether the underlying process is running: +Separately, the icon’s shape has its own meaning: Shape| What it means ---|--- -`✻` or animated `✽`| The session process is alive and replies immediately +`✻` or animated `✽`| The session process is running, or the session needs your input `∙`| The process has exited. You can still peek at the row, and when you reply or attach, Claude restarts from where it left off `✢`| A [`/loop`](</docs/en/scheduled-tasks>) session sleeping between iterations. The row shows its run count and a countdown @@ -192,7 +192,7 @@ * A question without predefined choices: type your answer. When the empty input shows a suggested reply, press `Tab` to fill it in and edit it before sending * A permission prompt or another dialog, such as a [sandbox](</docs/en/sandboxing>) prompt or an MCP server’s [request for input](</docs/en/mcp#respond-to-mcp-elicitation-requests>): replying doesn’t answer it. Your reply waits in the queue. To answer the dialog, attach with `→` -When a [`PermissionRequest`](</docs/en/hooks#permissionrequest>) or [`PreToolUse`](</docs/en/hooks#pretooluse>) hook returns output Claude Code can’t validate for the call the session is asking about, the row shows the hook event and `hook output invalid:` with the validation error before the pending request’s text. For a hook that fails another way, the row says the hook failed. The session still waits on the same request. A reply that can’t be delivered, because the background service is unreachable or the send fails, is saved and sent to the session as its next prompt when its process starts again, and the error message says the reply was saved. A reply prefixed with `!` isn’t saved, because the saved text would reach the session as a plain prompt rather than run as a Bash command. With [voice dictation](</docs/en/voice-dictation>) enabled, hold or tap your push-to-talk key while the reply input is focused to dictate a reply instead of typing it. The same works in the dispatch input at the bottom of agent view. Use `↑` and `↓` to peek at adjacent sessions without closing the panel, or `→` to attach. +When a [`PermissionRequest`](</docs/en/hooks#permissionrequest>) or [`PreToolUse`](</docs/en/hooks#pretooluse>) hook returns output Claude Code can’t validate for the call the session is asking about, the row shows the hook event and `hook output invalid:` with the validation error before the pending request’s text. For a hook that fails another way, the row says the hook failed. The session still waits on the same request. A reply that can’t be delivered, because the background service is unreachable or the send fails, is saved and sent to the session as its next prompt when its process starts again, and the error message says the reply was saved. A reply prefixed with `!` isn’t saved, because the saved text would reach the session as a plain prompt rather than run as a Bash command. With [voice dictation](</docs/en/voice-dictation>) enabled in [hold mode](</docs/en/voice-dictation#hold-to-record>), hold your push-to-talk key while the reply input is focused to dictate a reply instead of typing it. The same works in the dispatch input at the bottom of agent view. Use `↑` and `↓` to peek at adjacent sessions without closing the panel, or `→` to attach. ### @@ -222,7 +222,7 @@ Organize the list -Agent view groups sessions so the ones that need input are at the top, with `Ready for review` and `Needs input` above `Working` and `Completed`. These group names don’t map one-to-one to the states above: a session moves to `Ready for review` when it has an open pull request, and `Completed` collects finished, failed, and stopped sessions together. Press `Ctrl+S` to group by directory instead. Your choice persists across runs. Within a group: +Agent view groups sessions so the ones that need input are at the top, with `Ready for review` and `Needs input` above `Working` and `Completed`. These group names don’t map one-to-one to the states above: a session moves to `Ready for review` when it has an open pull request that needs review or has failing checks, and `Completed` collects finished, failed, and stopped sessions together. Press `Ctrl+S` to group by directory instead. Your choice persists across runs. Within a group: * Press `Ctrl+T` to pin a session to the top and keep its process running while idle * Press `Shift+↑` or `Shift+↓` to reorder sessions @@ -236,7 +236,7 @@ * the view was started with [`--safe-mode`](</docs/en/cli-reference#cli-flags>) * the view was opened with a flag such as `--permission-mode` or `--settings` -Completed sessions that don’t fit on screen fold into a `… N more` row. Failures and sessions with an open pull request always stay visible. The `Completed` group fills the vertical space left after the live groups, and on a short terminal the header compacts to a single summary line so sessions that are working or need input stay visible. +Completed sessions that don’t fit on screen fold into a `… N more` row. The `Completed` group fills the vertical space left after the live groups, and on a short terminal the header compacts to a single summary line so sessions that are working or need input stay visible. ### @@ -263,7 +263,7 @@ Keyboard shortcuts -Press `?` in agent view to see every shortcut in context. The table below summarizes them. +Press `?` in agent view to see shortcuts in context. The table below summarizes them. Shortcut| Action ---|--- @@ -288,7 +288,7 @@ `Shift+↑` / `Shift+↓`| Reorder the selected session `Esc`| Close the peek panel, clear the input, or exit. When you opened agent view by backgrounding your session with `←`, the final `Esc` returns to that conversation instead of exiting. With [vim editor mode](</docs/en/interactive-mode#vim-editor-mode>) on, pressing `Esc` in the input switches from INSERT to NORMAL mode and keeps your text, as in the main prompt `Ctrl+C`| Clear the input; press twice to exit -`?`| Show all shortcuts +`?`| Show shortcuts The shortcuts that have an action in the [`Agents` context](</docs/en/keybindings#agents-actions>) follow your [`keybindings.json`](</docs/en/keybindings>). So does `Ctrl+G`, through the `Chat` context’s `chat:externalEditor` binding. @@ -458,7 +458,7 @@ } } -Outside a git repository, sessions write to the working directory directly and aren’t isolated from each other, so avoid dispatching parallel sessions that edit the same files. If you use a different version control system, configure a [`WorktreeCreate` hook](</docs/en/worktrees#non-git-version-control>) and Claude isolates edits the same way it does for git. When the hook fails in a directory that isn’t a git repository, Claude skips isolation for that directory and edits the working directory in place. Inside a git repository, a session that Claude moves into a worktree before editing can’t edit files in the shared checkout until that move happens. To find a session’s worktree path, peek the session or attach and check its working directory. A [subagent](</docs/en/sub-agents>) the background session spawns inherits the session’s working directory. Once the session is in a worktree, the subagent’s file edits land in that worktree rather than in your working copy. To give a subagent its own separate worktree instead, set [`isolation: worktree`](</docs/en/sub-agents#supported-frontmatter-fields>) in its frontmatter or pass `isolation: "worktree"` when spawning it. When a background session has made code changes in a worktree Claude entered, Claude Code instructs Claude to preserve the work before finishing, so it survives if you delete the session and its worktree: +Outside a git repository, sessions write to the working directory directly and aren’t isolated from each other, so avoid dispatching parallel sessions that edit the same files. If you use a different version control system, configure a [`WorktreeCreate` hook](</docs/en/worktrees#non-git-version-control>) and Claude isolates edits the same way it does for git. When the hook fails in a directory that isn’t a git repository, Claude skips isolation for that directory and edits the working directory in place. Inside a git repository, a session that Claude moves into a worktree before editing can’t edit files in the shared checkout until that move happens. To find a session’s worktree path, attach and check its working directory. A [subagent](</docs/en/sub-agents>) the background session spawns inherits the session’s working directory. Once the session is in a worktree, the subagent’s file edits land in that worktree rather than in your working copy. To give a subagent its own separate worktree instead, set [`isolation: worktree`](</docs/en/sub-agents#supported-frontmatter-fields>) in its frontmatter or pass `isolation: "worktree"` when spawning it. When a background session has made code changes in a worktree Claude entered, Claude Code instructs Claude to preserve the work before finishing, so it survives if you delete the session and its worktree: * **Commit and push** : Claude commits without asking, and pushes the branch when the repository has a remote. * **Draft pull request** : Claude opens one when the task calls for it, and the `#N` label appears on the row. @@ -625,8 +625,8 @@ `claude agents`| Open agent view `claude agents --cwd <path>`| Open agent view scoped to sessions started under `<path>` `claude agents --json`| Print sessions as a JSON array and exit. See List sessions as JSON -`claude attach <id>`| Attach to a session in this terminal -`claude logs <id>`| Print the session’s recent output +`claude attach <id|name>`| Attach to a session in this terminal +`claude logs <id|name>`| Print the session’s recent output `claude stop <id>`| Stop a session. Also accepts `claude kill` `claude respawn <id>`| Restart a session, running or stopped, e.g. to pick up an updated Claude Code binary. The restarted session resumes its saved conversation; when none is on disk, it runs its original prompt again as a new conversation `claude respawn --all`| Restart every running session, e.g. to move all sessions onto an updated Claude Code binary at once @@ -636,6 +636,8 @@ `claude daemon status`| Print the supervisor’s state, version, socket directory, and worker count `claude daemon stop --any`| Stop the supervisor process and the background sessions it hosts. Pass `--keep-workers` to leave background sessions running so the next supervisor reconnects to them. The next `claude agents` or `claude --bg` starts a fresh supervisor +`claude attach` and `claude logs` can take part of a running session’s name in place of the ID, as in `claude logs "auth refactor"`. Passing a name requires Claude Code v2.1.290 or later. + ### ​ @@ -904,6 +906,7 @@ Version| Change ---|--- +v2.1.290| `claude attach` and `claude logs` can take part of a running session’s name in place of the ID. v2.1.288| `Ctrl+F` finds sessions by name, and `Alt+↑` / `Alt+↓` jump between group headers. Both, and `Ctrl+R`, can be [rebound](</docs/en/keybindings#agents-actions>). v2.1.287| The `n:<text>` filter finds sessions by name or first prompt. While any filter is active, groups you collapsed expand to show their matches and the first match is selected, so `Enter` opens it. v2.1.287| A command sent as a peek reply runs when the session’s current turn ends, including the commands that run as soon as you type them at a session’s own prompt. A reply that is exactly `/stop` stops the session at once.
modified Best practices for Claude Code View current →
--- a/best-practices.md +++ b/best-practices.md @@ -123,7 +123,7 @@ * **Reference files with`@`** instead of describing where code lives. Claude reads the file before responding. * **Paste images directly**. Copy/paste or drag and drop images into the prompt. - * **Give URLs** for documentation and API references. Use `/permissions` to allowlist frequently-used domains. + * **Give URLs** for documentation and API references. Use `/permissions` to allowlist frequently used domains. * **Pipe in data** by running `cat error.log | claude -p "explain this error"` to send file contents directly. * **Let Claude fetch what it needs**. Tell Claude to pull context itself using Bash commands, MCP tools, or by reading files. @@ -167,7 +167,7 @@ Repository etiquette (branch naming, PR conventions)| Information that changes frequently Architectural decisions specific to your project| Long explanations or tutorials Developer environment quirks (required env vars)| File-by-file descriptions of the codebase -Common gotchas or non-obvious behaviors| Self-evident practices like “write clean code” +Common gotchas or behaviors that aren’t self-evident| Self-evident practices like “write clean code” If Claude keeps doing something you don’t want despite having a rule against it, the file is probably too long and the rule is getting lost. If Claude asks you questions that are answered in CLAUDE.md, the phrasing might be ambiguous. Treat CLAUDE.md like code: review it when things go wrong, prune it regularly, and test changes by observing whether Claude’s behavior actually shifts. For a checked-in CLAUDE.md, run [`/doctor`](</docs/en/commands#all-commands>) and Claude proposes cuts for content it can derive from the codebase. If Claude keeps skipping one instruction, add emphasis such as “IMPORTANT” to that line alone. If you emphasize many lines, none of them stands out. Check CLAUDE.md into git so your team can contribute. The file compounds in value over time. CLAUDE.md files can import additional files using `@path/to/import` syntax. For import rules and where CLAUDE.md files can live, see [CLAUDE.md files](</docs/en/memory#claude-md-files>).
modified Claude Code changelog View current →
Show diff (213 lines)
--- a/changelog.md +++ b/changelog.md @@ -1,4 +1,210 @@ This page is generated from the [CHANGELOG.md on GitHub](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md>). Run `claude --version` to check your installed version. + +​ + +2.1.291 + +October 6, 2026 + + * Fixed a regression in 2.1.290 where cloud sessions could drop answers to permission prompts + * Fixed a regression in 2.1.288 where the last messages of a session could be lost when quitting + +​ + +2.1.290 + +October 5, 2026 + + * Added `serverToolUses` to the result of a mod’s `turn.step` hook: the tool calls the API ran itself (the advisor), each with its id, name, input, start and end + * Added `agentId` to the `tool.check` event of plugin hooks, so a hook can tell a subagent’s permission check from the main session’s + * Added `ceiling` to the question and verdict a mod’s `tool.check` hook reads, naming the approval an organization requires for a tool + * Added `ThemeKey` and `Color` types to the plugin hooks typings, so an editor lists the theme colors a mod’s drawing can name + * Added to `claude plugin validate`: each hook a mod registers at a gating site is listed with whether it has a `.catch` (`gatingHooks` under `--json`) + * Added a Deny button to the Claude apps gateway’s sign-in approval page: it ends the pending sign-in, so the waiting terminal stops within seconds + * Added `claude attach <name>` and `claude logs <name>`: part of a session name works in place of the id + * Added `/claude-api managed-agents-onboard <url>` to set up the Managed Agents pattern a page describes as `ant apply` files + * Added `/claude-api managed-agents-onboard <quickstart-name>` to build a Console quickstart template, such as `deep-researcher`, with the `ant` CLI + * Added a warning when a managed settings file is a link to a file outside the managed settings folder + * Added a /status and doctor warning when managed settings ignore user-configured sandbox allowRead paths or allowed domains + * Fixed requests failing behind proxies and gateways that reject one of Claude Code’s beta headers with a status other than 400, or together with a second beta + * Fixed long sessions with hundreds of images getting stuck on “Request rejected as unprocessable by the model” errors + * Fixed a turn ending at once when the API’s output content filter stopped a reply while Claude was still thinking; the request is now retried once before the error is shown + * Fixed resumed subagents and teammates losing their earlier thinking and prompt cache after receiving a message mid-run + * Fixed WebFetch silently dropping page text past 100,000 characters; it now says how much was unread and takes an `offset` to read on + * Fixed a crash (“Maximum call stack size exceeded”) when a response nested lists or quotes thousands of levels deep + * Fixed `/rewind` not listing a prompt sent while Claude was still working + * Fixed scheduled tasks (`/loop` with an interval, reminders) silently not coming back on resume once the conversation was compacted; covers compactions made from this version on + * Fixed scheduled tasks set in the foreground never firing after a ← or `/background` hand-off, and recurring ones firing an extra run on every resume, respawn or fork + * Fixed headless `--json-schema` runs exiting non-zero with `is_error: true` on a `success` result when the connection dropped after the structured output was already delivered + * Fixed plan mode letting the auto mode classifier approve non-read-only connector tools that carry a server-pushed ask policy + * Fixed a project `CLAUDE.md`, rule or `AGENTS.md` symlinked outside the working directories loading under `permissions.blockReadsOutsideWorkingDirectories` or a `Read` deny rule + * Fixed URL allow and deny patterns with a wildcard inside an `xn--` host label matching differently from one process to the next + * Fixed an MCP server provided by your organization being relisted as your own after signing in or reconnecting, including from a late result in headless and SDK sessions + * Fixed `/ultrareview` dropping uncommitted changes without a warning on Windows when `git stash create` failed, and refusing them after a `git add -N` file was deleted or moved + * Fixed the `plansDirectory` setting’s project-root check for paths that contain a backslash on macOS and Linux + * Fixed replies in very long Remote Control and cloud sessions that could appear a block at a time instead of streaming in + * Fixed the background daemon’s log passing terminal control characters to the screen under `claude daemon run` and `claude daemon logs`; they now show as `\uXXXX` escapes + * Self-hosted runner: Fixed a crafted, very long line of a session’s error output freezing the runner for several seconds + * Fixed a plugin hook with a `.catch` being unloaded, and its `.catch` skipped, when the hook kept the hooks worker busy on a prompt or tool call + * Fixed a mod’s `turn.step` result listing a tool call that a mid-response model fallback had discarded + * Fixed a Cowork cloud session’s reply sometimes never finishing when its container restarted just after Claude sent a message or a file + * Fixed `claude plugin validate` and plugin loading refusing a hooks module that destructures an option named like one of its top-level functions + * Fixed `/ultrareview` failing to upload uncommitted changes when `core.safecrlf=true` is set in git’s configuration + * Fixed the effort level changing when a flagged message is retried on a fallback model that has a different level saved in settings + * Windows: Fixed multi-line `!` shell blocks in skills and commands failing when the file is saved with CRLF line endings + * Fixed Claude Code hanging until killed when a `/permissions` tab was clicked while searching in fullscreen mode + * Fixed conversation compaction sometimes failing with a “null is not an object” error + * Fixed plugin hooks reading an empty `answer` on `turn.complete` for a subagent that hands its report back in auto mode + * Fixed a mod being unloaded without a message when a refresh followed its failed reload; its failure line now says the version loaded before is unloaded + * Fixed a mod’s `prompt.submit` hook that drops a prompt after calling `next(e)` being ignored silently: the hook is now reported as failed, by name + * Fixed a mod’s pane or band being redrawn without end when it followed its end over a tree that changed height at every drawing + * Fixed an image read on macOS and Windows being able to return a file outside what was approved, through a link swapped in mid-read + * Fixed a case where a user-installed mod could get an organization’s plugin unloaded; the mod is now the one unloaded + * Fixed `disableClaudeAiConnectors` and `allowedMcpServers` URL rules not being applied to some MCP entries declared in `.mcp.json`, plugins or agents + * Fixed a mod’s inline pane being redrawn without end when its tree changed height at every drawing + * Fixed an `@`-mention under the read block or `--restricted` being able to read a file outside the working directories through a link changed mid-read + * Fixed Esc in the agents view confirming “Press enter again to restart this session — it isn’t responding”; Esc now just reopens the session + * Fixed agent view losing a background session’s `/loop` run count, countdown and live status line after the session enters a worktree that it creates + * Fixed `claude agents` sessions in manual permission mode asking for approval to read an image pasted into a reply or a new agent’s prompt + * Fixed a deny or ask rule missing a command or path whose name came from a variable set as a prefix on `declare`, `typeset`, `export` or `readonly` + * Fixed Read deny rules not applying to image paths pasted or dragged into the prompt, or to file names listed for an @-mentioned folder + * Fixed a case where a user-installed mod could make an organization’s guard skip its check; such a mod is now unloaded + * Fixed plugin hooks stalling each redraw when a mod draws a long multi-line text holding non-Latin characters + * Fixed repeated Ctrl+X in the agents view deleting the whole next section after the bottom session of a section was deleted + * Fixed You should know writing its notes in English regardless of the `language` setting + * Fixed a freeze after sending some very long messages + * Fixed a slowdown when expanding the transcript (ctrl+o) or resizing over large tool output that contains non-ASCII characters such as arrows, dashes or box-drawing + * Fixed `claude respawn` re-sending an earlier message to a backgrounded session that has no saved transcript instead of starting it with an empty conversation + * Fixed Esc after an `n:` or Ctrl+F search in the agents view moving focus to a section header, where Ctrl+X twice would delete every session in the section + * Fixed `claude agents` saving a slash command it could not deliver to a stopped session and then running it by itself the next time that session restarted + * Fixed `/ultrareview` uploading uncommitted changes unfiltered for files under a git filter driver named `unset` or `unspecified`; the upload now stops and asks you to rename the driver + * Fixed auto mode denials suggesting a permission rule that would skip the classifier for a whole tool or that Claude Code would ignore + * Fixed `claude --teleport` and `/teleport` deleting the files in a folder that had replaced a tracked file of the same name when you chose to stash: the stash is now refused, and says why + * Fixed Esc confirming agent view’s “Press enter again to restart this session fresh” prompt + * Fixed agent view’s `/loop` run count freezing and its countdown disappearing after `/clear`; the count now restarts with the new conversation + * Fixed `--channels` permission relay: a reply ID that repeats within a session is now ignored instead of approving a different prompt + * Fixed `/chrome` “Reconnect extension” not restoring browser tools after a failed Chrome connection, and added an explanation when it can’t (anthropics/claude-code#98135) + * Fixed mods staying off for people who reach Claude through a gateway (`ANTHROPIC_BASE_URL` with `ANTHROPIC_AUTH_TOKEN`) and have no Anthropic account + * Fixed replies sent from `claude agents` just after a background session crashed being refused after 2 seconds: they are now retried for up to 12 seconds while the session restarts + * Fixed slash commands and answers to a multiple-choice question that `claude agents` could not deliver to a running session being saved and sent by themselves the next time it was restarted + * Fixed sandboxed commands that pipe a heredoc into another command (`cat <<EOF | python3`) asking for approval on every run + * Fixed `claude agents` failing with “Couldn’t restart the background service” and background sessions stopping after a Homebrew upgrade (takes effect from the upgrade after this one) + * Fixed agent view’s “restart this session fresh” re-sending an earlier message from the session instead of starting with an empty conversation + * Fixed Bash permission checks auto-approving some read-only commands (such as `rg` or `git grep`) whose arguments the shell would still expand as wildcards; these now prompt for approval + * Fixed `claude plugin test` refusing to run after an upgrade because of an out-of-date saved setting + * Fixed Bash permission checks auto-approving certain commands whose variable names zsh reads differently from bash; these now prompt for approval + * Fixed a short form of a `git clone` option keeping the sandbox exemption from a git pattern such as `git *` in `sandbox.excludedCommands`; it is now treated like the long form + * Fixed the first feature-flag request of a session ignoring a proxy or API endpoint set in a project’s settings + * Fixed `/ultrareview` of a local branch silently leaving uncommitted work out of the upload in a repository that keeps its branches outside `.git` (git 2.54+); it now refuses with an explanation + * Fixed cloud sessions staying asleep after a container restart lost a pending `/loop` wakeup or scheduled task; Claude is now told and can schedule it again + * Fixed the Claude apps gateway’s retention sweep deleting a returning developer’s identity row refreshed at the same moment, on PostgreSQL versions without the November 2025 fixes + * Fixed sandboxed Monitor tool commands skipping the permission prompt under sandbox auto-allow; they now follow your permission rules + * Fixed the Claude apps gateway failing to start when the certificate it presents to the identity provider has an empty subject + * Fixed the Claude apps gateway exiting with a bare “Invalid URL” when `store.postgres_url` can’t be parsed; the error now names the setting and says what the URL may hold + * Fixed background agents failing with “Agent stalled” and Workflow tool subagents restarting from their prompt when a Mac woke from sleep + * Fixed slow or failed startup since 2.1.285 under SDK hosts such as the VS Code extension when managed settings deny reads of many paths on a slow filesystem (notably Windows drives under WSL) + * Fixed a response interrupted by computer sleep being treated as a stalled stream on Bedrock, Vertex, Foundry, and custom gateways + * Fixed a freeze before the first request and in the `/sandbox` Config tab on Linux and WSL when a sandbox read rule such as `~/**/.env` covers a large folder + * Fixed skills not being found when asked for by the name in SKILL.md when their folder has a different name (for example a non-English name): the skill listing now shows both names + * Fixed a plan written in plan mode being lost when a cloud session’s container restarted before the plan was presented + * Fixed the Bash tool occasionally losing shell aliases, functions and plugin PATH entries for a whole session when its first command ran seconds after startup on a new config directory + * Fixed unbounded memory use when an HTTP MCP server sends a very large response + * Fixed artifact operations failing in a Claude Code run started from inside a cloud session (for example `claude -p` run from the Bash tool) + * Fixed files sent from remote sessions sometimes being refused as “not the one approved” when four or more were sent at once + * Fixed plan mode not being restored when resuming a session with `--continue` or `--resume <session-id>` in the terminal + * Fixed a marketplace named after another GitHub marketplace’s download folder stopping that marketplace from downloading + * Fixed automatic compaction giving up with “Prompt is too long” when a Mac went to sleep while it was running + * Fixed the rewind menu (Esc Esc / `/rewind`) freezing for hundreds of milliseconds per keypress when the conversation contains a very large pasted stack trace or source file + * Fixed a subdirectory’s AGENTS.md not being attached when a file under it is @-mentioned + * Fixed self-hosted runner sessions resumed after a stopped runner failing with “missing but already registered worktree” when the sessions folder is a relative symlink + * Fixed a freeze when the secret scan or a permission prompt met long token-like text + * Fixed Bash permission checks not applying Read deny rules or the outside-directory read block to a wildcard in some option values of read-only commands + * Fixed `CLAUDE_CODE_USER_DIALOG_TIMEOUT_MS=5m` being read as 5 ms and cancelling remote dialogs at once; values with a unit suffix now fall back to `dialogExpiry` + * Fixed a stall when an MCP server’s tool listing contains very long runs of combining characters + * Fixed two pastes that overlap in one prompt being sent to the model partly as typed text instead of as one pasted block + * Fixed Claude in Chrome’s browser picker showing a message meant for Claude when the chosen browser is no longer connected, and the VS Code dialog’s list going stale after a switch + * Fixed background subagents losing write and Bash access in their worktree after the main session enters or exits a different worktree + * Fixed background commands, the agents view and daemon workers sending telemetry and a feature-flag request to Anthropic behind a Claude apps gateway when no managed settings on the machine force gateway login + * Fixed `--restricted` (and `CLAUDE_CODE_RESTRICTED=1`) sessions opening the cross-session messaging socket + * Fixed sessions moved to the background while idle reopening as “no saved transcript” after a restart or idle cleanup; they now resume their conversation + * Fixed background workers honoring `--allow-dangerously-skip-permissions` on respawn without the bypass-permissions disclaimer having been accepted + * Fixed Claude replying in an endless loop when a plugin’s async Stop hook passes an unquoted script path under a folder with a space, such as Application Support + * Fixed a freeze of several seconds when secret masking met very long unbroken text + * Fixed some permission rules and safety checks not being applied to a tool call after a PreToolUse hook rewrote its input + * Fixed first launch asking to pick a login method again after `claude auth login` or with a credentials file already in the config directory + * Fixed file names containing line breaks being displayed incorrectly in file tool errors and permission prompts + * Fixed a large paste expanded in place being sent to the model as typed text after the next keystroke when it held accents stored as separate characters, as macOS file names do + * Fixed macOS `/login` reporting success when the keychain refused the new login and kept an old one it could not remove + * Fixed SDK hosts using `--include-partial-messages` seeing a reply stay open after the turn ended when its stream was cut, interrupted or fell back to non-streaming + * Fixed sandboxed Bash commands on Linux running `ConfigChange` hooks and reloading settings mid-command when `.claude/settings.json` or `.claude/settings.local.json` does not exist + * Fixed errors reading “Premature close” instead of naming the missing program when a tool Claude Code runs, such as git or gh, is not installed (macOS, Linux) + * Fixed `/loop` and other recurring session-only scheduled tasks running an extra time after a sandboxed Bash command on Linux or after `.claude/scheduled_tasks.json` was deleted + * Fixed edits to the file a symlinked settings file points at running without the settings-file permission question + * Improved MCP startup behind a network proxy: a server the proxy blocks (HTTP 403) is no longer retried three times + * Improved permission prompts from background agents to show the Ctrl+X Ctrl+K shortcut that stops all background agents + * Improved the built-in `plugin-authoring` skill: Claude now gives the one command another person runs to install a mod you made, and writes it in a README’s install section + * Improved the reply to `/plugin` in the desktop app’s Code tab: it now says where to install and manage plugins there + * Improved the Bash changed-files view: when a chained command includes git merge, pull or checkout, it lists the files without full diffs + * Improved the Claude apps gateway’s log when an upstream’s cloud credentials or connection fail: the warning now ends with the underlying cause + * Improved the error shown when a cloud session is started without a claude.ai sign-in: it now names `claude auth login` and /login and no longer blames API-key authentication + * Improved the Read tool’s message for binary files: it now points Claude to a skill or a shell command that can read the format + * Improved the error shown when a git config file stops the `/ultrareview` upload: it is about half as long and says what kind of file is the problem + * Improved the errors shown when the `/ultrareview` upload refuses a checkout: each known cause now has its own message, with a way to fix it + * Improved the Claude apps gateway to log a warning during the last 30 days before the certificate it presents to the identity provider expires + * Improved Claude in Chrome: a `browser_batch` call now gets 90 seconds, up from 60, before it is reported as timed out + * Improved the Claude apps gateway’s browser sign-in pages: brand fonts, centered layout, and dark mode + * Improved responsiveness while resuming large sessions: timers, input and rendering keep running while the transcript loads + * Improved the / and @ suggestion lists: the selected row now starts with a ❯ pointer, so you can see it without color + * Changed `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` to also skip the startup connection warm-up + * Changed Claude in Chrome so that a project’s settings files can no longer turn it on; use `--chrome`, `/chrome` or your user settings + * Changed the Bash tool to ask for permission before running `pyright`, which is no longer treated as a read-only command + * Changed what a mod’s `$.process.spawn` rejects with when another mod denies it after the child ran: it now says the call ran and a plugin withheld its result + * Changed the background daemon’s log to write a multi-line message as one JSON-quoted line + * Changed skills and custom commands to refuse a `!` shell command that contains raw control characters other than tab and newline, with a message that shows where they are + * Changed `/artifacts`: opening an artifact in your browser now closes the list + * Changed Bash permission checks so that more forms of the `ps` command ask for approval instead of running without asking + * Changed plugin hooks so long text is clipped and logged instead of being refused or dropped silently + * Changed background sessions whose scheduled task is gone: they now move to Completed about 20 seconds later and can be updated or shut down when idle + * Changed the “Press ← again” confirm on a just-cleared prompt: a second ← no longer has to wait a second before it switches, and holding ← down now switches too + * Changed the errors shown when the `/ultrareview` upload fails at a git step: they name the step and what to try, and no longer repeat git’s own error text + * Changed `/code-review` at medium effort to also report cleanup and CLAUDE.md conventions findings on models without tuned review settings, including Opus 5.5 and Sonnet 5.5 + * Changed an in-process teammate’s `agent_id` in Agent results to its agent ID (its `name@team` address stays in `teammate_id`); TeammateIdle hooks no longer fire from its subagents or forks + * Changed background sessions waiting on a scheduled wakeup (`/loop`): they are now left running through updates and low memory, where being restarted or shut down could silently lose the wakeup + * Changed `/model`, `/effort` and `/rename` sent from `claude agents` to a busy background session to apply right away, without a confirmation, instead of when the turn ends + * Changed the Claude apps gateway’s minimum supported PostgreSQL version from 14 to 11 + * Changed the interactive session’s WebSearch budget to refill over time (100 calls/hour; `CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR` sets the rate, 0 turns it off) instead of ending after 200 calls + * Changed `CLAUDE_CODE_DISABLE_ATTACHMENTS` so a repository’s `.claude/settings.json` or `.claude/settings.local.json` can no longer set it; shell, user and managed settings still can + * Changed `claude plugin update` on a plugin loaded from a directory to print just its reason, without the “Failed to update plugin” prefix, as for built-in plugins + * Changed the built-in `gh api` in cloud sessions: a host other than github.com set in `GH_HOST` or `GH_REPO` is now refused (use `--hostname` or a full URL), and stderr notes requests to other hosts + * Changed the `claude-api` skill’s Managed Agents examples to turn off the web tools unless the agent needs them and to use the `auto` permission policy + * Self-hosted runners: Changed `claude --environment <id>` to create its session through the current Sessions API; printed and JSON session ids keep their session_… form + * [VSCode] Added a screen reader announcement, “Message queued.”, when you send a message while Claude is working + * [VSCode] Added a way to review and run a plugin marketplace’s install or update command from the Manage plugins dialog + * [VSCode] Fixed a blank chat you never typed into keeping a background Claude process running after you open a saved conversation in its place + * [VSCode] Fixed settings dialogs blaming a timeout when Claude Code stopped unexpectedly during a save + * [VSCode] Fixed the branch switch dialog offering to switch when it could not check for uncommitted changes + * [VSCode] Fixed a permission prompt that arrived behind an open dialog taking keyboard focus, so a key pressed in the dialog could answer it + * [VSCode] Fixed sign-in and new sessions giving no clear reason when Claude Code cannot find or start its program + * [VSCode] Fixed the agent map showing a nested sub-agent with “Tool calls (0)” and placing the agents it starts under the main agent + * [VSCode] Improved Continue After Reload: tabs reopened after VS Code restarts its extensions now also finish a step the restart interrupted + * [VSCode] Improved file pills in messages: hovering one now shows the file’s path from the project folder, so same-named files can be told apart + * [VSCode] Changed message timestamps to show by default (turn them off with the Claude Code: Show Message Timestamps setting) + * [Cloud sessions] Fixed turning off prompt suggestions through a cloud environment’s environment variables having no effect in new cloud sessions + * [Cloud sessions] Fixed the working indicator in a cloud session spinning on for several seconds after Claude’s reply had finished; it now stops with the reply + * [Cloud sessions] Fixed History on a never-run routine’s page still saying “No runs yet” after you pressed Run now; it now shows the new run + * [Cloud sessions] Fixed an unarchived cloud session looking as if Claude were still working until you sent another message + * [Remote Control] Fixed a computer that just started Remote Control taking up to a minute to appear in the Remote Control menu of a new session; it now appears within seconds + * [Claude Tag] Added fast mode in Slack: mention Claude with `!fast` to switch a thread to fast mode, moving it to Opus if needed, and `!fast off` to switch back; replies show (fast) while it’s on + * [Claude Tag] Added the optional Path prefixes field when creating a custom connection in an access bundle, so its allow rule can cover only those paths instead of the whole host + * [Claude Tag] Fixed members with the Claude Tag Admin permission getting “Couldn’t load memory files” on the Activity page’s Memory tab; they can now read workspace and channel memory + * [Claude Tag] Fixed a workspace guest’s Confirm on a Claude settings card in Slack removing its buttons for everyone; only the guest sees the refusal, and members can still confirm or cancel + * [Claude Tag] Fixed scheduled routines in Slack channels running on a model other than the channel’s default; each run that starts a new session now uses the current default model + * [Claude Tag] Fixed GitHub repositories in an access bundle attached by a channel-name rule being refused in the channels the rule covers; Claude can now add, list and clone them there + * [Claude Tag] Improved Claude’s notice in your direct messages when your own Claude plan’s usage limit is reached: it shows within seconds and says when the limit resets + * [Claude Tag] Improved the earlier Claude in Slack app’s reply when it can’t start a session: it now says what failed and who can fix it, in full only once per thread + * [Claude Tag] Changed the channel instructions limit to 8,192 characters instead of bytes, so non-English text gets the same room, and added a character count beside Save on the Configure page + * [Code Review] Fixed blocking review comments sometimes opening with a “nit” label that contradicted their severity + * [Code Review] Fixed tips to comment “@claude review” being posted on fork and Manual-mode pull requests in organizations that have turned Code Review off ​
modified Push events into a running session with channels View current →
--- a/channels.md +++ b/channels.md @@ -37,7 +37,7 @@ * `Marketplace "claude-plugins-official" not found`: add the marketplace with `/plugin marketplace add anthropics/claude-plugins-official`, then retry the install. * The plugin is [not found in the marketplace](</docs/en/plugins/install#install-a-plugin>): check the plugin name. -When the install asks for an installation scope, choose the user scope option so the plugin is available across all your projects. Check the install summary: if it reports `Run /reload-plugins to activate.`, see [Apply plugin changes without restarting](</docs/en/plugins/cli-reference#reload-plugins>) to make the plugin’s configure command available. +When the install asks for an installation scope, choose the user scope option so the plugin is available across all your projects. Check the install summary: if it reports `Run /reload-plugins to apply.`, see [Apply plugin changes without restarting](</docs/en/plugins/cli-reference#reload-plugins>) to make the plugin’s configure command available. 3 @@ -115,7 +115,7 @@ * `Marketplace "claude-plugins-official" not found`: add the marketplace with `/plugin marketplace add anthropics/claude-plugins-official`, then retry the install. * The plugin is [not found in the marketplace](</docs/en/plugins/install#install-a-plugin>): check the plugin name. -When the install asks for an installation scope, choose the user scope option so the plugin is available across all your projects. Check the install summary: if it reports `Run /reload-plugins to activate.`, see [Apply plugin changes without restarting](</docs/en/plugins/cli-reference#reload-plugins>) to make the plugin’s configure command available. +When the install asks for an installation scope, choose the user scope option so the plugin is available across all your projects. Check the install summary: if it reports `Run /reload-plugins to apply.`, see [Apply plugin changes without restarting](</docs/en/plugins/cli-reference#reload-plugins>) to make the plugin’s configure command available. 5 @@ -172,7 +172,7 @@ * `Marketplace "claude-plugins-official" not found`: add the marketplace with `/plugin marketplace add anthropics/claude-plugins-official`, then retry the install. * The plugin is [not found in the marketplace](</docs/en/plugins/install#install-a-plugin>): check the plugin name. -When the install asks for an installation scope, choose the user scope option so the plugin is available across all your projects.If the install summary reports `Run /reload-plugins to activate.`, you don’t need to act on it here, because restarting in the next step picks up the plugin. +When the install asks for an installation scope, choose the user scope option so the plugin is available across all your projects.If the install summary reports `Run /reload-plugins to apply.`, you don’t need to act on it here, because restarting in the next step picks up the plugin. 3 @@ -225,7 +225,7 @@ * `Marketplace "claude-plugins-official" not found`: add the marketplace with `/plugin marketplace add anthropics/claude-plugins-official`, then retry the install. * The plugin is [not found in the marketplace](</docs/en/plugins/install#install-a-plugin>): check the plugin name. -When the install asks for an installation scope, choose the user scope option so the plugin is available across all your projects.If the install summary reports `Run /reload-plugins to activate.`, you don’t need to act on it here, because restarting in the next step picks up the plugin. +When the install asks for an installation scope, choose the user scope option so the plugin is available across all your projects.If the install summary reports `Run /reload-plugins to apply.`, you don’t need to act on it here, because restarting in the next step picks up the plugin. 2
modified Channels reference View current →
--- a/channels-reference.md +++ b/channels-reference.md @@ -161,7 +161,7 @@ # Testing a bare .mcp.json server (no plugin wrapper yet) claude --dangerously-load-development-channels server:webhook -The bypass is per-entry. Combining this flag with `--channels` doesn’t extend the bypass to the `--channels` entries. During the research preview, your channel isn’t on the approved allowlist, so it stays on the development flag while you build and test. +Run the development flag in an interactive session, where Claude Code can show the confirmation prompt. If you pass it in non-interactive mode with `-p` or through the Agent SDK, Claude Code ignores the flag and the channel doesn’t register. The bypass is per-entry. Combining this flag with `--channels` doesn’t extend the bypass to the `--channels` entries. During the research preview, your channel isn’t on the approved allowlist, so it stays on the development flag while you build and test. This flag skips the allowlist only. The `channelsEnabled` organization policy still applies. Don’t use it to run channels from untrusted sources.
modified Checkpointing View current →
--- a/checkpointing.md +++ b/checkpointing.md @@ -31,7 +31,7 @@ If the prompt input contains text, double `Esc` clears it instead of opening the menu. The cleared text is saved to your input history, so press `Up` to recall it after you finish in the rewind menu. -The rewind menu lists each prompt you sent during the session, except messages that joined a running turn. Select the point you want to act on, then choose an action: +The rewind menu lists the prompts you sent during the session. Select the point you want to act on, then choose an action: * **Restore code and conversation** : revert both code and conversation to that point * **Restore conversation** : rewind to that message while keeping current code @@ -118,7 +118,7 @@ Messages sent mid-turn not checkpointed -When a message you [queue while Claude works](</docs/en/interactive-mode#queue-messages-while-claude-works>) reaches Claude within the running turn, it joins that turn instead of starting a new one. The message appears in the conversation, but Claude Code doesn’t create a checkpoint for it, and the rewind menu doesn’t list it. A queued message that Claude Code sends as part of a new turn gets a checkpoint as usual, including when several queued messages [share that turn](</docs/en/interactive-mode#when-claude-code-sends-what-you-queued>). To remove such a message, or undo the edits Claude made after it, rewind to the prompt that started the turn. That rewinds the whole turn, including the work Claude did before your message arrived. +When a message you [queue while Claude works](</docs/en/interactive-mode#queue-messages-while-claude-works>) reaches Claude within the running turn, it joins that turn instead of starting a new one. The message appears in the conversation, but Claude Code doesn’t create a checkpoint for it. A queued message that Claude Code sends as part of a new turn gets a checkpoint as usual, including when several queued messages [share that turn](</docs/en/interactive-mode#when-claude-code-sends-what-you-queued>). To undo the edits Claude made after such a message, rewind to the prompt that started the turn. That rewinds the whole turn, including the work Claude did before your message arrived. ###
modified Use Claude Code with Chrome View current →
--- a/chrome.md +++ b/chrome.md @@ -35,7 +35,7 @@ * [Claude Code](</docs/en/quickstart#step-1-install-claude-code>) * A direct Anthropic plan (Pro, Max, Team, or Enterprise) -In Enterprise organizations that have HIPAA enabled, Claude in Chrome is off by default, and an [Owner](</docs/en/server-managed-settings#access-control>) can turn it on in [**Organization settings > Claude in Chrome**](<https://claude.ai/admin-settings/browser-extension>). Your Business Associate Agreement (BAA) with Anthropic doesn’t cover data sent to third-party sites through Claude in Chrome. See the [Implementation Guide](<https://trust.anthropic.com/resources?s=rgirr4qe8u7ek8c2igx3&name=claude-for-enterprise-hipaa-ready-offering-implementation-guide>) for a list of Eligible Services. Chrome integration also requires signing in with `/login`. If you authenticate with an API key or a long-lived token from [`claude setup-token`](</docs/en/authentication#generate-a-long-lived-token>), Claude Code keeps Chrome integration off, even when you pass `--chrome`, because the browser extension can’t authenticate with those credentials. Before v2.1.216, these sessions could enable Chrome integration, but every attempt to connect to the browser extension failed with a 403 error. +In Enterprise organizations that have HIPAA enabled, Claude in Chrome is off by default, and an [Owner](</docs/en/server-managed-settings#access-control>) can turn it on in [**Organization settings > Claude in Chrome**](<https://claude.ai/admin-settings/browser-extension>). Your Business Associate Agreement (BAA) with Anthropic doesn’t cover data sent to third-party sites through Claude in Chrome. See the [Implementation Guide](<https://trust.anthropic.com/resources?s=l1wrssd9hsbi4gak0tp5a6&name=%5Banthropic%5D-hipaa-ready-offering-implementation-guide>) for a list of Eligible Services. Chrome integration also requires signing in with `/login`. If you authenticate with an API key or a long-lived token from [`claude setup-token`](</docs/en/authentication#generate-a-long-lived-token>), Claude Code keeps Chrome integration off, even when you pass `--chrome`, because the browser extension can’t authenticate with those credentials. Before v2.1.216, these sessions could enable Chrome integration, but every attempt to connect to the browser extension failed with a 403 error. Chrome integration is not available through third-party providers like Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
modified Use Claude Code features in the SDK View current →
--- a/claude-code-features.md +++ b/claude-code-features.md @@ -104,7 +104,7 @@ Project (root)| `<cwd>/CLAUDE.md` or `<cwd>/.claude/CLAUDE.md`| `settingSources` includes `"project"` Project rules| `<cwd>/.claude/rules/*.md` and `.claude/rules/*.md` in every parent directory| `settingSources` includes `"project"` Project (parent dirs)| `CLAUDE.md` files in directories above `cwd`| `settingSources` includes `"project"`, loaded at session start -Project (child dirs)| `CLAUDE.md` files in subdirectories of `cwd`| `settingSources` includes `"project"`, loaded on demand when the agent reads a file in that subtree +Project (child dirs)| `CLAUDE.md` files in subdirectories of `cwd`| `settingSources` includes `"project"`, loaded [on demand](</docs/en/memory#how-claude-md-files-load>) Local| `<cwd>/CLAUDE.local.md` and `CLAUDE.local.md` in every parent directory| `settingSources` includes `"local"` User| `~/.claude/CLAUDE.md`| `settingSources` includes `"user"` User rules| `~/.claude/rules/*.md`| `settingSources` includes `"user"`
modified Explore the .claude directory View current →
--- a/claude-directory.md +++ b/claude-directory.md @@ -155,7 +155,7 @@ * **Auto memory** : the sweep doesn’t delete the memory files in a project’s [auto memory](</docs/en/memory#auto-memory>) directory, `projects/<project>/memory/`. Claude Code removes that directory only if it has been empty for the whole retention period. Before v2.1.228, the sweep treated folders inside the memory directory as session data and could delete old files beneath it. * **Claude Desktop and Cowork transcripts** : Claude Code keeps the transcript of a session you started or most recently continued in Claude Desktop or Cowork at any age. To give these transcripts an age limit, set [`desktopSessionCleanupPeriodDays`](</docs/en/settings-reference#desktopsessioncleanupperioddays>). Requires Claude Code v2.1.248 or later; earlier versions delete them after `cleanupPeriodDays`. Claude Code deletes these transcripts after `cleanupPeriodDays` instead in either of these cases: * [Managed settings](</docs/en/managed-settings>) set `cleanupPeriodDays` - * Your organization has the HIPAA configuration applied and Claude Code connects directly to the Claude API + * The [HIPAA configuration applies to your sessions](</docs/en/hipaa-setup#check-how-developers-sign-in-and-connect>) Claude Code skips the age-based sweep in these cases: @@ -190,7 +190,7 @@ Path under `~/.claude/`| Contents ---|--- -`history.jsonl`| Every prompt you’ve typed, with timestamp and project path. Used for up-arrow recall, `Ctrl+R` history search, and `!` shell-command completion. In an organization with the HIPAA configuration applied, each sweep removes the entries older than `cleanupPeriodDays` when Claude Code connects directly to the Claude API. +`history.jsonl`| Every prompt you’ve typed, with timestamp and project path. Used for up-arrow recall, `Ctrl+R` history search, and `!` shell-command completion. Each sweep removes the entries older than `cleanupPeriodDays` when the [HIPAA configuration applies to your sessions](</docs/en/hipaa-setup#check-how-developers-sign-in-and-connect>). `stats-cache.json`| Aggregated token and cost counts shown by `/usage` `remote-settings.json`| Cached copy of [server-managed settings](</docs/en/server-managed-settings>) for your organization, or `{}` when your organization has configured none. Only present when the session [fetches them](</docs/en/server-managed-settings#platform-availability>). Claude Code checks for updates at startup and hourly during a session. Claude Code deletes it when you log out. `cache/changelog.md`| Cached copy of the Claude Code changelog, shown by `/release-notes`. Refreshed in the background.
modified Scan your codebase for vulnerabilities View current →
--- a/claude-security.md +++ b/claude-security.md @@ -41,7 +41,7 @@ * If it reports `Marketplace "claude-plugins-official" not found`, add the marketplace with `/plugin marketplace add anthropics/claude-plugins-official`, then retry the install. * If it reports that it [can’t find the plugin in the marketplace](</docs/en/plugins/install#install-a-plugin>), check the plugin name for a typo. -Check the install summary. If it reports `Run /reload-plugins to activate.`, see [Apply plugin changes without restarting](</docs/en/plugins/cli-reference#reload-plugins>) to activate the plugin in your current session. Once the plugin is active, you’re ready to scan and fix your codebase. +Check the install summary. If it reports `Run /reload-plugins to apply.`, see [Apply plugin changes without restarting](</docs/en/plugins/cli-reference#reload-plugins>) to activate the plugin in your current session. Once the plugin is active, you’re ready to scan and fix your codebase. ###
modified Claude Tag View current →
--- a/claude-tag.md +++ b/claude-tag.md @@ -52,7 +52,7 @@ Where Claude Tag runs -Claude Tag works in Slack. You interact with it by writing in a Slack channel, thread, or direct message, and it replies there. Mention `@Claude` in a channel to guarantee it picks the message up. When Claude works on a task, it runs in an ephemeral sandbox, not on your computer. The sandbox is created when a conversation starts, holds any code or files Claude is working with, and is discarded when the conversation goes idle. See [how Claude Tag works](</docs/claude-tag/concepts/how-it-works>) for the full lifecycle. You extend what Claude can reach, like your repositories, ticketing systems, data warehouses, and custom tools, through [connections](</docs/claude-tag/admins/add-connections>), [plugins, and skills](</docs/claude-tag/admins/customize>). An Owner or a [Claude Tag admin](</docs/claude-tag/admins/restrict-access#delegate-claude-tag-administration>) configures these per scope (a channel, a workspace, or the whole organization). Members’ own claude.ai connectors are separate from that configuration; Claude can use them in a channel for the member’s own requests, as [personal connectors in channels](</docs/claude-tag/concepts/personal-connectors>) describes. +Claude Tag works in Slack. You interact with it by writing in a Slack channel, thread, or direct message, and it replies there. Mention `@Claude` in a channel to guarantee it picks the message up. When Claude works on a task, it runs in an ephemeral sandbox, not on your computer. The sandbox is created when a conversation starts, holds any code or files Claude is working with, and is discarded when the conversation goes idle. See [how Claude Tag works](</docs/claude-tag/concepts/how-it-works>) for the full lifecycle. You extend what Claude can reach, like your repositories, ticketing systems, data warehouses, and custom tools, through [Claude Tag connectors](</docs/claude-tag/admins/add-connections>), [plugins, and skills](</docs/claude-tag/admins/customize>). An Owner or a [Claude Tag admin](</docs/claude-tag/admins/restrict-access#delegate-claude-tag-administration>) configures these for all of Slack, for one workspace, or for one channel. Members’ own claude.ai connectors are separate from that configuration; Claude can use them in a channel for the member’s own requests, as [personal connectors in channels](</docs/claude-tag/concepts/personal-connectors>) describes. [For administratorsSet up Claude Tag](</docs/claude-tag/admins/setup-overview>) @@ -78,7 +78,7 @@ Put Claude Tag to work -If Claude Tag is in your channel, you can use it now. (If it isn’t there yet, an Owner in your Claude organization runs setup: see [Set up Claude Tag](</docs/claude-tag/admins/setup-overview>).) Anyone in the channel can hand it work, and channel work bills to the organization, not to you. What it can reach starts with the channel you’re in. The fastest way to find out is to ask it: `@Claude what can you access from this channel?` Or, if you’re signed in to your Claude organization, click **Configure** in the footer of a Claude reply in the channel to see its [connections](</docs/claude-tag/concepts/glossary#connection>), the external services an admin has connected for that channel. Replies in org-shared channels have no Configure link. For your own requests, Claude can also [use the connectors on your claude.ai account](</docs/claude-tag/concepts/personal-connectors>), after you allow it. In a one-to-one DM, Claude runs on your own claude.ai account instead of a channel’s setup. Owners can disable DMs organization-wide; see [Allow or disable direct messages](</docs/claude-tag/admins/restrict-access#allow-or-disable-direct-messages>). +If Claude Tag is in your channel, you can use it now. (If it isn’t there yet, an Owner in your Claude organization runs setup: see [Set up Claude Tag](</docs/claude-tag/admins/setup-overview>).) Anyone in the channel can hand it work, and channel work bills to the organization, not to you. What it can reach starts with the channel you’re in. The fastest way to find out is to ask it: `@Claude what can you access from this channel?` Or, if you’re signed in to your Claude organization, click **Configure** in the footer of a Claude reply in the channel to see its [connections](</docs/claude-tag/concepts/glossary#connection>), the external services an admin has connected for that channel. Replies in org-shared channels have no Configure link. For your own requests, Claude can also [use the connectors on your claude.ai account](</docs/claude-tag/concepts/personal-connectors>), after you allow it. In a one-to-one DM, Claude runs on your own claude.ai account instead of a channel’s setup. An Owner can turn off DMs for the whole organization; see [Allow or disable direct messages](</docs/claude-tag/admins/restrict-access#allow-or-disable-direct-messages>). ### @@ -112,7 +112,7 @@ * **Pair your Slack workspace** : send `@Claude connect` in Slack to get a pairing code, then enter it on the setup page. * **Set a monthly spend limit, add Claude to channels, and launch**. -Once you launch, everyone in a channel Claude is in can use Claude Tag immediately, with no per-user setup. Claude Tag starts with no access of its own to your external systems. After you launch, you connect the services Claude will work in, such as your issue tracker or data warehouse, and grant repositories to the Claude GitHub App. The services you connect form an [Access bundle](</docs/claude-tag/concepts/glossary#access-bundle>), the set of tools Claude can reach. You attach the bundle to a workspace or to channels. Members can also let Claude use their own [personal connectors](</docs/claude-tag/concepts/personal-connectors>) for their requests. [Set up Claude Tag](</docs/claude-tag/admins/setup-overview>) walks through setup and connecting tools, with what to have ready, what each choice means, and how to verify Claude Tag works once you launch. +Once you launch, everyone in a channel Claude is in can use Claude Tag immediately, with no per-user setup. Claude Tag starts with no access of its own to your external systems. After you launch, you connect the services Claude will work in, such as your issue tracker or data warehouse, and grant repositories to the Claude GitHub App. Members can also let Claude use their own [personal connectors](</docs/claude-tag/concepts/personal-connectors>) for their requests. [Set up Claude Tag](</docs/claude-tag/admins/setup-overview>) walks through setup and connecting tools, with what to have ready, what each choice means, and how to verify Claude Tag works once you launch. Security review
modified CLI reference View current →
--- a/cli-reference.md +++ b/cli-reference.md @@ -22,14 +22,14 @@ `claude auth logout`| Log out from your Anthropic account| `claude auth logout` `claude auth status`| Show authentication status as JSON. Use `--text` for human-readable output. Exits with code 0 if logged in, 1 if not. The JSON includes a `configDirectory` field naming the [configuration directory](</docs/en/claude-directory>) the CLI uses. The field requires Claude Code v2.1.268 or later. The JSON’s `authMethod` field is one of `none`, `claude.ai`, `oauth_token`, `api_key`, `api_key_helper`, or `third_party`| `claude auth status` `claude agents`| Open [agent view](</docs/en/agent-view>) to monitor and dispatch parallel background sessions. Use `--cwd <path>` to show only sessions started under that directory, or `--json` to print active sessions as a JSON array for scripting (`--json --all` also includes completed background sessions). Pass `--permission-mode`, `--model`, `--effort`, or `--agent` to set [defaults for dispatched sessions](</docs/en/agent-view#permission-mode-model-and-effort>). Accepts `--settings`, `--add-dir`, `--plugin-dir`, and `--mcp-config` like the top-level `claude` command. Opening agent view requires an interactive terminal| `claude agents --json` -`claude attach <id>`| Attach to a [background session](</docs/en/agent-view#manage-sessions-from-the-shell>) in this terminal| `claude attach 7c5dcf5d` +`claude attach <id|name>`| Attach to a [background session](</docs/en/agent-view#manage-sessions-from-the-shell>) in this terminal. Passing part of a running session’s name in place of the ID requires Claude Code v2.1.290 or later| `claude attach 7c5dcf5d` `claude auto-mode defaults`| Print the built-in [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier rules as JSON. Use `claude auto-mode config` to see your effective config with settings applied. `--label <prefix>` prints only the rules whose label starts with that prefix, matched case-insensitively. Requires Claude Code v2.1.208 or later| `claude auto-mode defaults --label 'Git Destructive'` `claude auto-mode reset`| Restore the default [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) configuration by removing the `autoMode` section from your user settings file. Prompts for confirmation before writing; pass `-y`/`--yes` to skip the prompt. Rules from [managed settings](</docs/en/server-managed-settings>) or the `--settings` flag still apply. Requires Claude Code v2.1.212 or later. See [Inspect the defaults and your effective config](</docs/en/auto-mode-config#inspect-the-defaults-and-your-effective-config>)| `claude auto-mode reset --yes` `claude daemon status`| Print the background-session [supervisor’s](</docs/en/agent-view#the-supervisor-process>) state, version, socket directory, and worker count for diagnostics. Exits 1 if the supervisor isn’t running| `claude daemon status` `claude daemon stop --any`| Stop the background-session [supervisor](</docs/en/agent-view#the-supervisor-process>) and the sessions it hosts. Pass `--keep-workers` to leave background sessions running so the next supervisor reconnects to them. `--any` confirms stopping an on-demand supervisor, which is the default. Use this to recover from an [unresponsive supervisor](</docs/en/agent-view#agent-view-says-the-background-service-did-not-respond>)| `claude daemon stop --any --keep-workers` `claude doctor`| Print read-only installation and settings diagnostics from the terminal without starting a session, including install health, settings-file validation errors, and Remote Control eligibility. For the in-session setup checkup that can also apply fixes, run [`/doctor`](</docs/en/commands#all-commands>)| `claude doctor` `claude import [source]`| Start an interactive session that runs [`/import`](</docs/en/commands#all-commands>) to bring configuration from other coding agents into Claude Code. Accepts the same `--dry-run` and `--yes` options as the command. Not available on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or Claude Platform on AWS. Also unavailable when you turn off [feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>). Requires Claude Code v2.1.213 or later| `claude import codex --dry-run` -`claude logs <id>`| Print recent output from a [background session](</docs/en/agent-view#manage-sessions-from-the-shell>)| `claude logs 7c5dcf5d` +`claude logs <id|name>`| Print recent output from a [background session](</docs/en/agent-view#manage-sessions-from-the-shell>). Passing part of a running session’s name in place of the ID requires Claude Code v2.1.290 or later| `claude logs 7c5dcf5d` `claude mcp`| Configure Model Context Protocol (MCP) servers| See the [Claude Code MCP documentation](</docs/en/mcp>). `claude mcp login <name>`| Run a configured MCP server’s OAuth flow without opening the interactive `/mcp` panel. Works for HTTP, SSE, and claude.ai connector servers. Add `--no-browser` over SSH to print the authorization URL instead of opening a browser, then paste the redirect URL back at the prompt. See [Authenticate from the command line](</docs/en/mcp#authenticate-from-the-command-line>)| `claude mcp login sentry` `claude mcp logout <name>`| Clear stored OAuth credentials for an MCP server| `claude mcp logout sentry` @@ -74,7 +74,7 @@ `--chrome`| Enable [Chrome browser integration](</docs/en/chrome>) for web automation and testing| `claude --chrome` `--cloud`| With a task description, create a new [cloud session](</docs/en/claude-code-on-the-web>). With a session ID (`session_...` or `cse_...`) or a claude.ai/code URL, queue a message into that existing session instead, with `-p`. See [send a follow-up message](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>).| `claude --cloud "Fix the login bug"` `--continue`, `-c`| Load the most recent conversation in the current directory, including a [background session that has finished](</docs/en/sessions#resume-a-session>); opening finished background sessions requires Claude Code v2.1.257 or later. Skips sessions created with `claude -p` or the Agent SDK, and sessions whose first prompt was `/loop`. `claude -p --continue` includes `-p`, SDK, and `/loop` sessions. Includes sessions that added this directory with `/add-dir`| `claude --continue` -`--dangerously-load-development-channels`| Enable [channels](</docs/en/channels-reference#test-during-the-research-preview>) that are not on the approved allowlist, for local development. Accepts `plugin:<name>@<marketplace>` and `server:<name>` entries. Prompts for confirmation| `claude --dangerously-load-development-channels server:webhook` +`--dangerously-load-development-channels`| Enable [channels](</docs/en/channels-reference#test-during-the-research-preview>) that are not on the approved allowlist, for local development. Accepts `plugin:<name>@<marketplace>` and `server:<name>` entries. Prompts for confirmation, so it takes effect in interactive sessions. With `-p`, Claude Code ignores the flag| `claude --dangerously-load-development-channels server:webhook` `--dangerously-skip-permissions`| Skip permission prompts. Equivalent to `--permission-mode bypassPermissions`. See [permission modes](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) for what this does and does not skip. For sessions started with `--bg`, the mode [persists when the supervisor restarts the session](</docs/en/agent-view#permission-mode-model-and-effort>)| `claude --dangerously-skip-permissions` `--debug`| Enable debug mode with optional category filtering, such as `--debug='mcp,startup'` or `--debug='!1p'`. The filter binds only in the `=` form; a space-separated filter enables debug mode without filtering| `claude --debug='mcp,startup'` `--debug-file <path>`| Write debug logs to a specific file path. Implicitly enables debug mode. Takes precedence over `CLAUDE_CODE_DEBUG_LOGS_DIR`| `claude --debug-file /tmp/claude-debug.log` @@ -98,7 +98,7 @@ `--input-format`| Specify input format for print mode (options: `text`, `stream-json`)| `claude -p --output-format json --input-format stream-json` `--json-schema`| Get validated JSON output matching a JSON Schema after the agent completes its workflow (print mode only). See [structured outputs](</docs/en/agent-sdk/structured-outputs>). Claude Code exits with an error on an invalid schema and accepts the `format` keyword as an annotation without client-side validation| `claude -p --json-schema '{"type":"object","properties":{...}}' "query"` `--maintenance`| Run [Setup hooks](</docs/en/hooks#setup>) with the `maintenance` matcher before the session (print mode only)| `claude -p --maintenance "query"` -`--max-budget-usd`| Maximum dollar amount to spend on API calls before stopping (print mode only). Spend from [subagents](</docs/en/sub-agents>) counts toward the cap. When you return to a conversation with `--continue` or `--resume`, totals [restored from earlier runs](</docs/en/agent-sdk/cost-tracking#accumulate-costs-across-multiple-calls>) don’t count toward it. Once spend reaches the cap, spawning another subagent fails with `Budget limit reached`, and Claude Code stops background subagents that are still running; the cap-enforcement behaviors require Claude Code v2.1.217 or later| `claude -p --max-budget-usd 5.00 "query"` +`--max-budget-usd`| Maximum dollar amount to spend on API calls before stopping (print mode only). Claude Code checks the cap against its [client-side cost estimate](</docs/en/agent-sdk/cost-tracking#estimates-not-billing>), which can differ from your bill. Spend from [subagents](</docs/en/sub-agents>) counts toward the cap. When you return to a conversation with `--continue` or `--resume`, totals [restored from earlier runs](</docs/en/agent-sdk/cost-tracking#accumulate-costs-across-multiple-calls>) don’t count toward it. Once spend reaches the cap, spawning another subagent fails with `Budget limit reached`, and Claude Code stops background subagents that are still running; the cap-enforcement behaviors require Claude Code v2.1.217 or later| `claude -p --max-budget-usd 5.00 "query"` `--max-turns`| Limit the number of agentic turns (print mode only). Exits with an error when the limit is reached. No limit by default. With `--input-format stream-json`, a message still queued when the limit ends a turn stays queued and starts a new turn with its own limit| `claude -p --max-turns 3 "query"` `--mcp-config`| Load MCP servers from JSON files or strings (space-separated). When you pass this flag with `-p`, Claude Code waits for still-pending servers to connect before running the first turn, up to the [`MCP_TIMEOUT`](</docs/en/env-vars>) startup timeout, 30 seconds by default; a server with a [cached tool list](</docs/en/mcp#managing-your-servers>) skips the wait and connects on first use. The wait requires Claude Code v2.1.221 or later| `claude --mcp-config ./mcp.json` `--model`| Sets the model for the current session with a [model alias](</docs/en/model-config#model-aliases>) such as `sonnet`, `opus`, `haiku`, or `fable`, or a model’s full name. Overrides the [`model`](</docs/en/settings-reference#model>) setting and [`ANTHROPIC_MODEL`](</docs/en/model-config#environment-variables>)| `claude --model claude-sonnet-5`
modified Code Review View current →
--- a/code-review.md +++ b/code-review.md @@ -346,7 +346,7 @@ * In a terminal session, where `/code-review` runs the review as a [forked subagent](</docs/en/skills#run-skills-in-a-subagent>) * In a `-p` run with text or JSON output -In a host application that requests the findings list, such as the [desktop app](</docs/en/desktop>), Claude reports the review’s findings through the [`ReportFindings` tool](</docs/en/tools-reference>) instead. Claude Code renders the report as a findings list, and each entry shows the file location, a one-sentence summary, and a category tag such as `correctness` when the finding carries one. A host request applies at every effort level and requires Claude Code v2.1.218 or later. When Claude fixes reported findings later in the session, it reports them again, and Claude Code marks each finding in the updated findings list as fixed, skipped, or no change needed. +In a host application that requests the findings list, such as the [desktop app](</docs/en/desktop#review-your-code>), Claude reports the review’s findings through the [`ReportFindings` tool](</docs/en/tools-reference>) instead. Claude Code renders the report as a findings list, and each entry shows the file location, a one-sentence summary, and a category tag such as `correctness` when the finding carries one. A host request applies at every effort level and requires Claude Code v2.1.218 or later. When Claude fixes reported findings later in the session, it reports them again, and Claude Code marks each finding in the updated findings list as fixed, skipped, or no change needed. ###
modified Commands View current →
--- a/commands.md +++ b/commands.md @@ -1,4 +1,4 @@ -Commands control Claude Code from inside a session. They provide a quick way to switch models, manage permissions, clear context, run a workflow, and more. Type `/` to see the commands available to you, or type `/` followed by letters to filter. How the command menu matches what you type covers highlighting, typos, and the few commands Claude Code hides from the menu until you type their full name. A command is only recognized at the start of your message. Text that follows the command name becomes its arguments. As of v2.1.199, [skills](</docs/en/skills#pass-arguments-to-skills>) are the exception: a skill invocation followed by more skills, such as `/skill-a /skill-b do XYZ`, loads every skill named at the start and passes the trailing text to each as arguments. Up to six skills can be chained. If you send a command while Claude is responding, Claude Code queues it and runs it after the current turn finishes. Claude Code runs some commands immediately without interrupting the response, such as `/status`, `/tasks`, and `/usage`. In [fullscreen rendering](</docs/en/fullscreen>), Claude Code also opens dialog commands such as `/theme` and `/help` immediately. Before v2.1.234, Claude Code queued those dialogs until the turn finished. +Commands control Claude Code from inside a session. They provide a quick way to switch models, manage permissions, clear context, run a workflow, and more. Type `/` to see the commands available to you, or type `/` followed by letters to filter. How the command menu matches what you type covers highlighting, typos, and the few commands Claude Code hides from the menu until you type their full name. A command is only recognized at the start of your message. Text that follows the command name becomes its arguments. [Skills](</docs/en/skills#pass-arguments-to-skills>) are the exception: a skill invocation followed by more skills, such as `/skill-a /skill-b do XYZ`, loads the skills named at the start and passes the trailing text to each as arguments. Up to six skills can be chained. If you send a command while Claude is responding, Claude Code queues it and runs it after the current turn finishes. Claude Code runs some commands immediately without interrupting the response, such as `/status`, `/tasks`, and `/usage`. In [fullscreen rendering](</docs/en/fullscreen>), Claude Code also opens dialog commands such as `/theme` and `/help` immediately. Before v2.1.234, Claude Code queued those dialogs until the turn finished. ## @@ -114,7 +114,7 @@ `/run-skill-generator`| **[Skill](</docs/en/skills#bundled-skills>).** Teach `/run` and `/verify` how to build, launch, and drive your project’s app from a clean environment by writing a per-project [skill](</docs/en/skills#run-and-verify-your-app>) `/sandbox`| Toggle [sandbox mode](</docs/en/sandboxing>). Available on supported platforms only `/schedule [description]`| Create, update, list, or run [routines](</docs/en/routines>), which execute in the cloud. Claude walks you through the setup conversationally. You can also ask about a [routine’s recent runs](</docs/en/routines#manage-routines-from-the-cli>). Alias: `/routines` -`/scroll-speed`| Adjust mouse wheel [scroll speed](</docs/en/fullscreen#mouse-wheel-scrolling>) interactively, with a ruler you can scroll while the dialog is open to preview the change. Available in [fullscreen rendering](</docs/en/fullscreen>) only and not in the JetBrains IDE terminal +`/scroll-speed`| Adjust mouse wheel [scroll speed](</docs/en/fullscreen#mouse-wheel-scrolling>) interactively. Available in [fullscreen rendering](</docs/en/fullscreen>) only and not in the JetBrains IDE terminal `/security-review`| Analyze the changes on your current branch for security vulnerabilities. Reviews the diff between your branch and origin’s default branch, identifying risks like injection, auth issues, and data exposure. Needs an `origin` remote; if the review fails with an `ambiguous argument` error, see the [error reference](</docs/en/errors#security-review-fails-without-origin-head>) `/setup-bedrock`| Configure [Amazon Bedrock](</docs/en/amazon-bedrock>) authentication, region, and model pins through an interactive wizard. Hidden from the command menu until `CLAUDE_CODE_USE_BEDROCK=1` is set; type it in full. First-time Amazon Bedrock users can also access this wizard from the login screen `/setup-vertex`| Configure [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>) authentication, project, region, and model pins through an interactive wizard. Hidden from the command menu until `CLAUDE_CODE_USE_VERTEX=1` is set; type it in full. First-time Google Cloud’s Agent Platform users can also access this wizard from the login screen
modified Common workflows View current →
--- a/common-workflows.md +++ b/common-workflows.md @@ -207,7 +207,7 @@ run the new tests and fix any failures -Claude can generate tests that follow your project’s existing patterns and conventions. When asking for tests, be specific about what behavior you want to verify. Claude examines your existing test files to match the style, frameworks, and assertion patterns already in use. For comprehensive coverage, ask Claude to identify edge cases you might have missed. Claude can analyze your code paths and suggest tests for error conditions, boundary values, and unexpected inputs that are easy to overlook. +Claude can generate tests that follow your project’s existing patterns and conventions. When asking for tests, be specific about what behavior you want to verify. Claude examines your existing test files to match the style, frameworks, and assertion patterns already in use. To improve coverage, ask Claude to identify edge cases you might have missed. Claude can analyze your code paths and suggest tests for error conditions, boundary values, and unexpected inputs that are often overlooked. * * *
modified Explore the context window View current →
--- a/context-window.md +++ b/context-window.md @@ -28,8 +28,8 @@ Auto memory| Re-injected from disk [Git status snapshot](</docs/en/settings-reference#includegitinstructions>)| Claude Code reads a fresh one from your repository The plan Claude wrote in [plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>)| Re-injected from disk -Rules with `paths:` frontmatter| Claude Code reloads them as Claude reads files they match -Nested CLAUDE.md in subdirectories| Claude Code reloads them as Claude reads files in that subdirectory +Rules with `paths:` frontmatter| Claude Code reloads them [on demand](</docs/en/memory#path-specific-rules>) +Nested CLAUDE.md in subdirectories| Claude Code reloads them [on demand](</docs/en/memory#how-claude-md-files-load>) Files Claude read or edited| Claude Code re-reads up to five, most recently modified first Invoked skill bodies| Re-injected, capped at 5,000 tokens per skill and 25,000 tokens total; oldest dropped first [Background commands](</docs/en/interactive-mode#background-bash-commands>) and background [subagents](</docs/en/sub-agents#run-subagents-in-foreground-or-background>)| Keep running. Claude Code reminds Claude which ones are still running so it doesn’t start a duplicate
modified Track cost and usage View current →
--- a/cost-tracking.md +++ b/cost-tracking.md @@ -210,7 +210,7 @@ * **Independent calls, with no`resume` or `continue` option**: each result covers only its own call, so add the totals yourself, as the examples below do. * **Calls that resume the same session** : Claude Code saves the session’s totals to its [transcript](</docs/en/sessions#where-transcripts-are-stored>) when the process exits normally and restores them when a later call resumes or forks the session. Each result already includes the session’s earlier spend. Read the latest result for the session total; summing results double-counts the restored spend. Before v2.1.277, a session that you resumed through the SDK or `claude -p` started its totals at zero, so each call’s results covered only that call. -In streaming input mode, read each call’s total as described in Track costs in streaming input mode. For a call that ended in a crash, see Recover totals after a session crash. The following examples run two `query()` calls sequentially, add each call’s `total_cost_usd` to a running total, and print both the per-call and combined cost: +Either way, the combined figure is still a client-side estimate. In streaming input mode, read each call’s total as described in Track costs in streaming input mode. For a call that ended in a crash, see Recover totals after a session crash. The following examples run two `query()` calls sequentially, add each call’s `total_cost_usd` to a running total, and print both the per-call and combined cost: TypeScript
modified Manage costs effectively View current →
--- a/costs.md +++ b/costs.md @@ -23,7 +23,7 @@ Usage by model: claude-sonnet-4-6: 1.2k input, 5.3k output, 940.0k cache read, 50.0k cache write ($0.55) -These totals reset when `/clear` starts a new session, so the next session’s total cost starts at $0. Before v2.1.211, they kept accumulating across `/clear` for the lifetime of the Claude Code process. For a response from the Claude API billed at the 1.1× [data residency rate](<https://platform.claude.com/docs/en/about-claude/pricing#data-residency-pricing>), Claude Code multiplies the list price of that response’s tokens by 1.1 in the session cost figure. The same total appears in the [status line’s cost field](</docs/en/statusline#cost-and-duration-tracking>), and the multiplied figure also counts toward [`--max-budget-usd`](</docs/en/cli-reference#cli-flags>). Before v2.1.239, Claude Code didn’t apply the 1.1× to those responses, so the session cost figure was lower than the bill. +These totals reset when `/clear` starts a new session, so the next session’s total cost starts at $0. Before v2.1.211, they kept accumulating across `/clear` for the lifetime of the Claude Code process. For a response from the Claude API billed at the 1.1× [data residency rate](<https://platform.claude.com/docs/en/about-claude/pricing#data-residency-pricing>), Claude Code multiplies the list price of that response’s tokens by 1.1 in the session cost figure. The same total appears in the [status line’s cost field](</docs/en/statusline#cost-and-duration-tracking>), and the multiplied figure also counts toward [`--max-budget-usd`](</docs/en/cli-reference#cli-flags>). #### @@ -252,7 +252,7 @@ Use `/usage` to check your current token usage, or [configure your status line](</docs/en/statusline#context-window-usage>) to display it continuously. - * **Clear between tasks** : Use `/clear` to start fresh when switching to unrelated work. Stale context wastes tokens on every subsequent message. Use `/rename` before clearing so you can easily find the session later, then `/resume` to return to it. + * **Clear between tasks** : Use `/clear` to start fresh when switching to unrelated work. Stale context wastes tokens on every subsequent message. Use `/rename` before clearing so you can find the session later, then `/resume` to return to it. * **Add custom compaction instructions** : `/compact Focus on code samples and API usage` tells Claude what to preserve during summarization. You can also customize compaction behavior in your CLAUDE.md file at the root of your project:
modified Create a mod View current →
--- a/create.md +++ b/create.md @@ -5,7 +5,7 @@ If you haven’t decided whether a mod is the right tool, read the [comparison on the overview](</docs/en/plugins/mods/overview#compare-mods-settings-hooks-skills-and-mcp-servers>) first. -Mods require Claude Code v2.1.287 or later. In your shell, run `claude --version` to check. To see whether mods can load for you, see [Check whether mods can load](</docs/en/plugins/mods/troubleshoot#check-whether-mods-can-load>). +Use Claude Code v2.1.287 or later. In your shell, run `claude --version` to check. To see whether mods can load for you, see [Check whether mods can load](</docs/en/plugins/mods/troubleshoot#check-whether-mods-can-load>). ##
modified Give Claude custom tools View current →
Show diff (139 lines)
--- a/custom-tools.md +++ b/custom-tools.md @@ -9,6 +9,7 @@ What you want to do| Do this ---|--- Define a tool| Use [`@tool`](</docs/en/agent-sdk/python#tool>) (Python) or [`tool()`](</docs/en/agent-sdk/typescript#tool>) (TypeScript) with a name, description, schema, and handler. See Create a custom tool. +Make a parameter optional| Declare it optional in the schema and apply the default in the handler. See Make a parameter optional. Register a tool with Claude| Wrap in `create_sdk_mcp_server` / `createSdkMcpServer` and pass to `mcpServers` in `query()`. See Call a custom tool. Pre-approve a tool| Add to your allowed tools. See Configure allowed tools. Remove a built-in tool from Claude’s context| Pass a `tools` array listing only the built-ins you want. See Configure allowed tools. @@ -28,13 +29,23 @@ * **Name:** a unique identifier Claude uses to call the tool. * **Description:** what the tool does. Claude reads this to decide when to call it. - * **Input schema:** the arguments Claude must provide. In TypeScript this is always a [Zod schema](<https://zod.dev/>), and the handler’s `args` are typed from it automatically. In Python this is a dict mapping names to types, like `{"latitude": float}`, which the SDK converts to JSON Schema for you. The Python decorator also accepts a full [JSON Schema](<https://json-schema.org/understanding-json-schema/about>) dict directly when you need enums, ranges, optional fields, or nested objects. + * **Input schema:** the arguments the tool accepts, declared per language: + * **TypeScript** : a [Zod schema](<https://zod.dev/>). The handler’s `args` take their types from it. Call `.describe()` on a field to give it a description Claude sees. + * **Python** : a dict mapping names to types, like `{"latitude": float}`, which the SDK converts to JSON Schema for you. Wrap a type in `Annotated`, like `{"latitude": Annotated[float, "Latitude coordinate"]}`, to give the field a description Claude sees. The decorator also accepts a full [JSON Schema](<https://json-schema.org/understanding-json-schema/about>) dict directly when you need enums, ranges, optional fields, or nested objects. * **Handler:** the async function that runs when Claude calls the tool. It receives the validated arguments and must return an object with: * `content` (required): an array of result blocks, each with a `type` of `"text"`, `"image"`, `"audio"`, `"resource"`, or `"resource_link"`. See Return images and resources for non-text blocks. * `structuredContent` (optional): a JSON object holding the result as machine-readable data, returned alongside `content`. See Return structured data. * `isError` (optional): set to `true` to signal a tool failure so Claude can react to it. See Handle errors. -After defining a tool, wrap it in a server with [`createSdkMcpServer`](</docs/en/agent-sdk/typescript#createsdkmcpserver>) (TypeScript) or [`create_sdk_mcp_server`](</docs/en/agent-sdk/python#create_sdk_mcp_server>) (Python). The server runs in-process inside your application, not as a separate process. +After defining a tool, wrap it in a server with [`createSdkMcpServer`](</docs/en/agent-sdk/typescript#createsdkmcpserver>) (TypeScript) or [`create_sdk_mcp_server`](</docs/en/agent-sdk/python#create_sdk_mcp_server>) (Python). The server runs in-process inside your application, not as a separate process. Python examples on this page that make HTTP requests use [httpx](<https://www.python-httpx.org/>). Add it with the package manager your project uses: + + * Python (uv) + + * Python (pip) + + uv add httpx + + pip install httpx ### @@ -42,13 +53,13 @@ Weather tool example -This example defines a `get_temperature` tool and wraps it in an MCP server. It only sets up the tool; to pass it to `query` and run it, see Call a custom tool below. +This example defines a `get_temperature` tool and wraps it in an MCP server, without passing the server to `query`. To run the tool, see Call a custom tool below. Python TypeScript - from typing import Any + from typing import Annotated, Any import httpx from claude_agent_sdk import tool, create_sdk_mcp_server @@ -56,7 +67,10 @@ @tool( "get_temperature", "Get the current temperature at a location", - {"latitude": float, "longitude": float}, + { + "latitude": Annotated[float, "Latitude coordinate"], + "longitude": Annotated[float, "Longitude coordinate"], + }, ) async def get_temperature(args: dict[str, Any]) -> dict[str, Any]: async with httpx.AsyncClient() as client: @@ -122,7 +136,18 @@ See the [`tool()`](</docs/en/agent-sdk/typescript#tool>) TypeScript reference or the [`@tool`](</docs/en/agent-sdk/python#tool>) Python reference for full parameter details, including JSON Schema input formats and return value structure. -To make a parameter optional: in TypeScript, add `.optional()` to the Zod field and apply the default in the handler. In Python, the dict schema treats every key as required, so leave the parameter out of the schema, mention it in the description string, and read it with `args.get()` in the handler. The `get_precipitation_chance` tool below shows both patterns. +### + +​ + +Make a parameter optional + +To make a parameter optional, declare it optional in the schema and apply the default in the handler: + + * **TypeScript** : add `.optional()` to the Zod field. + * **Python** : the dict schema requires every key. Use the JSON Schema form, leave the parameter out of `required`, and read it with `args.get()`. For a typed schema with optional keys, see [TypedDict class](</docs/en/agent-sdk/python#input-schema-options>). + +The `get_precipitation_chance` tool below shows both patterns. ### @@ -170,7 +195,23 @@ } } -Combine this snippet with the tool and server definitions from the weather tool example in one file, then run it with `python weather.py` for Python or `npx tsx weather.ts` for TypeScript. Claude calls `get_temperature` and the script prints a one-line answer with the current temperature in San Francisco. +Combine this snippet with the tool and server definitions from the weather tool example in one file, `weather.py` or `weather.ts`, then run it from your terminal: + + * TypeScript + + * Python (uv) + + * Python (pip) + + npx tsx weather.ts + + uv run weather.py + +Activate the virtual environment where you installed the SDK, then run: + + python weather.py + +Claude calls `get_temperature` and the script prints a one-line answer with the current temperature in San Francisco. ### @@ -187,12 +228,25 @@ # Define a second tool for the same server @tool( "get_precipitation_chance", - "Get the hourly precipitation probability for a location. " - "Optionally pass 'hours' (1-24) to control how many hours to return.", - {"latitude": float, "longitude": float}, + "Get the hourly precipitation probability for a location", + { + "type": "object", + "properties": { + "latitude": {"type": "number"}, + "longitude": {"type": "number"}, + "hours": { + "type": "integer", + "minimum": 1, + "maximum": 24, + "description": "How many hours of forecast to return", + }, + }, + # 'hours' is left out of required, so Claude can omit it + "required": ["latitude", "longitude"], + }, ) async def get_precipitation_chance(args: dict[str, Any]) -> dict[str, Any]: - # 'hours' isn't in the schema - read it with .get() to make it optional + # 'hours' isn't in required - read it with .get() to fall back to a default hours = args.get("hours", 12) async with httpx.AsyncClient() as client: response = await client.get(
modified Debug your configuration View current →
--- a/debug-your-config.md +++ b/debug-your-config.md @@ -19,7 +19,7 @@ `/debug [issue]`| Enables debug logging for the session and prompts Claude to diagnose using the log output and settings paths `/status`| Active settings sources, including whether managed settings are in effect -If a memory file is missing from the `/context` breakdown, check its location against [how CLAUDE.md files load](</docs/en/memory#how-claude-md-files-load>). Subdirectory `CLAUDE.md` files load on demand after Claude uses the Read, Write, or Edit tool on a file in that directory, not at session start. If `/context` confirms the file loaded but Claude still isn’t following a particular instruction, the issue is likely how the instruction is written rather than whether it loaded. CLAUDE.md works well for the kinds of guidance you’d give a new teammate, such as project conventions, build commands, and where files belong. Adherence drops when an instruction is vague enough to interpret multiple ways, when two files give conflicting direction, or when the file has grown long enough that individual rules get less attention. [Write effective instructions](</docs/en/memory#write-effective-instructions>) covers the specificity, size, and structure patterns that keep adherence high. +If a memory file is missing from the `/context` breakdown, check its location against [how CLAUDE.md files load](</docs/en/memory#how-claude-md-files-load>). Subdirectory `CLAUDE.md` files load on demand rather than at session start, so they don’t appear in that breakdown. If `/context` confirms the file loaded but Claude still isn’t following a particular instruction, the issue is likely how the instruction is written rather than whether it loaded. CLAUDE.md works well for the kinds of guidance you’d give a new teammate, such as project conventions, build commands, and where files belong. Adherence drops when an instruction is vague enough to interpret multiple ways, when two files give conflicting direction, or when the file has grown long enough that individual rules get less attention. [Write effective instructions](</docs/en/memory#write-effective-instructions>) covers the specificity, size, and structure patterns that keep adherence high. CLAUDE.md and permissions solve different problems. CLAUDE.md tells Claude how your project works so it makes good decisions. [Permissions](</docs/en/permissions>) and [hooks](</docs/en/hooks>) enforce limits regardless of what Claude decides. Use CLAUDE.md for “we do it this way here.” Use permissions or hooks for security boundaries and anything that must never happen, where you need a guarantee instead of guidance. @@ -98,7 +98,7 @@ A `settings.json` value seems ignored| The same key is set in `settings.local.json`| `settings.local.json` overrides `settings.json`, and both override `~/.claude/settings.json`. See [settings precedence](</docs/en/settings#settings-precedence>). Skill doesn’t appear in `/skills`| Skill file is at `.claude/skills/name.md` instead of in a folder| Use a folder with `SKILL.md` inside: `.claude/skills/name/SKILL.md`. Skill appears in `/skills` but Claude never invokes it| Skill has `disable-model-invocation: true` in its frontmatter, or its description doesn’t match how you phrase the request| Check the badge in `/skills`: a “user-only” label means Claude won’t trigger it on its own. See [skill invocation](</docs/en/skills>). -Subdirectory `CLAUDE.md` instructions seem ignored| Subdirectory files load on demand, not at session start| They load after Claude uses the Read, Write, or Edit tool on a file in that directory, not at launch. Before v2.1.288, only the Read tool loaded them. See [how CLAUDE.md files load](</docs/en/memory#how-claude-md-files-load>). +Subdirectory `CLAUDE.md` instructions seem ignored| Subdirectory files load on demand, not at session start| See [when subdirectory files load](</docs/en/memory#how-claude-md-files-load>). Before v2.1.288, only the Read tool loaded them. Subagent ignores `CLAUDE.md` instructions| The built-in Explore and Plan agents skip `CLAUDE.md`. A custom subagent loads it the same way the main conversation does, unless its definition sets [`omitClaudeMd`](</docs/en/sub-agents#supported-frontmatter-fields>)| For Explore or Plan, restate the instruction in your delegating prompt. For a subagent that sets `omitClaudeMd`, remove the field. For any other custom subagent, put critical instructions in the agent file body, which becomes the agent’s system prompt. See [what loads at startup](</docs/en/sub-agents#what-loads-at-startup>). Cleanup logic never runs at session end| No `SessionEnd` hook configured| Add a `SessionEnd` hook in `settings.json`. See the [hook events list](</docs/en/hooks#hook-events>). MCP servers in `.mcp.json` never load| File is under `.claude/`, or its servers sit under a top-level `servers` key, as in VS Code’s `mcp.json`, instead of `mcpServers`| Project MCP config goes at the repository root as `.mcp.json`, not inside `.claude/`, with servers under the `mcpServers` key. See [MCP configuration](</docs/en/mcp>).
modified Launch sessions from links View current →
--- a/deep-links.md +++ b/deep-links.md @@ -184,7 +184,7 @@ The link renders as plain text instead of being clickable -Some Markdown renderers only allow `http` and `https` links and strip other URL schemes. GitHub does this in READMEs, issues, pull requests, and wikis: `[label](claude-cli://...)` renders as just `label`, with no link and the URL removed. On these platforms, put the deep link in a code block so readers can see the URL and paste it into their browser’s address bar. +Some Markdown renderers only allow `http` and `https` links and strip other URL schemes. GitHub does this in READMEs, issues, pull requests, and wikis: `[label](claude-cli://...)` renders as `label`, with no link and the URL removed. On these platforms, put the deep link in a code block so readers can see the URL and paste it into their browser’s address bar. ###
modified Desktop application View current →
Show diff (139 lines)
--- a/desktop.md +++ b/desktop.md @@ -108,11 +108,10 @@ * Interact with your running app directly in the Browser pane * Watch Claude verify its own changes automatically: it takes screenshots, inspects the DOM, clicks elements, fills forms, and fixes issues it finds - * Start or stop servers from the server dropdown in the session toolbar - * Persist cookies and local storage across server restarts by selecting **Persist sessions** in the dropdown, so you don’t have to re-login during development - * Edit the server configuration or stop all servers at once - -Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear saved session data, or to turn the Browser off entirely, use the toggles in Settings → Claude Code. + * Start or stop servers, or stop them all at once, from the **Dev servers** menu in the Browser pane’s header + * Choose whether the Browser keeps cookies after you quit the app with **Keep cookies** in the Browser pane’s **⋮** menu, so you don’t have to sign in again during development + +Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear the Browser’s saved data, select **Clear browsing data** in the Browser pane’s **⋮** menu. To turn the Browser off entirely, turn off **Browser tools** in **Settings > Claude Code**. ### @@ -120,7 +119,7 @@ Browse external sites -The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press **Cmd+Shift+B** on macOS or **Ctrl+Shift+B** on Windows, or select it from the **Views** menu. When you click an external link in the chat, a chooser offers **Open in app** to use the Browser pane or **Default browser** to use your own; **Cmd** -click on macOS or **Ctrl** -click on Windows opens a link in your system browser directly. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks: +The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press **Cmd+Shift+B** on macOS or **Ctrl+Shift+B** on Windows, or click **Browser** in the session’s title bar. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. The first time you click an external link in the chat, a dialog asks whether links open in the Browser pane or in your default browser. To change your choice later, use **Open links in built-in browser** in the Browser pane’s **⋮** menu. **Cmd** -click on macOS or **Ctrl** -click on Windows opens a link in your default browser directly. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks: * Safety classifiers review Claude’s write actions on external pages, such as clicking and typing, in every permission mode. These are the same classifiers auto mode uses, and when they flag an action, you get a permission prompt regardless of mode. * In permission modes other than Auto and Bypass permissions, a domain allowlist check also applies before Claude navigates to a new site. @@ -168,7 +167,12 @@ Review your code -In the diff view, click **Review code** in the top-right toolbar to ask Claude to evaluate the changes before you commit. Claude examines the current diffs and leaves comments directly in the diff view. You can respond to any comment or ask Claude to revise. The review focuses on high-signal issues: compile errors, definite logic errors, security vulnerabilities, and obvious bugs. It does not flag style, formatting, pre-existing issues, or anything a linter would catch. +To have Claude review your changes before you commit, enter `/code-review` in the prompt box. The findings arrive in the conversation when the review completes. In local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions, the findings appear as a **Code review** card, grouped by file. Use the card to act on them: + + * Click **Walk through in diff** to open the diff view and step through the findings one at a time. A finding in the current diff appears at its line, where you can click **Fix this one** or dismiss it. + * Click **Apply fixes** to ask Claude to fix the findings that are still open. + +In any session, you can also ask Claude in the prompt box to fix what the review found. For what `/code-review` looks for and the arguments it takes, see [Review a diff locally](</docs/en/code-review#review-a-diff-locally>). ### @@ -178,10 +182,10 @@ After you open a pull request, a CI status bar appears in the session. Claude Code uses the GitHub CLI to poll check results and surface failures. - * **Auto-fix** : when enabled, Claude automatically attempts to fix failing CI checks by reading the failure output and iterating. - * **Auto-merge** : when enabled, Claude merges the PR once all checks pass. The merge method is squash. Enable auto-merge in your [GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) first; without it, Claude can’t merge the PR. - -Use the **Auto-fix** and **Auto-merge** toggles in the CI status bar to enable either option. Claude Code also sends a desktop notification when CI finishes. To archive the session automatically once the PR merges or closes, turn on auto-archive in Settings → Claude Code. + * **Auto-fix CI & address comments**: when enabled, Claude automatically attempts to fix failing CI checks by reading the failure output and iterating. In a local session, Claude also addresses new review comments that someone other than you leaves, when the author is the repository’s owner, an organization member, a collaborator, or a GitHub App. + * **Auto-merge when ready** : when enabled, Claude merges the PR once all checks pass. The merge method is squash. Enable auto-merge in your [GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) first; without it, Claude can’t merge the PR. + +To turn these on, click **CI** in the status bar. To archive the session automatically once the PR merges or closes, turn on auto-archive in **Settings > Claude Code**. PR monitoring requires the [GitHub CLI (`gh`)](<https://cli.github.com/>) to be installed and authenticated on your machine. If `gh` is not installed, Desktop prompts you to install it the first time you try to create a PR. @@ -191,7 +195,7 @@ Arrange your workspace -The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar. To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window. +The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Click **Terminal** , **Changes** , or **Browser** in the session’s title bar to open the terminal, diff, or Browser pane. The **⋮** menu beside them opens more panes, such as **Files** , and holds those buttons when the window is too narrow to show them. To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window. The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update. @@ -201,7 +205,7 @@ Run commands in the terminal -The integrated terminal lets you run commands alongside your session without switching to another app. Open it from the **Views** menu or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. The terminal is available in local sessions only. +The integrated terminal lets you run commands alongside your session without switching to another app. Click **Terminal** in the session’s title bar or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. The terminal is available in local sessions only. ### @@ -392,7 +396,7 @@ Watch background tasks -The tasks pane shows the background work running inside the current session: subagents, background shell commands, and [dynamic workflows](</docs/en/workflows>). Open it from the **Views** menu or drag it into your layout. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar, or ask Claude to check on them for you. +The tasks pane shows the background work running inside the current session: subagents, background shell commands, and [dynamic workflows](</docs/en/workflows>). Once the session has background work, open the pane with **Background tasks** in the title bar’s **⋮** menu. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar, or ask Claude to check on them for you. ### @@ -474,7 +478,7 @@ Configure preview servers -Claude automatically detects your dev server setup and stores the configuration in `.claude/launch.json` at the root of the folder you selected when starting the session. Preview uses this folder as its working directory, so if you selected a parent folder, subfolders with their own dev servers won’t be detected automatically. To work with a subfolder’s server, either start a session in that folder directly or add a configuration manually. To customize how your server starts, for example to use `yarn dev` instead of `npm run dev` or to change the port, edit the file manually or click **Edit configuration** in the server dropdown to open it in your code editor. The file supports JSON with comments. +Claude automatically detects your dev server setup and stores the configuration in `.claude/launch.json` at the root of the folder you selected when starting the session. Preview uses this folder as its working directory, so if you selected a parent folder, subfolders with their own dev servers won’t be detected automatically. To work with a subfolder’s server, either start a session in that folder directly or add a configuration manually. To customize how your server starts, for example to use `yarn dev` instead of `npm run dev` or to change the port, edit `.claude/launch.json`. The file supports JSON with comments. { "version": "0.0.1", @@ -496,7 +500,7 @@ Auto-verify changes -When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or toggle it from the server dropdown menu. +When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or turn off **Auto-verify changes** in the Browser pane’s **⋮** menu. { "version": "0.0.1", @@ -698,14 +702,14 @@ SSH sessions -SSH sessions let you run Claude Code on a remote machine while using the desktop app as your interface. This is useful for working with codebases that live on cloud VMs, dev containers, or servers with specific hardware or dependencies. To add an SSH connection, click the environment dropdown before starting a session and select **\+ Add SSH connection**. The dialog asks for: +SSH sessions let you run Claude Code on a remote machine while using the desktop app as your interface. This is useful for working with codebases that live on cloud VMs, dev containers, or servers with specific hardware or dependencies. To add an SSH connection, open the environment dropdown in the prompt box before you start a session, then select **SSH > Add SSH connection…** and fill in the connection details: * **Name** : a friendly label for this connection - * **SSH Host** : `user@hostname` or a host defined in `~/.ssh/config` - * **SSH Port** : defaults to 22 if left empty, or uses the port from your SSH config - * **Identity File** : path to your private key, such as `~/.ssh/id_rsa`. Leave empty to use the default key or your SSH config. - -Once added, the connection appears in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers. + * **SSH host** : `user@hostname` or a host defined in `~/.ssh/config` + * **SSH port** : defaults to 22 if left empty, or uses the port from your SSH config + * **SSH key (optional)** : path to your private key, such as `~/.ssh/id_ed25519`. Leave empty to use your SSH config or SSH agent. + +Once added, the connection appears under **SSH** in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers. #### @@ -762,7 +766,6 @@ * **Desktop** : control whether users in your organization can access Claude Code in the desktop app * **Cloud sessions** : enable or disable [cloud sessions](</docs/en/claude-code-on-the-web>) for your organization * **Remote Control** : enable or disable [Remote Control](</docs/en/remote-control>) for your organization - * **Disable Bypass permissions mode** : prevent users in your organization from enabling bypass permissions mode In Enterprise organizations that have HIPAA enabled, the **Desktop** toggle is off by default and an [Owner](</docs/en/server-managed-settings#access-control>) can turn it on. Applying the [HIPAA configuration](</docs/en/hipaa-setup>) turns it off, even if it was on, so an Owner has to turn it on afterward. **Cloud sessions** and **Remote Control** are also off by default, and an Owner can’t turn them on once the organization has the HIPAA configuration applied. @@ -1087,7 +1090,7 @@ ”Branch doesn’t exist yet” when opening in CLI -Cloud sessions can create branches that don’t exist on your local machine. Click the branch name in the session toolbar to copy it, then fetch it locally: +Cloud sessions can create branches that don’t exist on your local machine. Click the branch name in the session and select **Copy branch name** , then fetch it locally: git fetch origin <branch-name> git checkout <branch-name>
modified Test iOS apps in the simulator View current →
--- a/desktop-ios-simulator.md +++ b/desktop-ios-simulator.md @@ -59,7 +59,7 @@ When the app launches in a simulator, the iOS Simulator pane opens next to the conversation. The first time Claude uses a device, the desktop app asks you to allow it; see Grant Claude access to a device. Claude installs the app, taps through it, and reads the screen to verify its own changes while you watch. -The simulator pane opens whenever Claude launches the app in a simulator, at any point in the session. When your request is about seeing the app, for example “does the new screen look right?”, Claude starts a simulator before it begins the work. After Claude fixes a bug or changes a screen, ask it to verify the change: relaunching the app reopens the pane if it isn’t open. The simulator pane shows whichever device the app actually launched in. To test on a specific device, name it in your request, for example “run it on the iPhone SE simulator”, and Claude targets that device when it builds and launches. A device Claude boots also appears in Apple’s Simulator app, or in Device Hub on Xcode 27. Claude can install the app on a device you already have booted. You can also open the simulator pane yourself. Once the session has a simulator attached or has edited Swift files, the **Views** menu in the session toolbar shows an **iOS Simulator** entry. If the pane isn’t showing a device yet, click **Attach simulator** , or pick a specific device from the device menu next to it; picking a shut-down device boots it. If Xcode or its simulators are missing, the pane shows the setup steps instead and checks them off as you complete them. +The simulator pane opens whenever Claude launches the app in a simulator, at any point in the session. When your request is about seeing the app, for example “does the new screen look right?”, Claude starts a simulator before it begins the work. After Claude fixes a bug or changes a screen, ask it to verify the change: relaunching the app reopens the pane if it isn’t open. The simulator pane shows whichever device the app actually launched in. To test on a specific device, name it in your request, for example “run it on the iPhone SE simulator”, and Claude targets that device when it builds and launches. A device Claude boots also appears in Apple’s Simulator app, or in Device Hub on Xcode 27. Claude can install the app on a device you already have booted. You can also open the simulator pane yourself. Once the session has a simulator attached or Claude Code detects iOS app work, an **iOS Simulator** button appears in the session’s title bar. If the pane isn’t showing a device yet, click **Attach simulator** , or pick a specific device from the device menu next to it; picking a shut-down device boots it. If Xcode or its simulators are missing, the pane shows the setup steps instead and checks them off as you complete them. ##
modified Get started with the desktop app View current →
--- a/desktop-quickstart.md +++ b/desktop-quickstart.md @@ -108,7 +108,7 @@ Now what? -You’ve made your first edit. For the full reference on everything Desktop can do, see [Use Claude Code Desktop](</docs/en/desktop>). Here are some things to try next. **Interrupt and steer.** You can redirect Claude at any point. Click the stop button to interrupt immediately, or type a correction and press **Enter** to send it without stopping the running action. Either way, you don’t have to wait for it to finish or start over. **Give Claude more context.** Type `@filename` in the prompt box to pull a specific file into the conversation, attach images and PDFs using the attachment button, or drag and drop files directly into the prompt. The more context Claude has, the better the results. See [Add files and context](</docs/en/desktop#add-files-and-context-to-prompts>). **Use skills for repeatable tasks.** Type `/` or click **+** → **Slash commands** to browse [built-in commands](</docs/en/commands>), [custom skills](</docs/en/skills>), and plugin skills. Skills are reusable prompts you can invoke whenever you need them, like code review checklists or deployment steps. **Review changes before committing.** After Claude edits files, a `+12 -1` indicator appears. Click it to open the [diff view](</docs/en/desktop#review-changes-with-diff-view>), review modifications file by file, and comment on specific lines. Claude reads your comments and revises. Click **Review code** to have Claude evaluate the diffs itself and leave inline suggestions. **Adjust how much control you have.** Your [permission mode](</docs/en/desktop#choose-a-permission-mode>) sets how much Claude can do without asking for approval: +You’ve made your first edit. For the full reference on everything Desktop can do, see [Use Claude Code Desktop](</docs/en/desktop>). Here are some things to try next. **Interrupt and steer.** You can redirect Claude at any point. Click the stop button to interrupt immediately, or type a correction and press **Enter** to send it without stopping the running action. Either way, you don’t have to wait for it to finish or start over. **Give Claude more context.** Type `@filename` in the prompt box to pull a specific file into the conversation, attach images and PDFs using the attachment button, or drag and drop files directly into the prompt. The more context Claude has, the better the results. See [Add files and context](</docs/en/desktop#add-files-and-context-to-prompts>). **Use skills for repeatable tasks.** Type `/` or click **+** → **Slash commands** to browse [built-in commands](</docs/en/commands>), [custom skills](</docs/en/skills>), and plugin skills. Skills are reusable prompts you can invoke whenever you need them, like code review checklists or deployment steps. **Review changes before committing.** After Claude edits files, a `+12 -1` indicator appears. Click it to open the [diff view](</docs/en/desktop#review-changes-with-diff-view>), review modifications file by file, and comment on specific lines. Claude reads your comments and revises. To have Claude review the changes itself, enter [`/code-review`](</docs/en/desktop#review-your-code>) in the prompt box. **Adjust how much control you have.** Your [permission mode](</docs/en/desktop#choose-a-permission-mode>) sets how much Claude can do without asking for approval: * **Auto** : a classifier reviews actions in the background and blocks the risky ones instead of asking you. * **Manual** : Claude asks before editing files or running commands.
modified Schedule recurring tasks in Claude Code Desktop View current →
--- a/desktop-scheduled-tasks.md +++ b/desktop-scheduled-tasks.md @@ -71,7 +71,7 @@ Missed runs -When the app starts or your computer wakes, Desktop checks whether each task missed any runs in the last seven days. If it did, Desktop starts exactly one catch-up run for the most recently missed time and discards anything older. A daily task that missed six days runs once on wake. Desktop shows a notification when a catch-up run starts. Keep this in mind when writing prompts. A task scheduled for 9am might run at 11pm if your computer was asleep all day. If timing matters, add guardrails to the prompt itself, for example: “Only review today’s commits. If it’s after 5pm, skip the review and just post a summary of what was missed.” +When the app starts or your computer wakes, Desktop checks whether each task missed any runs in the last seven days. If it did, Desktop starts exactly one catch-up run for the most recently missed time and discards anything older. A daily task that missed six days runs once on wake. Desktop shows a notification when a catch-up run starts. Keep this in mind when writing prompts. A task scheduled for 9am might run at 11pm if your computer was asleep all day. If timing matters, add guardrails to the prompt itself, for example: “Only review today’s commits. If it’s after 5pm, skip the review and post a summary of what was missed.” ##
modified Environment variables View current →
--- a/env-vars.md +++ b/env-vars.md @@ -165,7 +165,7 @@ `BASH_DEFAULT_TIMEOUT_MS`| Default timeout for a foreground Bash or PowerShell tool command, in milliseconds (default: 120000, or 2 minutes). A default longer than 30 minutes also becomes the default [time limit for background commands](</docs/en/tools-reference#time-limit-for-background-commands>) in unattended sessions. The background time limit requires Claude Code v2.1.285 or later `BASH_MAX_OUTPUT_LENGTH`| Maximum number of characters of bash output that Claude Code reads back into a command’s result (default: 30000; maximum: 150000). If you set the [`bashOutputMaxChars`](</docs/en/settings-reference#bashoutputmaxchars>) setting, Claude Code ignores this variable. See [Output limits](</docs/en/tools-reference#output-limits>) `BASH_MAX_TIMEOUT_MS`| Maximum timeout the model can set for a foreground Bash or PowerShell tool command, in milliseconds (default: 600000, or 10 minutes). The effective ceiling is the larger of this and `BASH_DEFAULT_TIMEOUT_MS`. An effective ceiling longer than 2 hours also becomes the maximum [time limit for background commands](</docs/en/tools-reference#time-limit-for-background-commands>) in unattended sessions. The background time limit requires Claude Code v2.1.285 or later -`BETA_TRACING_ENDPOINT`| OTLP endpoint for [detailed beta tracing](</docs/en/monitoring-usage#traces-beta>): with `ENABLE_BETA_TRACING_DETAILED=1`, logs and traces go there instead of to the configured exporters. Set it in your shell, user settings, or managed settings. Ignored in [project and local settings](</docs/en/settings-reference#variables-claude-code-ignores-in-env>) +`BETA_TRACING_ENDPOINT`| OTLP/HTTP endpoint for [detailed beta tracing](</docs/en/monitoring-usage#traces-beta>): with `ENABLE_BETA_TRACING_DETAILED=1`, logs and traces go there instead of to the configured exporters. Set it in your shell, user settings, or managed settings. Ignored in [project and local settings](</docs/en/settings-reference#variables-claude-code-ignores-in-env>) `CCR_FORCE_BUNDLE`| Set to `1` to force [`claude --cloud`](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) to bundle and upload your local repository instead of cloning from its remote `CLAUDECODE`| Set to `1` in subprocesses Claude Code spawns (Bash and PowerShell tools, tmux sessions, [hook](</docs/en/hooks>) commands, [status line](</docs/en/statusline>) commands, stdio [MCP server](</docs/en/mcp>) subprocesses). IDE extensions also set this in their integrated terminals. Use to detect when a script is running inside a subprocess spawned by Claude Code. To check whether the current process was spawned directly by a tool call or hook, rather than inside a stdio MCP server that Claude Code started, use `CLAUDE_CODE_CHILD_SESSION` instead `CLAUDE_AFK_COUNTDOWN_MS`| How many milliseconds before auto-continue the on-screen countdown appears on an unanswered [`AskUserQuestion`](</docs/en/tools-reference>) dialog. Default `20000` (20 seconds), capped at the auto-continue timeout. Has no effect unless auto-continue is on; see the [`askUserQuestionTimeout`](</docs/en/settings-reference#askuserquestiontimeout>) setting and `CLAUDE_AFK_TIMEOUT_MS`. Requires Claude Code v2.1.198 or later @@ -257,6 +257,7 @@ `CLAUDE_CODE_DISABLE_WINDOWS_SHELL_LAUNCHER`| Set to `1` to start [PowerShell tool](</docs/en/tools-reference#powershell-tool>) commands on Windows directly instead of through the `cmd.exe` launcher. By default, the launcher lets a PowerShell command [running in the background](</docs/en/tools-reference#background-commands>) [carry over to the session’s next process](</docs/en/agent-view#the-supervisor-process>), such as when you [background the session](</docs/en/agent-view#from-inside-a-session>). If you set the variable, a backgrounded PowerShell command stops when the session’s process exits. Bash commands aren’t affected. Requires Claude Code v2.1.269 or later `CLAUDE_CODE_DISABLE_WORKFLOWS`| Set to `1` to disable [workflows](</docs/en/workflows#turn-workflows-off>). Equivalent to the [`disableWorkflows`](</docs/en/settings-reference#disableworkflows>) setting `CLAUDE_CODE_EFFORT_LEVEL`| Set the effort level for supported models. Values: `low`, `medium`, `high`, `xhigh`, `max`, or `auto` to use the model default. Available levels depend on the model. Takes precedence over `--effort`, `/effort`, and the `modelSettings` and `effortLevel` settings. A [`maxEffortLevel`](</docs/en/settings-reference#maxeffortlevel>) cap still applies. See [Adjust effort level](</docs/en/model-config#adjust-effort-level>) +`CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS`| Set to `1` to add [`session_state_changed`](</docs/en/agent-sdk/typescript#sdksessionstatechangedmessage>) messages, which carry the session’s state, to the message stream. Requires either the [Agent SDK](</docs/en/agent-sdk/overview>) or `--print`, `--output-format stream-json`, and `--verbose` `CLAUDE_CODE_ENABLE_AUTO_MODE`| Accepted for compatibility with older releases and has no effect. Auto mode is available by default on every provider, including Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, and signed-in [Claude apps gateway](</docs/en/claude-apps-gateway>) sessions. In v2.1.158 through v2.1.206, setting this to `1` was required to make [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) available on those providers `CLAUDE_CODE_ENABLE_AWAY_SUMMARY`| Override [session recap](</docs/en/interactive-mode#session-recap>) availability. Set to `0` to force recaps off regardless of the `/config` toggle. Set to `1` to force recaps on when [`awaySummaryEnabled`](</docs/en/settings-reference#awaysummaryenabled>) is `false`. Takes precedence over the setting and `/config` toggle `CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH`| Set to `1` to refresh plugin state at turn boundaries in [non-interactive mode](</docs/en/headless>) after a background install completes. Off by default because the refresh changes the system prompt mid-session, which invalidates [prompt caching](</docs/en/prompt-caching>) for that turn @@ -284,6 +285,7 @@ `CLAUDE_CODE_GLOB_NO_IGNORE`| Set to `false` to make the [Glob tool](</docs/en/tools-reference#glob-tool-behavior>) respect `.gitignore` patterns. By default, Glob returns all matching files including gitignored ones. Does not affect `@` file autocomplete, which has its own [`respectGitignore` setting](</docs/en/settings-reference#respectgitignore>) `CLAUDE_CODE_GLOB_TIMEOUT_SECONDS`| Timeout in seconds for Glob tool file discovery. Defaults to 20 seconds on most platforms and 60 seconds on WSL `CLAUDE_CODE_GOAL_CHECKIN_MINUTES`| How many minutes background work can keep an active goal waiting before Claude Code [asks Claude to check on it](</docs/en/goal#background-work-defers-evaluation>). Default `30`. Set `0` to turn check-ins off. Give whole minutes in plain digits, at most `10080`, which is one week. Claude Code treats any other value as unset and uses the default. Requires Claude Code v2.1.234 or later +`CLAUDE_CODE_GZIP_REQUEST_BODIES`| Set to `0` to turn off gzip compression of Claude API, telemetry, and [artifact](</docs/en/artifacts>) publish request bodies sent to `api.anthropic.com`. By default, Claude Code compresses large request bodies on direct connections and skips compression when you send requests through a proxy, configure a client certificate, or set `NODE_EXTRA_CA_CERTS`. Use `0` if a [TLS-inspecting proxy](</docs/en/network-config#ca-certificate-store>) that Claude Code can’t detect mishandles compressed requests `CLAUDE_CODE_HIDE_CWD`| Set to `1` to hide the working directory in the startup logo. Useful for screenshares or recordings where the path exposes your OS username `CLAUDE_CODE_IDE_HOST_OVERRIDE`| Override the host address used to connect to the IDE extension. By default Claude Code auto-detects the correct address, including WSL-to-Windows routing `CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL`| Set to `1` to skip auto-installation of IDE extensions. Equivalent to setting [`autoInstallIdeExtension`](</docs/en/settings-reference#autoinstallideextension>) to `false` @@ -430,7 +432,7 @@ `DISABLE_UPDATES`| Set to `1` to block all updates including manual `claude update` and `claude install`. Stricter than `DISABLE_AUTOUPDATER`. Use when distributing Claude Code through your own channels and users should not self-update `DISABLE_UPGRADE_COMMAND`| Set to `1` to hide the `/upgrade` command `DO_NOT_TRACK`| Set to `1` to opt out of telemetry, with the same effect as `DISABLE_TELEMETRY`, including on feature-flag fetching. Claude Code reads this variable as a standard boolean, so `0` leaves telemetry on, and honors it as the cross-tool convention recognized by many developer CLIs -`ENABLE_BETA_TRACING_DETAILED`| Set to `1`, together with `BETA_TRACING_ENDPOINT`, to turn on [detailed beta tracing](</docs/en/monitoring-usage#traces-beta>), which adds content-bearing span attributes and the `claude_code.hook` span. Interactive CLI sessions also require your organization to be allowlisted for the beta. Both variables are ignored in [project and local settings](</docs/en/settings-reference#variables-claude-code-ignores-in-env>) +`ENABLE_BETA_TRACING_DETAILED`| Set to `1`, and set `BETA_TRACING_ENDPOINT` to your OTLP/HTTP collector endpoint, to turn on [detailed beta tracing](</docs/en/monitoring-usage#traces-beta>), which adds content-bearing span attributes and the `claude_code.hook` span. Interactive CLI sessions also require your organization to be allowlisted for the beta. Both variables are ignored in [project and local settings](</docs/en/settings-reference#variables-claude-code-ignores-in-env>) `ENABLE_CLAUDEAI_MCP_SERVERS`| Set to `false` to stop Claude Code from fetching [claude.ai MCP servers](</docs/en/mcp#use-mcp-servers-from-claude-ai>). Enabled by default for logged-in users. To disable per-project or per-org, set [`disableClaudeAiConnectors`](</docs/en/settings-reference#disableclaudeaiconnectors>) in settings instead `ENABLE_PROMPT_CACHING_1H`| Set to `1` to request a 1-hour [prompt cache TTL](</docs/en/prompt-caching#cache-lifetime>) instead of the default 5 minutes. Intended for API key, [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), [Microsoft Foundry](</docs/en/microsoft-foundry>), and [Claude Platform on AWS](</docs/en/claude-platform-on-aws>) users. Subscription users within included usage receive the 1-hour TTL automatically on the [main conversation](</docs/en/prompt-caching#which-ttl-each-request-gets>). Subscription users drawing on [usage credits](<https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans>) can set it to keep the 1-hour TTL. 1-hour cache writes are billed at a higher rate. To choose the TTL per request bucket instead, use `CLAUDE_CODE_PROMPT_CACHE_TTL` and `CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL`, which take precedence over this variable `ENABLE_PROMPT_CACHING_1H_BEDROCK`| Deprecated. Use `ENABLE_PROMPT_CACHING_1H` instead
modified Feature availability View current →
--- a/feature-availability.md +++ b/feature-availability.md @@ -47,7 +47,8 @@ These require signing in with a claude.ai account and are not reachable with an Anthropic Console API key or from a third-party provider: - * [Cloud sessions](</docs/en/claude-code-on-the-web>), Claude Code on mobile, and [Claude Code in Slack](</docs/en/slack>) + * [Cloud sessions](</docs/en/claude-code-on-the-web>) and Claude Code on mobile + * [Claude Code in Slack](</docs/en/slack>): Pro and Max plans * [Claude Code Desktop](</docs/en/desktop>) * [Routines](</docs/en/routines>) (`/schedule`) * [Ultrareview](</docs/en/ultrareview>)
modified Fullscreen rendering View current →
--- a/fullscreen.md +++ b/fullscreen.md @@ -82,7 +82,7 @@ * **Click in the prompt input** to position your cursor anywhere in the text you’re typing. * **Click a suggestion in the`/` command or `@` file list** to accept it. Hovering highlights the row under your cursor. - * **Click an option in a select menu** to choose it. This covers permission prompts, `/model`, `/config`, and other dialogs that show a list of options. Hovering shows a pointer on the row under your cursor. + * **Click an option in a select menu** to choose it. This covers permission prompts, `/model`, `/config`, and other dialogs that show a list of options. * **Click an option in a multi-select menu** to toggle it, and click the submit button to confirm your choices. Clicking a free-text row, such as the `Other` row in a multiple-choice question, focuses its input field so you can type an answer. Requires Claude Code v2.1.208 or later. * **Click a setting’s value in the`/config` panel** to change it, and scroll the settings list with the mouse wheel. Requires Claude Code v2.1.271 or later. * **Scroll a select or multi-select menu with the mouse wheel** when it has more options than it shows at once, such as the `/model` list in a short terminal window. The wheel scrolls the list while the pointer is over its options. Requires Claude Code v2.1.280 or later. @@ -92,7 +92,8 @@ * **Click a collapsed tool result** to expand it and see the full output. Click again to collapse. The tool call and its result expand together. Only messages that have more to show are clickable. * Clicking also expands the output of a `!` shell command, whether an older truncated result or the live progress row while the command runs. Requires Claude Code v2.1.257 or later. * Clicking also expands a dim `Message from @<sender>` line when the sender is a [teammate](</docs/en/agent-teams>) or another agent running in your session. - * **Hold`Cmd` on macOS, or `Ctrl` on Linux and Windows, and click a URL or file path** to open it. Plain `http://` and `https://` URLs open in your browser, and file paths in tool output, like the ones printed after an Edit or Write, open in your default application. A plain click without the modifier doesn’t open links, matching native terminal behavior. + * **Hold`Cmd` on macOS, or `Ctrl` on Linux and Windows, and click a URL or file path** to open it. Plain `http://` and `https://` URLs open in your browser. When Claude Code handles the click, file paths in tool output, like the ones printed after an Edit or Write, open in your file manager with the file selected. A plain click without the modifier doesn’t open links, matching native terminal behavior. + * On Linux and WSL, clicking a file path needs a file manager that provides the `org.freedesktop.FileManager1` D-Bus interface. Without one, nothing opens. * Claude Code renders a network (UNC) path, such as `\\server\share\file.ts`, as plain text with no link, because opening a network path can send your Windows credentials to the host it names. * Some macOS terminals forward `Cmd`+click to the running app instead of opening the link themselves, and the terminal mouse protocol has no way to encode the `Cmd` key, so Claude Code receives a plain click. In Ghostty, and in Warp on macOS, Claude Code detects this and lets a plain click on a link open it, and holding `Cmd` still works. * In the VS Code integrated terminal and similar xterm.js-based terminals, Claude Code defers to the terminal’s own link handler, which uses the same gesture. @@ -106,7 +107,7 @@ * **Any other key, including plain arrow keys,`Enter`, and typed characters**: Claude Code clears the selection. * **A key bound to[`selection:clear`](</docs/en/keybindings#scroll-actions>)**: Claude Code clears the selection, even when the key is `Esc` or another key that otherwise keeps it. The action has no default binding. -In transcript mode, the navigation and search keys listed there also keep the selection. +In transcript mode, the navigation keys listed there also keep the selection. ## @@ -149,7 +150,7 @@ export CLAUDE_CODE_SCROLL_SPEED=3 -A value of `3` matches the default in `vim` and similar applications. The setting accepts any positive value up to 20, including fractional values below 1 such as `0.25` to slow accelerated trackpad and wheel scrolling in terminals that already amplify wheel events. To adjust scroll speed interactively, run `/scroll-speed`. The dialog shows a ruler you can scroll while it is open so you can feel the change immediately. Press `←` and `→` to adjust the speed, `r` to reset to the auto-detected default, and `Enter` to save. The dialog steps in whole numbers up to 10, and on terminals that support finer control it also offers quarter steps down to 0.25. The command writes the same value the `CLAUDE_CODE_SCROLL_SPEED` environment variable sets, persisted to `~/.claude/settings.json`. The dialog’s maximum is 10: if you set a higher value through the environment variable, the dialog shows 10, and saving from the dialog persists 10. The command isn’t available in the JetBrains IDE terminal. Separately from the base speed, Claude Code accelerates the scroll rate when you spin the wheel quickly, so a fast spin covers more distance than the same number of slow notches. To turn acceleration off and keep a constant rate per notch, set `wheelScrollAccelerationEnabled` to `false` in [`settings.json`](</docs/en/settings-reference#all-settings>). This setting requires Claude Code v2.1.174 or later. +A value of `3` matches the default in `vim` and similar applications. The setting accepts any positive value up to 20, including fractional values below 1 such as `0.25` to slow accelerated trackpad and wheel scrolling in terminals that already amplify wheel events. To adjust scroll speed interactively, run `/scroll-speed`. Scroll while the dialog is open to feel the change immediately. Press `←` and `→` to adjust the speed, `r` to reset to the auto-detected default, and `Enter` to save. The dialog steps in whole numbers up to 10, and on terminals that support finer control it also offers quarter steps down to 0.25. The command writes the same value the `CLAUDE_CODE_SCROLL_SPEED` environment variable sets, persisted to `~/.claude/settings.json`. The dialog’s maximum is 10: if you set a higher value through the environment variable, the dialog shows 10, and saving from the dialog persists 10. The command isn’t available in the JetBrains IDE terminal. Separately from the base speed, Claude Code accelerates the scroll rate when you spin the wheel quickly, so a fast spin covers more distance than the same number of slow notches. To turn acceleration off and keep a constant rate per notch, set `wheelScrollAccelerationEnabled` to `false` in [`settings.json`](</docs/en/settings-reference#all-settings>). This setting requires Claude Code v2.1.174 or later. ###
modified Claude Code GitHub Actions View current →
--- a/github-actions.md +++ b/github-actions.md @@ -308,7 +308,7 @@ Never commit API keys or OAuth tokens directly to your repository. Always store them as GitHub Secrets and reference them in workflows, for example `anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}`. -Grant the workflow only the permissions it needs, and review Claude’s changes before merging. For comprehensive security guidance including permissions and authentication, see the [Claude Code Action security documentation](<https://github.com/anthropics/claude-code-action/blob/main/docs/security.md>). +Grant the workflow only the permissions it needs, and review Claude’s changes before merging. For security guidance including permissions and authentication, see the [Claude Code Action security documentation](<https://github.com/anthropics/claude-code-action/blob/main/docs/security.md>). ###
modified Glossary View current →
--- a/glossary.md +++ b/glossary.md @@ -511,7 +511,7 @@ Verification loop -How a session knows the work is actually done rather than just plausible. You give Claude a check it can run, such as a test suite, a build, or a screenshot comparison, and Claude iterates until the check passes instead of stopping after one attempt. A verification loop is the prerequisite for [`/goal`](</docs/en/goal>), unattended runs, and [dynamic workflows](</docs/en/workflows>): without one, the only thing deciding the agent is finished is the agent itself. Learn more: [Give Claude a way to verify its work](</docs/en/best-practices#give-claude-a-way-to-verify-its-work>) +How a session knows the work is actually done instead of accepting a result that looks plausible. You give Claude a check it can run, such as a test suite, a build, or a screenshot comparison, and Claude iterates until the check passes instead of stopping after one attempt. A verification loop is the prerequisite for [`/goal`](</docs/en/goal>), unattended runs, and [dynamic workflows](</docs/en/workflows>): without one, the only thing deciding the agent is finished is the agent itself. Learn more: [Give Claude a way to verify its work](</docs/en/best-practices#give-claude-a-way-to-verify-its-work>) ##
modified Run Claude Code programmatically View current →
--- a/headless.md +++ b/headless.md @@ -166,7 +166,7 @@ claude -p "Explain recursion" --output-format stream-json --verbose --include-partial-messages -The last line of the stream is a `result` message with the final response text, cost, and session metadata. If your consumer reads the stream slowly, Claude Code waits for the queued output to drain before exiting, scaling the wait with how much is still queued, capped at 30 seconds. Before v2.1.214 the exit wait was capped at about two seconds, which could cut off the end of a large response. The following example uses [jq](<https://jqlang.org/>) to filter for text deltas and display just the streaming text. The `-r` flag outputs raw strings (no quotes) and `-j` joins without newlines so tokens stream continuously: +The last line of the stream is a `result` message with the final response text, cost, and session metadata. If your consumer reads the stream slowly, Claude Code waits for the queued output to drain before exiting, scaling the wait with how much is still queued, capped at 30 seconds. Before v2.1.214 the exit wait was capped at about two seconds, which could cut off the end of a large response. The following example uses [jq](<https://jqlang.org/>) to filter for text deltas and display only the streaming text. The `-r` flag outputs raw strings (no quotes) and `-j` joins without newlines so tokens stream continuously: claude -p "Write a poem" --output-format stream-json --verbose --include-partial-messages | \ jq -rj 'select(.type == "stream_event" and .event.delta.type? == "text_delta") | .event.delta.text'
added Set up Claude Code (local mode) for a HIPAA-ready organization View current →
Show diff (311 lines)
--- a/hipaa-setup.md +++ b/hipaa-setup.md @@ -0,0 +1,308 @@ +The HIPAA configuration is an organization setting on Claude Enterprise plans, for organizations that handle protected health information (PHI) and have a [Business Associate Agreement (BAA)](<https://support.claude.com/en/articles/8114513-business-associate-agreements-baa-for-commercial-customers>) with Anthropic. It applies to Claude Code (local mode) and Cowork (local mode), and it restricts features in both products. + +“(local mode)” means a local session, not a [cloud session](</docs/en/claude-code-on-the-web>). Local sessions run in one of these places: + + * Claude Code in the terminal + * Claude Code in the Code tab of Claude Desktop + * Cowork in Claude Desktop + +The Claude Code extensions for VS Code and JetBrains aren’t part of (local mode). They keep working with the HIPAA configuration applied, but your BAA doesn’t cover them. See the [Implementation Guide](<https://trust.anthropic.com/resources?s=l1wrssd9hsbi4gak0tp5a6&name=%5Banthropic%5D-hipaa-ready-offering-implementation-guide>) for the full list of Eligible Services. + +This page is for the IT or security administrator who prepares developers’ computers. The Primary Owner of your Claude organization applies the configuration itself. [Use Claude Code (local mode) and Cowork (local mode) on a HIPAA-ready Enterprise plan](<https://support.claude.com/en/articles/17318731>) explains what your BAA includes, how the configuration is applied, and how to schedule the date it’s applied. If members of your organization also use Cowork, follow [Set up Cowork (local mode) for a HIPAA-ready organization](<https://claude.com/docs/cowork/hipaa-setup>) as well. It covers the Claude Desktop policy and Cowork’s local data. The table shows when to do each part of the setup: + +When| What to do +---|--- +Before the configuration is applied| Prepare computers: check how developers connect, update the apps, allow network access, and deploy managed settings +After it’s applied| The Code tab is off until an Owner turns it back on. Confirm the configuration on a computer +Ongoing| Manage local session data + +## + +​ + +Prepare computers before the HIPAA configuration is applied + +We recommend you start with the tasks in this section and complete them before the configuration is applied. + +### + +​ + +Check how developers sign in and connect + +The HIPAA configuration takes effect only in sessions where a developer signs in with a Claude Enterprise account and Claude Code connects directly to the Claude API. On any other connection, developers can keep using Claude Code, but it doesn’t apply the HIPAA configuration. The table shows which connections are eligible. To find out whether your BAA covers a session in a “No” row, see [Use Claude Code (local mode) and Cowork (local mode) on a HIPAA-ready Enterprise plan](<https://support.claude.com/en/articles/17318731>). + +How Claude Code connects| Eligible for the HIPAA configuration +---|--- +A Claude Enterprise account, connecting directly to the Claude API| Yes +Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, Claude Platform on AWS, or a [Claude apps gateway](</docs/en/claude-apps-gateway>)| No +An [LLM gateway](</docs/en/llm-gateway>) or any other custom `ANTHROPIC_BASE_URL`| No +`ANTHROPIC_AUTH_TOKEN` or `apiKeyHelper`, on a computer with no Claude Enterprise sign-in| No +A Claude Console API key or [federation credentials](</docs/en/authentication#anthropic-profiles-and-federation-credentials>)| No. These sessions belong to a Claude Console organization, which has its own agreement and settings + +#### + +​ + +Check how a computer connects + +Open a terminal on the computer, run `claude`, and enter `/status` at the prompt. The **Status** tab shows these lines: + +Line| When it appears +---|--- +`Login method` and `Organization`| The session is signed in with a claude.ai account. For a Claude Enterprise account, `Login method` reads `Claude Enterprise account` and `Organization` shows your organization +`API provider`| Only when the session uses a cloud provider or a Claude apps gateway +`Anthropic base URL`| Only when `ANTHROPIC_BASE_URL` is set + +If a computer uses a connection that isn’t eligible for the HIPAA configuration, you can use managed settings to block cloud providers, gateways, and credentials set with `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper`. + +### + +​ + +Update Claude Code and Claude Desktop + +The HIPAA configuration requires Claude Code v2.1.285 or later and Claude Desktop v2.19675.0 or later. If your organization uses both the terminal and the [Claude Desktop app](</docs/en/desktop>), update both. To read the installed Claude Code version, run this command in a terminal. It’s the same in Bash, Zsh, and PowerShell: + + claude --version + +A supported installation prints `2.1.285 (Claude Code)` or a higher number. To read the installed Claude Desktop version, see [Check your version](</docs/en/desktop#check-your-version>). + +#### + +​ + +What developers see on an older version + +For organizations with the HIPAA configuration, Anthropic’s servers reject requests from versions older than the minimum version. Anthropic raises the minimum version over time, and there’s nothing for you to configure. + +App| What a developer sees on an older version +---|--- +Claude Code| Each request fails with an [`API Error`](</docs/en/errors#claude-code-does-not-support-this-model>) that says the version is older than the minimum version your organization’s policy requires +Claude Desktop| An **Update required** dialog that tells the developer to update Claude Desktop to continue using the **Code** tab + +To keep developers on a supported version, [keep Claude Code updated](</docs/en/setup#update-claude-code>). For Claude Desktop, see [Update Claude Desktop](<https://claude.com/docs/cowork/hipaa-setup#update-claude-desktop>). + +### + +​ + +Allow network access + +Allow the hosts in this table through your proxy and firewall, over HTTPS on port 443. Allow each whole host, not individual paths. + +Host| Needed for +---|--- +`api.anthropic.com`| Claude API requests, telemetry, and the organization policy that tells Claude Code the HIPAA configuration is on +`claude.ai`, `claude.com`, `platform.claude.com`| Sign-in and token refresh +`downloads.claude.ai`| The native installer and its updates +`mcp-proxy.anthropic.com`| [Connectors from claude.ai](</docs/en/mcp#use-mcp-servers-from-claude-ai>) + +This table lists the hosts a native install of Claude Code needs in the terminal to sign in, run, and update. These pages list the rest: + + * **Other install methods and optional features** : [Network access requirements](</docs/en/network-config#network-access-requirements>) lists the hosts that npm and Homebrew installs check for updates, and the hosts for features such as plugin installs + * **The Code tab and Cowork** : [Desktop network access requirements](</docs/en/desktop#network-access-requirements>) lists the additional hosts Claude Desktop needs + * **Proxies that inspect TLS** : [Custom CA certificates](</docs/en/network-config#custom-ca-certificates>) shows how to trust your proxy’s certificate + +Sessions that go through a corporate HTTPS proxy are still eligible for the HIPAA configuration, as long as the proxy can reach the hosts in the table. Claude Code learns that your organization has the HIPAA configuration by fetching your organization’s policy from `api.anthropic.com`, when it starts and again about every hour while the session is in use. The policy is a record of your organization’s HIPAA status and the feature restrictions that follow from it. To check whether one computer has fetched the policy, see Confirm the configuration on a computer. + +### + +​ + +Deploy managed settings + +You can use [managed settings](</docs/en/managed-settings>) to direct developers to sign in with a Claude Enterprise account, to block cloud providers and gateways, and to set how many days every computer keeps local session data. The settings apply whether or not the HIPAA configuration is in effect. The settings in this section are a sample that we recommend as a starting point. Your organization is responsible for deciding what its own environment needs and for confirming that its configuration meets those needs. The following sample sets four keys that you could add to the [managed settings](</docs/en/managed-settings#choose-a-delivery-mechanism>) your organization deploys: + + { + "forceLoginMethod": "claudeai", + "forceLoginOrgUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "allowedProviders": ["anthropic"], + "cleanupPeriodDays": 30 + } + +#### + +​ + +What each key does + +The table shows what to set each key to and what Claude Code enforces for it. + +Key| Set it to| What Claude Code enforces +---|---|--- +[`forceLoginMethod`](</docs/en/settings-reference#forceloginmethod>)| `"claudeai"`| Claude Code directs developers to claude.ai sign-in instead of Claude Console +[`forceLoginOrgUUID`](</docs/en/settings-reference#forceloginorguuid>)| Your organization ID, which an [Owner](</docs/en/server-managed-settings#access-control>) can copy from [claude.ai admin settings](<https://claude.ai/admin-settings/organization>)| Claude Code exits at startup when the claude.ai sign-in belongs to another organization +[`allowedProviders`](</docs/en/settings-reference#allowedproviders>)| `["anthropic"]`| Claude Code refuses to start on a cloud provider or a gateway +[`cleanupPeriodDays`](</docs/en/settings-reference#cleanupperioddays>)| The number of days your records policy lets a computer keep session data| Every computer deletes old session data after the same number of days + +Check the `forceLoginOrgUUID` value before you deploy it. If it doesn’t match your organization ID, Claude Code exits at startup for every developer who signs in with a claude.ai account. + +The HIPAA configuration doesn’t limit `cleanupPeriodDays`, so a developer can raise it in their own settings. When you set it in managed settings, Claude Code ignores the developer’s value. With `forceLoginMethod` or `forceLoginOrgUUID` set, Claude Code also refuses sessions that authenticate with `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper`. + +#### + +​ + +Confirm the settings loaded + +On a computer that has the settings, run `claude`, sign in with a Claude Enterprise account, and enter `/status`. The `Setting sources` line lists `Enterprise managed settings` followed by the source in parentheses, such as `(file)`, and the `Allowed providers` line reads `Anthropic API (managed allowedProviders)`. If `Setting sources` doesn’t list it, or the `Allowed providers` line is missing, see [Check that a policy is in force](</docs/en/managed-settings#check-that-a-policy-is-in-force>). + +#### + +​ + +Sessions the managed settings keys don’t block + +Even with these keys deployed, some sessions can still run without the HIPAA configuration: + + * **Claude Console sign-ins and federation credentials** : `forceLoginOrgUUID` checks only claude.ai sign-ins. [Restrict login to your organization](</docs/en/authentication#restrict-login-to-your-organization>) lists what Claude Code checks for each sign-in path and credential. + * **Server-managed settings** : if your organization also uses [server-managed settings](</docs/en/server-managed-settings>), have an Owner add the same keys there. [How Claude Code combines managed sources](</docs/en/managed-settings#how-claude-code-combines-managed-sources>) explains which source applies. + * **Versions older than v2.1.285** : these versions ignore `allowedProviders`, so they can still start on a cloud provider or a gateway. To make v2.1.163 through v2.1.284 refuse to start, you can add [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>) set to `"2.1.285"` to the same managed settings as the sample keys. Versions before v2.1.163 ignore `requiredMinimumVersion` as well as `allowedProviders`, so update those computers. + +To find out whether your BAA covers a session that runs without the HIPAA configuration, see [Use Claude Code (local mode) and Cowork (local mode) on a HIPAA-ready Enterprise plan](<https://support.claude.com/en/articles/17318731>). + +## + +​ + +Confirm the configuration on a computer + +Run this check on one managed computer after the configuration is applied to your organization. + +1 + +Restart Claude Code + +Quit any running session, open a terminal, and run `claude`. A running session that’s in use picks up the configuration within about an hour without a restart. When you restart, Claude Code fetches it right away. + +2 + +Check the startup notice + +Confirm that Claude Code prints `Per your organization's policy, some features are limited · /status for details` when it starts. + +3 + +Check the footer + +Confirm that a `HIPAA configured` tag appears at the right of the footer, below the prompt. Before v2.1.286, the tag read `HIPAA`. + +4 + +Run /status + +Enter `/status` at the prompt. Confirm that the **Status** tab lists `HIPAA` on the `Organization configuration` line. + +5 + +Check Claude Desktop + +Applying the HIPAA configuration turns the Code tab off for your organization. If your organization uses it, ask an Owner to go to [**Organization settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>) and turn on the **Desktop** toggle. For Cowork, see [Confirm the HIPAA configuration in Claude Desktop](<https://claude.com/docs/cowork/hipaa-setup#confirm-the-hipaa-configuration-in-claude-desktop>).Reload Claude Desktop or sign in again. Confirm that the title bar shows a **HIPAA configured** label. On a Mac, open the sidebar to see it. + +If `HIPAA` is missing from `/status`, check these causes in order: + + 1. **The wrong account or connection** : confirm that `/status` shows your organization on the `Organization` line, and shows no `API provider` or `Anthropic base URL` line. Check how developers sign in and connect lists the connections that aren’t eligible for the configuration. + 2. **A blocked policy fetch** : look for an `Organization policy` line in `/status`, which gives the cause. Outside a session, run `claude doctor` and read the same line, which says where Claude Code loaded the policy from or why the policy didn’t load. Allow `api.anthropic.com` through your proxy, then restart Claude Code. + 3. **The configuration isn’t applied yet** : ask the Primary Owner whether they have applied the configuration. + +## + +​ + +What developers see in Claude Code + +With the HIPAA configuration applied, some Claude Code features are off or behave differently in the terminal. The table lists the changes developers are most likely to ask you about. The [HIPAA feature availability table](<https://support.claude.com/en/articles/8114513-business-associate-agreements-baa-for-commercial-customers>) lists every Claude Code and Cowork feature, including the ones an Owner can turn back on. + +What a developer notices| Why +---|--- +The WebFetch tool is unavailable| WebFetch is off. Web search still works +`--cloud`, `/teleport`, and [Remote Control](</docs/en/remote-control>) are refused| [Cloud sessions](</docs/en/claude-code-on-the-web>) and Remote Control are off +`/feedback` and `/bug` are unavailable| Feedback submission is off +Claude can’t publish an [artifact](</docs/en/artifacts>)| Artifact publishing is off +An MCP server or hook that reads `ANTHROPIC_API_KEY` stops authenticating| Claude Code removes Anthropic credentials from the processes it starts +Restrictions remain after `/login` to a different organization| The HIPAA status lasts until Claude Code restarts + +### + +​ + +Anthropic credentials in commands, hooks, and MCP servers + +With the HIPAA configuration applied, Claude Code removes the credentials it uses to reach Anthropic, such as `ANTHROPIC_API_KEY` and `ANTHROPIC_AUTH_TOKEN`, from the environment of the shell commands, hooks, and MCP servers it starts. The HIPAA configuration doesn’t remove cloud provider or GitHub credentials, so a command that pushes to GitHub or calls another service still works with that developer’s access. Your BAA with Anthropic doesn’t cover the data it sends there. See the [Implementation Guide](<https://trust.anthropic.com/resources?s=l1wrssd9hsbi4gak0tp5a6&name=%5Banthropic%5D-hipaa-ready-offering-implementation-guide>) for the full list of Eligible Services. To limit which commands and hosts Claude can use, see [permission rules](</docs/en/permissions>) and the [sandbox](</docs/en/sandboxing>). + +## + +​ + +Manage local session data + +Claude Code (local mode) and Cowork (local mode) store session data on each developer’s computer. Securing and deleting that data is your organization’s responsibility. + +### + +​ + +Claude Code data + +[Application data](</docs/en/claude-directory#application-data>) lists what Claude Code (local mode) stores on a computer, what its retention sweep deletes after `cleanupPeriodDays`, and what stays until someone deletes it. The same page states what differs in an organization with the HIPAA configuration applied. The retention sweep runs only when someone starts Claude Code, so a computer where nobody starts it keeps its data. + +### + +​ + +Code tab data + +The Code tab stores data in these places: + + * **Transcripts** : in `~/.claude/projects/`, alongside terminal transcripts. [Cleaned up automatically](</docs/en/claude-directory#cleaned-up-automatically>) states when the retention sweep deletes them. + * **The Claude Desktop data folder** : `~/Library/Application Support/Claude` on macOS. On Windows, `%APPDATA%\Claude`, or `%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude` for the installer downloaded from Anthropic, so check both. With the HIPAA configuration applied, Claude Desktop deletes local Code tab sessions that have been inactive for longer than `cleanupPeriodDays`, including starred ones. It deletes them only while it’s running. Claude Desktop handles a deleted session’s worktree in one of these ways: + * **No uncommitted changes, the session isn’t starred or pinned, and no other session is using the worktree** : Claude Desktop removes the worktree + * **Any other case** : the worktree stays on the computer + +On Windows, `~` means `%USERPROFILE%`. + +### + +​ + +Cowork data + +[Manage Cowork data on each computer](<https://claude.com/docs/cowork/hipaa-setup#manage-cowork-data-on-each-computer>) lists where Cowork (local mode) stores data and what Claude Desktop deletes. + +### + +​ + +Delete session data right away + +If your organization needs a developer’s session data removed before the retention sweep deletes it, you can remove most of it with one command. Sign in to the computer as that developer, open any shell, and run the command for the installed Claude Code version. On Claude Code v2.1.288 or later, run `claude purge`: + + claude purge --all --yes + +On v2.1.126 through v2.1.287, run `claude project purge`, which takes the same flags: + + claude project purge --all --yes + +Either command deletes every project’s transcripts and auto memory, the entries in `tasks/`, `debug/`, and `file-history/`, `history.jsonl`, and the project entries in `~/.claude.json`. Without `--yes`, it prints the plan and asks first. The purge leaves other paths that can hold session content, such as pasted text in `paste-cache/`. [Clear local data](</docs/en/claude-directory#clear-local-data>) lists the paths you can delete by hand. To clear a computer completely, for example before you reassign it, wipe it. + +### + +​ + +Offboard a developer + +Removing a developer’s seat or account deletes nothing on their computer, and `/logout` doesn’t delete session data either. To remove all of it, you can wipe the computer with your device management tool. + +## + +​ + +Related resources + + * [Set up Cowork (local mode) for a HIPAA-ready organization](<https://claude.com/docs/cowork/hipaa-setup>) + * [Deploy managed settings](</docs/en/managed-settings>) + * [Enterprise network configuration](</docs/en/network-config>) + * [Zero data retention](</docs/en/zero-data-retention>) + * [Legal and compliance](</docs/en/legal-and-compliance>) + * [Data usage](</docs/en/data-usage>)
modified Install and manage plugins View current →
--- a/install.md +++ b/install.md @@ -67,7 +67,7 @@ * **Active now** : `Plugin is now active.` No reload is needed. * **Active, but a server needs setup** : `Plugin is now active.` is followed by `Its bundled MCP server needs configuration before it can start`. The plugin’s [bundled MCP server](</docs/en/plugins/components#include-a-packaged-mcpb-server>) can’t start until you set its options. Select the plugin on the **Installed** tab in `/plugin` and choose **Configure** to set the server’s options. - * **Reload needed** : `Run /reload-plugins to activate.` The panel closes and Claude Code runs that reload for you. If the reload would [invalidate the prompt cache](</docs/en/prompt-caching#enabling-or-disabling-a-plugin>), it warns and leaves the plugin pending instead. Run `/reload-plugins --force` to activate it anyway, which costs one uncached request. + * **Reload needed** : `Run /reload-plugins to apply.` The panel closes and Claude Code runs that reload for you. If the reload would [invalidate the prompt cache](</docs/en/prompt-caching#enabling-or-disabling-a-plugin>), it warns and leaves the plugin pending instead. Run `/reload-plugins --force` to activate it anyway, which costs one uncached request. * **Load failed** : `The plugin couldn't be loaded`. Open the **Errors** tab in `/plugin` for the reason, then see [After install: plugin not working](</docs/en/plugins/troubleshooting#plugin-installed-but-not-working>). 5
modified Interactive mode View current →
--- a/interactive-mode.md +++ b/interactive-mode.md @@ -209,7 +209,7 @@ `$`| End of line `^`| First non-blank character `gg`| Beginning of input -`G`| End of input +`G`| Beginning of last line `f{char}`| Jump to next occurrence of character `F{char}`| Jump to previous occurrence of character `t{char}`| Jump to just before next occurrence of character @@ -355,7 +355,7 @@ * Background tasks are automatically cleaned up when Claude Code exits. On macOS and Linux, when you stop a background task from [`/tasks`](</docs/en/commands>) or Claude Code stops it at exit, processes that detached from the task’s shell, such as ones started under `setsid` or `timeout`, stop too * If you background the session instead of exiting it, your background tasks keep running in the background session. See [background a running session](</docs/en/agent-view#from-inside-a-session>) * Background tasks are automatically terminated if output exceeds 5GB, with a note in stderr explaining why - * On macOS and Linux, Claude Code stops your running background tasks when the operating system reports critical memory pressure, provided the session has been idle for at least 30 minutes and no turn or subagent is running. Requires Claude Code v2.1.193 or later + * On macOS and Linux, Claude Code stops your running background tasks when the operating system reports critical memory pressure, provided the session has been idle for at least 30 minutes and no turn or subagent is running * The [debug log](</docs/en/debug-your-config>) says why tasks were stopped, or why a pressure event left them running * Set [`CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP`](</docs/en/env-vars>) to `1` to turn off memory-pressure stops * Background commands in a local session you work in from a terminal, the desktop app, or the VS Code extension have no time limit. In a session that runs unattended, such as a `-p` run or a cloud session, Claude Code stops a background command at its [time limit](</docs/en/tools-reference#time-limit-for-background-commands>) @@ -388,11 +388,11 @@ * Supports the same `Ctrl+B` backgrounding for long-running commands * Doesn’t require Claude to interpret or approve the command * Supports history-based autocomplete: type a partial command and press `Tab` to complete from previous `!` commands in the current project - * Supports live file path autocomplete as of v2.1.193 on all platforms: type a token containing a forward slash, such as `./src/` or `~/`, to see a dropdown of matching files and directories, then press `Tab` to accept. Use forward slashes on Windows too; the dropdown is triggered by `/`, not `\` + * Supports live file path autocomplete: type a token containing a forward slash, such as `./src/` or `~/`, to see a dropdown of matching files and directories, then press `Tab` to accept. Use forward slashes on Windows too; the dropdown is triggered by `/`, not `\` * Exit with `Escape`, `Backspace`, or `Ctrl+U` on an empty prompt * Pasting text that starts with `!` into an empty prompt enters shell mode automatically, matching typed `!` behavior -Unless your session is one of those listed under [strict sandbox mode](</docs/en/sandboxing#turn-off-the-retry-with-strict-sandbox-mode>), commands you type in shell mode run outside the [sandbox](</docs/en/sandboxing>) even when you’ve enabled sandboxing, because the sandbox applies to the commands Claude runs. Claude responds to the command output automatically once it lands in the transcript, so you can run `! npm test` and get an explanation of the failures without a second prompt. The response costs the same as sending a normal prompt. To restore the earlier behavior where the output is added to context without a response, set [`respondToBashCommands`](</docs/en/settings-reference#respondtobashcommands>) to `false` in `settings.json`. Before v2.1.186, shell mode always added output to context without a response. +Unless your session is one of those listed under [strict sandbox mode](</docs/en/sandboxing#turn-off-the-retry-with-strict-sandbox-mode>), commands you type in shell mode run outside the [sandbox](</docs/en/sandboxing>) even when you’ve enabled sandboxing, because the sandbox applies to the commands Claude runs. Claude responds to the command output automatically once it lands in the transcript, so you can run `! npm test` and get an explanation of the failures without a second prompt. The response costs the same as sending a normal prompt. To add the output to context without a response instead, set [`respondToBashCommands`](</docs/en/settings-reference#respondtobashcommands>) to `false` in `settings.json`. ##
modified Customize keyboard shortcuts View current →
--- a/keybindings.md +++ b/keybindings.md @@ -165,10 +165,10 @@ `confirm:no`| Escape| Decline action `confirm:previous`| Up| Previous option `confirm:next`| Down| Next option -`confirm:nextField`| Tab| Next field -`confirm:previousField`| (unbound)| Previous field +`confirm:nextField`| Tab| In the `/fast` dialog, turn fast mode on or off +`confirm:previousField`| (unbound)| Claude Code doesn’t respond to this action, and a `keybindings.json` that names it remains valid `confirm:toggle`| Space| Toggle selection -`confirm:cycleMode`| Shift+Tab*| Cycle permission modes. On a file permission prompt, closes an open [comment field](</docs/en/permissions#add-a-comment-when-you-answer-a-permission-prompt>); with no field open, selects the option that allows the action for the rest of the session, when the prompt offers that option +`confirm:cycleMode`| Shift+Tab*| On a file permission prompt, closes an open [comment field](</docs/en/permissions#add-a-comment-when-you-answer-a-permission-prompt>); with no field open, selects the option that allows the action for the rest of the session, when the prompt offers that option *On Windows without VT mode (Node <24.2.0/<22.17.0, Bun <1.2.23), defaults to Meta+M. Before v2.1.257, a `confirm:toggleExplanation` action, bound to `Ctrl+E` by default, showed a model-generated explanation of the command on Bash and PowerShell permission prompts. Dialogs use `confirm:yes` and `confirm:no` to accept and cancel even when they don’t ask a yes-or-no question. If you bind a bare letter such as `y` or `n` in this context, the letter also acts on dialogs that never show it as a key. A dialog that shows `y` and `n` as its keys reads those letters itself and needs no binding. In most dialogs, pressing `Ctrl+C` or `Ctrl+D` twice closes the dialog instead of exiting Claude Code. The hint after the first press says whether the second press closes the dialog or exits. Both keys are reserved and can’t be rebound. This example binds `y` to `confirm:yes` and `n` to `confirm:no`: @@ -196,7 +196,7 @@ Action| Default| Description ---|---|--- -`permission:toggleDebug`| (unbound)| Toggle permission debug info. The previous default of Ctrl+D was removed in v2.1.146 because it shadowed `app:exit` +`permission:toggleDebug`| (unbound)| Claude Code doesn’t respond to this action, and a `keybindings.json` that names it remains valid ### @@ -241,7 +241,7 @@ Action| Default| Description ---|---|--- -`task:background`| Ctrl+B, Ctrl+X Ctrl+B| Background current task. The Ctrl+X Ctrl+B chord avoids the tmux prefix conflict +`task:background`| Ctrl+B, Ctrl+X Ctrl+B| Background current task ###
modified Set up Claude Code in a monorepo or large codebase View current →
--- a/large-codebases.md +++ b/large-codebases.md @@ -62,7 +62,7 @@ Start from| File access| CLAUDE.md loaded at launch| Use when ---|---|---|--- -Repository root| Every file| Root only; subdirectory files load on demand when Claude reads there| Tasks span multiple packages or subsystems +Repository root| Every file| Root only; subdirectory files load on demand| Tasks span multiple packages or subsystems A subdirectory| That subtree only, until you grant more| That directory’s plus every ancestor’s| Work is scoped to one package or subsystem Project settings in `.claude/settings.json` aren’t inherited from parent directories the way CLAUDE.md files are. For which directory’s `.claude/settings.json` a session reads, see [where Claude Code looks for each file](</docs/en/settings#where-claude-code-looks-for-each-file>). Each section below states whether its settings file belongs at the repository root or in the subdirectory you start from, and whether it is committed or kept local. @@ -73,7 +73,7 @@ Layer CLAUDE.md files by directory -In a large codebase, a single CLAUDE.md at the repository root tends to either grow to cover every subsystem’s conventions, costing context on instructions unrelated to the current task, or stay too generic to be useful. Splitting instructions across per-directory files means Claude loads repository-wide rules plus only the conventions for the code you’re working in. Claude Code loads every [CLAUDE.md](</docs/en/memory>) file from your working directory and every parent directory at launch, then loads each subdirectory’s file on demand when it reads files there. A root file sets repository-wide rules and each subdirectory adds its own. A common split is two levels: +In a large codebase, a single CLAUDE.md at the repository root tends to either grow to cover every subsystem’s conventions, costing context on instructions unrelated to the current task, or stay too generic to be useful. Splitting instructions across per-directory files means Claude loads repository-wide rules plus only the conventions for the code you’re working in. Claude Code loads every [CLAUDE.md](</docs/en/memory>) file from your working directory and every parent directory at launch, then loads each subdirectory’s file [on demand](</docs/en/memory#how-claude-md-files-load>). A root file sets repository-wide rules and each subdirectory adds its own. A common split is two levels: * **Root`CLAUDE.md`**: instructions that apply everywhere, such as coding standards and commit conventions * **Per-subdirectory`CLAUDE.md`**: conventions specific to that area’s stack. In a monorepo that’s one per package. In a large single tree it’s one per subsystem such as `src/db/` or `src/api/` @@ -112,7 +112,7 @@ Approach| File location| Loads when| Use when ---|---|---|--- -Per-directory `CLAUDE.md`| Inside the directory, alongside its code| At launch when started from that directory, or on demand when Claude reads a file there| Directory owners maintain their own conventions; instructions are versioned with the code +Per-directory `CLAUDE.md`| Inside the directory, alongside its code| At launch when started from that directory, or on demand| Directory owners maintain their own conventions; instructions are versioned with the code Path-scoped rule in `.claude/rules/`| Central `.claude/` at the repo root| When Claude works with a file matching the rule’s `paths:` glob| You want all conventions in one place, or the same rule applies to many scattered paths For a comparison that also covers skills, see [Compare similar features](</docs/en/features-overview#compare-similar-features>). @@ -123,7 +123,7 @@ Exclude irrelevant CLAUDE.md files -When you start Claude from the repository root, each subdirectory’s CLAUDE.md loads as soon as Claude reads a file in that directory. The `claudeMdExcludes` setting skips specific files by path or glob pattern so they never load. Use this for directories you never work in, such as other teams’ packages, legacy code, or vendored subtrees. The exclusion list is static, not a per-task switch. To focus on one package today and another tomorrow, start Claude from that package’s directory instead of editing exclusions. If you only want these exclusions for yourself, put the setting in `.claude/settings.local.json`. Claude Code adds that file to your global gitignore when it saves a setting there. Since you are creating it by hand here, add it to your gitignore yourself. Patterns use glob syntax matched against absolute file paths, so start relative-style patterns with `**/` to match anywhere in the tree. The example below excludes a package owned by another team: +When you start Claude from the repository root, each subdirectory’s CLAUDE.md can [load on demand](</docs/en/memory#how-claude-md-files-load>) during the session. The `claudeMdExcludes` setting skips specific files by path or glob pattern so they never load. Use this for directories you never work in, such as other teams’ packages, legacy code, or vendored subtrees. The exclusion list is static, not a per-task switch. To focus on one package today and another tomorrow, start Claude from that package’s directory instead of editing exclusions. If you only want these exclusions for yourself, put the setting in `.claude/settings.local.json`. Claude Code adds that file to your global gitignore when it saves a setting there. Since you are creating it by hand here, add it to your gitignore yourself. Patterns use glob syntax matched against absolute file paths, so start relative-style patterns with `**/` to match anywhere in the tree. The example below excludes a package owned by another team: .claude/settings.local.json @@ -252,7 +252,7 @@ Grant access across packages or repositories -This section applies when you start Claude from a subdirectory, or when a task spans multiple checkouts. If you start from the repository root in a single large tree, Claude already has access to every file and you can skip this. When you start Claude from `packages/api/`, it can read and write files within that directory. If a task requires changes across packages, such as updating a shared type that both `api` and `web` import, you need to grant access to the sibling directory. The same mechanism grants access to a separately-checked-out repository. The `additionalDirectories` setting in `.claude/settings.json` gives Claude access to directories outside the working directory. The example below grants access to two sibling packages: +This section applies when you start Claude from a subdirectory, or when a task spans multiple checkouts. If you start from the repository root in a single large tree, Claude already has access to every file and you can skip this. When you start Claude from `packages/api/`, it can read and write files within that directory. If a task requires changes across packages, such as updating a shared type that both `api` and `web` import, you need to grant access to the sibling directory. The same mechanism grants access to a separately checked-out repository. The `additionalDirectories` setting in `.claude/settings.json` gives Claude access to directories outside the working directory. The example below grants access to two sibling packages: packages/api/.claude/settings.json
modified Legal and compliance View current →
--- a/legal-and-compliance.md +++ b/legal-and-compliance.md @@ -53,7 +53,7 @@ * **HIPAA configuration** : the Claude Code CLI or the Code tab in Claude Desktop, used with a Claude for Enterprise account. The organization must have HIPAA enabled and the HIPAA configuration applied to Claude Code (local mode) and Cowork (local mode). See [Set up Claude Code (local mode) for a HIPAA-ready organization](</docs/en/hipaa-setup>). * **Zero Data Retention** : Claude Code with [Zero Data Retention (ZDR)](</docs/en/zero-data-retention>) enabled for the relevant organization. ZDR isn’t available for all organizations. -Under the HIPAA configuration, cloud sessions, Remote Control, Claude Code in the Claude mobile app, and Claude Code routed through a third-party cloud provider or a gateway aren’t covered. Review the [Implementation Guide](<https://trust.anthropic.com/resources?s=rgirr4qe8u7ek8c2igx3&name=claude-for-enterprise-hipaa-ready-offering-implementation-guide>) for a full list of Eligible Services. +Under the HIPAA configuration, cloud sessions, Remote Control, Claude Code in the Claude mobile app, and Claude Code routed through a third-party cloud provider or a gateway aren’t covered. Review the [Implementation Guide](<https://trust.anthropic.com/resources?s=l1wrssd9hsbi4gak0tp5a6&name=%5Banthropic%5D-hipaa-ready-offering-implementation-guide>) for a full list of Eligible Services. ##
modified How Claude remembers your project View current →
--- a/memory.md +++ b/memory.md @@ -65,11 +65,11 @@ **Managed policy**| • macOS: `/Library/Application Support/ClaudeCode/CLAUDE.md` • Linux and WSL: `/etc/claude-code/CLAUDE.md` • Windows: `C:\Program Files\ClaudeCode\CLAUDE.md`| Organization-wide instructions managed by IT/DevOps| Company coding standards, security policies, compliance requirements| All users in organization -**User instructions**| `~/.claude/CLAUDE.md`| Personal preferences for all projects| Code styling preferences, personal tooling shortcuts| Just you (all projects) +**User instructions**| `~/.claude/CLAUDE.md`| Personal preferences for all projects| Code styling preferences, personal tooling shortcuts| Only you (all projects) **Project instructions**| `./CLAUDE.md` or `./.claude/CLAUDE.md`. See AGENTS.md for when `./AGENTS.md` loads instead of or alongside them| Team-shared instructions for the project| Project architecture, coding standards, common workflows| Team members via source control -**Local instructions**| `./CLAUDE.local.md`| Personal project-specific preferences; add to `.gitignore`| Your sandbox URLs, preferred test data| Just you (current project) - -CLAUDE.md and CLAUDE.local.md files in the directory hierarchy above the working directory are loaded at launch. Files in subdirectories load on demand when Claude reads files in those directories. See How CLAUDE.md files load for the full resolution order. For large projects, you can break instructions into topic-specific files using project rules. Rules let you scope instructions to specific file types or subdirectories. +**Local instructions**| `./CLAUDE.local.md`| Personal project-specific preferences; add to `.gitignore`| Your sandbox URLs, preferred test data| Only you (current project) + +CLAUDE.md and CLAUDE.local.md files in the directory hierarchy above the working directory are loaded at launch. Files in subdirectories load on demand. See How CLAUDE.md files load for when they load and the full resolution order. For large projects, you can break instructions into topic-specific files using project rules. Rules let you scope instructions to specific file types or subdirectories. ### @@ -137,7 +137,7 @@ How CLAUDE.md files load -Claude Code loads `CLAUDE.md` and `CLAUDE.local.md` from your current working directory and every directory above it. Run Claude Code in `foo/bar/` and it loads instructions from `foo/bar/CLAUDE.md`, `foo/CLAUDE.md`, and any `CLAUDE.local.md` files alongside them. All discovered files are concatenated into context rather than overriding each other. Across the directory tree, content is ordered from the filesystem root down to your working directory. For the `foo/bar/` example, `foo/CLAUDE.md` appears in context before `foo/bar/CLAUDE.md`, so instructions closer to where you launched Claude are read last. Within each directory, `CLAUDE.local.md` is appended after `CLAUDE.md`, so your personal notes are the last thing Claude reads at that level. Claude also discovers `CLAUDE.md` and `CLAUDE.local.md` files in subdirectories under your current working directory. Instead of loading them at launch, they are included when Claude reads files in those subdirectories. For files inside a worktree under `.claude/worktrees/`, see [Isolate subagents with worktrees](</docs/en/worktrees#isolate-subagents-with-worktrees>). If you work in a large monorepo where other teams’ CLAUDE.md files get picked up, use `claudeMdExcludes` to skip them. For the full layout of root and per-directory CLAUDE.md files and rules, see [Monorepos and large repos](</docs/en/large-codebases>). Block-level HTML comments (`<!-- maintainer notes -->`) in CLAUDE.md files are stripped before the content is injected into Claude’s context. Use them to leave notes for human maintainers without spending context tokens on them. Comments inside code blocks are preserved. When you open a CLAUDE.md file directly with the Read tool, comments remain visible. +Claude Code loads `CLAUDE.md` and `CLAUDE.local.md` from your current working directory and every directory above it. Run Claude Code in `foo/bar/` and it loads instructions from `foo/bar/CLAUDE.md`, `foo/CLAUDE.md`, and any `CLAUDE.local.md` files alongside them. All discovered files are concatenated into context rather than overriding each other. Across the directory tree, content is ordered from the filesystem root down to your working directory. For the `foo/bar/` example, `foo/CLAUDE.md` appears in context before `foo/bar/CLAUDE.md`, so instructions closer to where you launched Claude are read last. Within each directory, `CLAUDE.local.md` is appended after `CLAUDE.md`, so your personal notes are the last thing Claude reads at that level. Claude also discovers `CLAUDE.md` and `CLAUDE.local.md` files in subdirectories under your current working directory. Instead of loading them at launch, Claude Code includes them when Claude uses the [Read](</docs/en/tools-reference#read-tool-behavior>), [Write](</docs/en/tools-reference#write-tool-behavior>), or [Edit](</docs/en/tools-reference#edit-tool-behavior>) tool on a file in those subdirectories. If Claude already used one of those tools on a subdirectory’s `CLAUDE.md` itself, that file isn’t loaded this way, because Claude Code treats it as already in the conversation. For files inside a worktree under `.claude/worktrees/`, see [Isolate subagents with worktrees](</docs/en/worktrees#isolate-subagents-with-worktrees>). If you work in a large monorepo where other teams’ CLAUDE.md files get picked up, use `claudeMdExcludes` to skip them. For the full layout of root and per-directory CLAUDE.md files and rules, see [Monorepos and large repos](</docs/en/large-codebases>). Block-level HTML comments (`<!-- maintainer notes -->`) in CLAUDE.md files are stripped before the content is injected into Claude’s context. Use them to leave notes for human maintainers without spending context tokens on them. Comments inside code blocks are preserved. When you open a CLAUDE.md file directly with the Read tool, comments remain visible. #### @@ -377,21 +377,21 @@ `claude-md-or-agents-md`| Your `CLAUDE.md` files, or your `AGENTS.md` files when you have no `CLAUDE.md` or `CLAUDE.local.md` in your working directory or above it. This is the default `claude-md-and-agents-md`| Your `CLAUDE.md` and `AGENTS.md` files together, each directory’s `CLAUDE.md` files first and its `AGENTS.md` after them. Claude Code skips an `AGENTS.md` it has already loaded, so one that your `CLAUDE.md` imports or symlinks to isn’t read twice `claude-md`| Your `CLAUDE.md` files only -`managed-only`| Only your organization’s managed `CLAUDE.md` and auto memory at launch. Your project, local, and user `CLAUDE.md` files, your `.claude/rules/` files, and every `AGENTS.md` are left out. A subdirectory’s `CLAUDE.md` and `.claude/rules/` files, and path-scoped rules, still load when Claude reads a file there - -You can also set the value in a settings file instead of `/config`. Add it under the built-in `agents-md` plugin’s ID in [`pluginConfigs`](</docs/en/settings-reference#pluginconfigs>), in `~/.claude/settings.json`, a `--settings` file, or [managed settings](</docs/en/managed-settings>). Claude Code ignores it in project and local settings files. This example has Claude read both files: +`managed-only`| Only your organization’s managed `CLAUDE.md` and auto memory at launch. Your project, local, and user `CLAUDE.md` files, your `.claude/rules/` files, and every `AGENTS.md` are left out. A subdirectory’s `CLAUDE.md` and `.claude/rules/` files, and path-scoped rules, still load on demand + +You can also set the value in a settings file instead of `/config`. Add it to [`pluginConfigs`](</docs/en/settings-reference#pluginconfigs>) under `cc-plugin-agents-md@builtin`, the ID of the built-in plugin that reads `AGENTS.md`. Claude Code reads the entry from `~/.claude/settings.json`, a `--settings` file, or [managed settings](</docs/en/managed-settings>), and ignores it in project and local settings files. This example has Claude read both files: settings.json { "pluginConfigs": { - "agents-md@builtin": { + "cc-plugin-agents-md@builtin": { "options": { "instructionFiles": "claude-md-and-agents-md" } } } } -Your change applies from the next message you send and in every new session. +Before v2.1.285, the plugin’s ID was `agents-md@builtin`, and Claude Code ignored an entry under `cc-plugin-agents-md@builtin`. If earlier versions also read your settings file, use `agents-md@builtin` there. Claude Code v2.1.285 and later reads an entry under either ID. Your change applies from the next message you send and in every new session. ### @@ -402,7 +402,7 @@ In these sessions Claude reads `CLAUDE.md` files only, and **Project instructions** doesn’t appear in the `/config` settings panel: * You’re on a Claude Code version before v2.1.277 - * You disabled the built-in `agents-md` plugin in `/plugin` + * You used `/plugin` to disable the built-in plugin that reads `AGENTS.md` * In some cases, it’s your [first session after you upgrade](</docs/en/env-vars#first-session-after-an-install-or-upgrade>) from v2.1.276 or earlier. Claude reads `AGENTS.md` from your next session on Before v2.1.281, some sessions, such as those on Amazon Bedrock or with telemetry disabled, read `CLAUDE.md` files only. On those versions, update Claude Code. To give Claude your `AGENTS.md` in any of these sessions, import it from a `CLAUDE.md`. @@ -553,7 +553,7 @@ View and edit with `/memory` -The `/memory` command lists your CLAUDE.md, CLAUDE.local.md, and other memory file locations across user and project scopes, including user and project CLAUDE.md entries for files that don’t exist yet. It also lets you toggle auto memory on or off and provides an option to open the auto memory folder. Select any file to open it in your editor; selecting one that doesn’t exist yet creates it first. To check which `CLAUDE.md` and rules files loaded into the current session, run `/context`. GUI editors such as VS Code open the file in a separate window, and you can keep using the session while it’s open. Before v2.1.216, `/memory` waited for you to close the file before responding. Terminal editors such as Vim take over the terminal until you exit. When you ask Claude to remember something, like “always use pnpm, not npm” or “remember that the API tests require a local Redis instance,” Claude saves it to auto memory. To add instructions to CLAUDE.md instead, ask Claude directly, like “add this to CLAUDE.md,” or edit the file yourself via `/memory`. +The `/memory` command lists your CLAUDE.md, CLAUDE.local.md, and other memory file locations across user and project scopes, including user and project CLAUDE.md entries for files that don’t exist yet. It also lets you toggle auto memory on or off and provides an option to open the auto memory folder. Select any file to open it in your editor; selecting one that doesn’t exist yet creates it first. To check which `CLAUDE.md` and rules files loaded at launch, run `/context`. GUI editors such as VS Code open the file in a separate window, and you can keep using the session while it’s open. Before v2.1.216, `/memory` waited for you to close the file before responding. Terminal editors such as Vim take over the terminal until you exit. When you ask Claude to remember something, like “always use pnpm, not npm” or “remember that the API tests require a local Redis instance,” Claude saves it to auto memory. To add instructions to CLAUDE.md instead, ask Claude directly, like “add this to CLAUDE.md,” or edit the file yourself via `/memory`. ## @@ -571,7 +571,8 @@ CLAUDE.md content is delivered as a user message after the system prompt, not as part of the system prompt itself. Claude reads it and tries to follow it, but there’s no guarantee of strict compliance, especially for vague or conflicting instructions. To debug: - * Run `/context` and check the list under **Memory files** to verify your CLAUDE.md and CLAUDE.local.md files loaded. If a `CLAUDE.md` file is missing there, Claude can’t see it. Use `/memory` to open and edit the files. + * Run `/context` and check the list under **Memory files** to verify the CLAUDE.md and CLAUDE.local.md files that should load at launch. If one is missing there, Claude can’t see it. Use `/memory` to open and edit the files. + * A `CLAUDE.md` in a subdirectory of your working directory doesn’t appear under **Memory files** , because it loads on demand rather than at launch. When it loads, a `Loaded` line with its path appears in the terminal. To test a new one, create it from your shell rather than asking Claude to write it, then ask Claude to read a file in that subdirectory. * Check that the relevant CLAUDE.md is in a location that gets loaded for your session (see Choose where to put CLAUDE.md files). * Make instructions more specific. “Use 2-space indentation” works better than “format code nicely.” * Look for conflicting instructions across CLAUDE.md files. If two files give different guidance for the same behavior, Claude may pick one arbitrarily. @@ -617,7 +618,7 @@ Instructions seem lost after `/compact` -Project-root CLAUDE.md survives compaction: after `/compact`, Claude re-reads it from disk and re-injects it into the session. Nested CLAUDE.md files in subdirectories and rules with `paths:` frontmatter reload as Claude reads files they apply to. If an instruction disappeared after compaction, it was given only in conversation, lives in a nested CLAUDE.md that hasn’t reloaded yet, or is a path-scoped rule that hasn’t matched a file since. Add conversation-only instructions to CLAUDE.md to make them persist. See [What survives compaction](</docs/en/context-window#what-survives-compaction>) for the full breakdown. See Write effective instructions for guidance on size, structure, and specificity. +Project-root CLAUDE.md survives compaction: after `/compact`, Claude re-reads it from disk and re-injects it into the session. Nested CLAUDE.md files in subdirectories and rules with `paths:` frontmatter load again on demand. If an instruction disappeared after compaction, it was given only in conversation, lives in a nested CLAUDE.md that hasn’t reloaded yet, or is a path-scoped rule that hasn’t matched a file since. Add conversation-only instructions to CLAUDE.md to make them persist. See [What survives compaction](</docs/en/context-window#what-survives-compaction>) for the full breakdown. See Write effective instructions for guidance on size, structure, and specificity. ##
modified Migrate to Claude Agent SDK View current →
--- a/migration-guide.md +++ b/migration-guide.md @@ -4,7 +4,7 @@ Overview -The Claude Code SDK has been renamed to the **Claude Agent SDK** and its documentation has been reorganized. This change reflects the SDK’s broader capabilities for building AI agents beyond just coding tasks. Migrating from the OpenAI Agents SDK instead? The [OpenAI Agents SDK migration recipe](<https://platform.claude.com/cookbook/claude-agent-sdk-04-migrating-from-openai-agents-sdk>) maps each primitive onto the Claude Agent SDK through a single worked example. +The Claude Code SDK has been renamed to the **Claude Agent SDK** and its documentation has been reorganized. This change reflects the SDK’s broader capabilities for building AI agents beyond coding tasks. Migrating from the OpenAI Agents SDK instead? The [OpenAI Agents SDK migration recipe](<https://platform.claude.com/cookbook/claude-agent-sdk-04-migrating-from-openai-agents-sdk>) maps each primitive onto the Claude Agent SDK through a single worked example. ##
modified Monitoring View current →
--- a/monitoring-usage.md +++ b/monitoring-usage.md @@ -104,7 +104,7 @@ `OTEL_METRIC_EXPORT_INTERVAL`| Export interval in milliseconds (default: 60000)| `5000`, `60000` `OTEL_LOGS_EXPORT_INTERVAL`| Logs export interval in milliseconds (default: 5000)| `1000`, `10000` `OTEL_LOG_USER_PROMPTS`| Enable logging of user prompt content (default: disabled)| `1` to enable -`OTEL_LOG_ASSISTANT_RESPONSES`| Enable logging of assistant response text on `assistant_response` events (default: disabled). When unset, falls back to the value of `OTEL_LOG_USER_PROMPTS`. Requires Claude Code v2.1.193 or later| `1` to enable, `0` to keep redacted +`OTEL_LOG_ASSISTANT_RESPONSES`| Enable logging of assistant response text on `assistant_response` events (default: disabled). When unset, falls back to the value of `OTEL_LOG_USER_PROMPTS`| `1` to enable, `0` to keep redacted `OTEL_LOG_TOOL_DETAILS`| Enable logging of tool parameters and input arguments in tool events and trace span attributes: Bash commands, MCP server and tool names, skill names, user-authored workflow names, and tool input. Also enables custom, plugin, and MCP command names on `user_prompt` events, and real agent, skill, plugin, and MCP server and tool names on the cost and token counters (default: disabled). For Claude Desktop’s built-in servers, in sessions Claude Desktop owns, `mcp_server_name`/`mcp_tool_name` emit on `tool_decision`/`tool_result` even with the flag off. The exception requires Claude Code v2.1.214 or later| `1` to enable `OTEL_LOG_TOOL_CONTENT`| Enable logging of tool content in the `tool.output` span event (default: disabled). Span attributes carry tool content under their own gates. Requires tracing. Content is truncated at the content limit (60 KB by default)| `1` to enable `OTEL_LOG_MANAGED_SETTINGS`| Add the redacted managed settings, and a SHA-256 digest of the settings before redaction, to managed settings resolved events (default: disabled). A value in project or local settings doesn’t turn it on. Requires Claude Code v2.1.274 or later| `1` to enable @@ -739,7 +739,7 @@ Assistant response event -Logged after each API request that returns text content from the model. Only the response’s text blocks are included; thinking blocks and tool-use blocks are excluded. Requires Claude Code v2.1.193 or later. **Event Name** : `claude_code.assistant_response` **Attributes** : +Logged after each API request that returns text content from the model. Only the response’s text blocks are included; thinking blocks and tool-use blocks are excluded. **Event Name** : `claude_code.assistant_response` **Attributes** : * All standard attributes * `event.name`: `"assistant_response"` @@ -1045,7 +1045,7 @@ * `plugin_id_hash`: deterministic hash of the plugin name and marketplace, sent only to your configured exporter. Lets you count the distinct third-party plugins loaded across your fleet without recording their names. For [plugins synced from claude.ai](</docs/en/plugins/loading#synced-plugins>), Claude Code hashes the plugin name with the marketplace name that claude.ai reports for the plugin, or with `synced` otherwise. Before v2.1.246, Claude Code didn’t use the marketplace name claude.ai reports in the hash * `has_hooks`: whether the plugin contributes hooks * `has_mcp`: whether the plugin contributes MCP servers - * `host_owned_mcp`: `true` when the SDK host manages this plugin’s MCP connections and Claude Code skipped reading the plugin’s MCP server configuration, `false` otherwise. Requires Claude Code v2.1.172 or later + * `host_owned_mcp`: `true` when the SDK host manages this plugin’s MCP connections and Claude Code skipped reading the plugin’s MCP server configuration, `false` otherwise * `skill_path_count`: number of skill directories the plugin declares * `command_path_count`: number of command directories the plugin declares * `agent_path_count`: number of agent directories the plugin declares @@ -1208,7 +1208,7 @@ * `pre_tokens`: Approximate token count before compaction * `post_tokens`: Approximate token count after compaction * `error`: Error message when compaction failed - * `precompute_reuse`: Only set when `trigger` is `"manual"`. Auto-compaction can prepare a summary in the background before the context window fills, and this attribute records whether `/compact` reused that prepared summary. `"hit"` means it was reused; `"miss_custom_instructions"`, `"miss_hook"`, and `"miss_not_ready"` give the reason a fresh summary was computed instead. Requires Claude Code v2.1.153 or later + * `precompute_reuse`: Only set when `trigger` is `"manual"`. Auto-compaction can prepare a summary in the background before the context window fills, and this attribute records whether `/compact` reused that prepared summary. `"hit"` means it was reused; `"miss_custom_instructions"`, `"miss_hook"`, and `"miss_not_ready"` give the reason a fresh summary was computed instead #### @@ -1376,7 +1376,7 @@ * Unusual token consumption * High session volume from specific users -All metrics can be segmented by the standard attributes. The `model` attribute is available on `claude_code.token.usage`, `claude_code.cost.usage`, and from v2.1.172, `claude_code.lines_of_code.count`. Per-model breakdowns of commits can only be approximated by joining against the token or cost metrics on `session.id`, since one session can span multiple models. Filter the token or cost side to rows where `query_source` is `"main"` so auxiliary and subagent requests don’t attribute the session’s commits to a model that didn’t make them. +All metrics can be segmented by the standard attributes. The `model` attribute is available on `claude_code.token.usage`, `claude_code.cost.usage`, and `claude_code.lines_of_code.count`. Per-model breakdowns of commits can only be approximated by joining against the token or cost metrics on `session.id`, since one session can span multiple models. Filter the token or cost side to rows where `query_source` is `"main"` so auxiliary and subagent requests don’t attribute the session’s commits to a model that didn’t make them. ###
modified Enterprise network configuration View current →
--- a/network-config.md +++ b/network-config.md @@ -53,7 +53,7 @@ CA certificate store -By default, Claude Code trusts both its bundled Mozilla CA certificates and your operating system’s certificate store. Reading the OS store requires a runtime with `tls.getCACertificates`: the native installer always has it, and npm installs need Node 22.15 or later. On older Node versions, only the bundled set and `NODE_EXTRA_CA_CERTS` apply. Enterprise TLS-inspection proxies work without additional configuration when their root certificate is installed in the OS trust store and the runtime can read it. `CLAUDE_CODE_CERT_STORE` accepts a comma-separated list of sources. Recognized values are `bundled` for the Mozilla CA set shipped with Claude Code and `system` for the operating system trust store. The default is `bundled,system`. To trust only the bundled Mozilla CA set: +By default, Claude Code trusts both its bundled Mozilla CA certificates and your operating system’s certificate store. Reading the OS store requires a runtime with `tls.getCACertificates`: the native installer always has it, and npm installs need Node 22.15 or later. On older Node versions, only the bundled set and `NODE_EXTRA_CA_CERTS` apply. Enterprise TLS-inspection proxies work without additional configuration when their root certificate is installed in the OS trust store and the runtime can read it. If such a proxy mishandles gzip-compressed request bodies, set [`CLAUDE_CODE_GZIP_REQUEST_BODIES=0`](</docs/en/env-vars>) to turn off compression for Claude API, telemetry, and artifact publish requests. `CLAUDE_CODE_CERT_STORE` accepts a comma-separated list of sources. Recognized values are `bundled` for the Mozilla CA set shipped with Claude Code and `system` for the operating system trust store. The default is `bundled,system`. To trust only the bundled Mozilla CA set: export CLAUDE_CODE_CERT_STORE=bundled
modified Choose a permission mode View current →
--- a/permission-modes.md +++ b/permission-modes.md @@ -17,7 +17,7 @@ `dontAsk`| Reads and pre-approved tools; anything that would prompt is denied| Locked-down CI and scripts `bypassPermissions`| Everything| Isolated containers and VMs only -The mode that reviews every action is named **Manual** in the CLI, in `claude --help`, in the VS Code and JetBrains extensions, and in the desktop app. Its config value is `default`, which is what hooks and SDK integrations use. The CLI accepts `manual` as an alias wherever you type the value, for example `claude --permission-mode manual` or `"defaultMode": "manual"`. The Manual label and the `manual` alias require Claude Code v2.1.200 or later. The desktop app’s label doesn’t depend on your CLI version. Writes to protected paths are never auto-approved except in `bypassPermissions` mode and in plan-mode sessions where bypass permissions are available, meaning interactive terminal sessions started in a way that puts `bypassPermissions` in the mode cycle. Modes set the baseline. Layer [permission rules](</docs/en/permissions#manage-permissions>) on top to pre-approve or block specific tools. Deny rules block in every mode, including `bypassPermissions`. Deny and ask rules don’t apply to [`EndConversation`](</docs/en/tools-reference#endconversation-tool-behavior>) as long as Claude still has at least one other tool it can call. Allow rules have no effect in `bypassPermissions`. +The mode that reviews every action is named **Manual** in the CLI, in `claude --help`, in the VS Code and JetBrains extensions, and in the desktop app. Its config value is `default`, which is what hooks and SDK integrations use. The CLI accepts `manual` as an alias wherever you type the value, for example `claude --permission-mode manual` or `"defaultMode": "manual"`. Writes to protected paths are never auto-approved except in `bypassPermissions` mode and in plan-mode sessions where bypass permissions are available, meaning interactive terminal sessions started in a way that puts `bypassPermissions` in the mode cycle. Modes set the baseline. Layer [permission rules](</docs/en/permissions#manage-permissions>) on top to pre-approve or block specific tools. Deny rules block in every mode, including `bypassPermissions`. Deny and ask rules don’t apply to [`EndConversation`](</docs/en/tools-reference#endconversation-tool-behavior>) as long as Claude still has at least one other tool it can call. Allow rules have no effect in `bypassPermissions`. ### @@ -279,7 +279,7 @@ What the classifier blocks by default -The classifier trusts your working directory and the remotes that were configured for it when the session started. A remote added or repointed during the session with `git remote add` or `git remote set-url` isn’t trusted, and everything else is treated as external until you [configure trusted infrastructure](</docs/en/auto-mode-config>). Before v2.1.200, remotes added mid-session were also trusted. **Blocked by default** : +The classifier trusts your working directory and the remotes that were configured for it when the session started. A remote added or repointed during the session with `git remote add` or `git remote set-url` isn’t trusted, and everything else is treated as external until you [configure trusted infrastructure](</docs/en/auto-mode-config>). **Blocked by default** : * Downloading and executing code, like `curl | bash` * Sending sensitive data to external endpoints @@ -310,11 +310,8 @@ * Launching an autonomous agent loop that runs without human approval or a sandbox, such as one started with `--dangerously-skip-permissions` or `--no-sandbox`. This includes running a third-party agent or eval harness with isolation and per-action approval disabled, such as a runner started with `--yes-always` * [Claude in Chrome](</docs/en/chrome>) browser actions that could send page content, cookies, or credentials off-origin * Deleting files in `/tmp`, `$TMPDIR`, or another shared scratch or cache directory by wildcard, glob, or age filter rather than by a specific named path - * Including sensitive details in content sent, uploaded, published, or written to other people or shared systems, when your own message didn’t authorize those details for that recipient. PR and issue bodies, commit messages, and comments count as this kind of outbound content when the repository is outside the trust boundary or public, including your organization’s own public repositories; internal file paths, code names, live API response data such as emails or account identifiers, and infrastructure identifiers count as sensitive details. The PR, issue, and commit-message scoping requires Claude Code v2.1.200 or later. Live personal data from an API response in a PR or issue body, such as an email address, an account or organization identifier, or a usage metric, requires you to name those details and the recipient regardless of the repository’s visibility or trust boundary. That check requires Claude Code v2.1.203 or later + * Including sensitive details in content sent, uploaded, published, or written to other people or shared systems, when your own message didn’t authorize those details for that recipient. PR and issue bodies, commit messages, and comments count as this kind of outbound content when the repository is outside the trust boundary or public, including your organization’s own public repositories; internal file paths, code names, live API response data such as emails or account identifiers, and infrastructure identifiers count as sensitive details. Live personal data from an API response in a PR or issue body, such as an email address, an account or organization identifier, or a usage metric, requires you to name those details and the recipient regardless of the repository’s visibility or trust boundary. That check requires Claude Code v2.1.203 or later * Sending keystrokes to Claude Code’s own tmux pane to drive its own interface, which the classifier treats as Claude changing its own permissions or oversight - -Several of these categories depend on [environment](</docs/en/auto-mode-config#define-trusted-infrastructure>) entries, such as sensitive remote targets and protected IaC scopes, that you can narrow to concrete names. Claude Code v2.1.200 and later also block these by default: - * Commenting out, deleting, or force-passing a test or assertion that guards security behavior, such as auth, access control, input validation, or sandboxing * Deleting or tearing down a stateful resource Claude didn’t create in the session, when no more specific deletion rule applies and you didn’t name that resource * Repointing an API base URL, proxy endpoint, webhook receiver, or registry mirror at a third-party host that doesn’t fit the task, including in example files like `.env.example` @@ -322,7 +319,7 @@ * Pushing secrets or personal or entrusted data to a repository known to be public, or pushing confidential material there that isn’t part of that repository’s own work. A dotfiles repository’s own subject matter is the one exception for personal or entrusted data, and content from a private repository reaching any public surface is blocked the same way; both refinements require Claude Code v2.1.203 or later. Before v2.1.203, personal data was grouped with confidential material and blocked only when it wasn’t part of that repository’s own work. When a repository’s visibility isn’t established, the classifier doesn’t block on that alone; it judges the content against the other rules instead * Opening a pull request against a different repository or organization, forking with `gh repo fork`, or pushing to a third-party repository, unless you named that external target -Claude Code v2.1.203 and later also block these by default: +Several of these categories depend on [environment](</docs/en/auto-mode-config#define-trusted-infrastructure>) entries, such as sensitive remote targets and protected IaC scopes, that you can narrow to concrete names. Claude Code v2.1.203 and later also block these by default: * Content from a sensitive local store, or from a file whose name, path, or type marks it as sensitive, entering a commit, a push, PR or issue text, a gist or paste, or a package publish, unless you named both the source and the destination. Session transcripts and conversation logs, credential and configuration dot-folders such as SSH keys, cloud credentials, browser profiles, and shell history, and user-data exports all count, and the repository being private doesn’t clear it @@ -534,7 +531,12 @@ * `.devcontainer` * `.yarn` * `.mvn` - * `.claude`, except for `.claude/worktrees` where Claude stores its own git worktrees, and except for the markdown files in Claude’s own [auto memory](</docs/en/memory#storage-location>) directory in a session started without `--restricted` + * `.claude`, with a few exceptions, such as: + * Claude’s own git worktrees under `.claude/worktrees/` + * The current session’s own plan files in `~/.claude/plans/`, or in the [`plansDirectory`](</docs/en/settings-reference#plansdirectory>) you set + * A [background session](</docs/en/agent-view#where-state-is-stored>)’s own scratch directory at `~/.claude/jobs/<id>/tmp/` + * Markdown files in the project’s [auto memory](</docs/en/memory#storage-location>) directory, such as `~/.claude/projects/<project>/memory/`, in a session started without `--restricted` + * Markdown files in a [subagent memory](</docs/en/sub-agents#enable-persistent-memory>) directory, such as `.claude/agent-memory/`, in a session started without `--restricted` * A directory you loaded with [`--plugin-dir`](</docs/en/plugins/mods/create#change-a-mod-with-claude>), because Claude Code reloads and runs a mod’s code from it when a file changes Protected files:
modified Platforms and integrations View current →
--- a/platforms.md +++ b/platforms.md @@ -33,7 +33,7 @@ [GitHub Actions](</docs/en/github-actions>)| Runs Claude in your CI pipeline| Automated PR reviews, issue triage, scheduled maintenance [GitLab CI/CD](</docs/en/gitlab-ci-cd>)| Same as GitHub Actions for GitLab| CI-driven automation on GitLab [Code Review](</docs/en/code-review>)| Reviews every PR automatically| Catching bugs before human review -[Slack](</docs/en/slack>)| Responds to `@Claude` mentions in your channels| Turning bug reports into pull requests from team chat +[Slack](</docs/en/slack>)| Responds to `@Claude` mentions in your channels, under your own account| Turning bug reports into pull requests from team chat on Pro and Max plans [Claude Tag](<https://claude.com/docs/claude-tag>)| Runs `@Claude` as your organization’s shared identity with admin-configured access| Shared team access on Team and Enterprise plans, instead of per-user Slack sessions For integrations not listed here, [MCP servers](</docs/en/mcp>) and [connectors](</docs/en/desktop#connect-external-tools>) let you connect almost anything: Linear, Notion, Google Drive, or your own internal APIs. @@ -51,7 +51,7 @@ [Dispatch](</docs/en/desktop#sessions-from-dispatch>)| Message a task from the Claude mobile app| Your machine (Desktop)| [Pair the mobile app with Desktop](<https://support.claude.com/en/articles/13947068>)| Delegating work while you’re away, minimal setup [Remote Control](</docs/en/remote-control>)| Drive a running session from [claude.ai/code](<https://claude.ai/code>) or the Claude mobile app| Your machine (CLI, Desktop, or VS Code)| Run [`claude remote-control` or `/remote-control`](</docs/en/remote-control#start-a-remote-control-session>)| Steering in-progress work from another device [Channels](</docs/en/channels>)| Push events from a chat app like Telegram or Discord, or your own server| Your machine (CLI)| [Install a channel plugin](</docs/en/channels#quickstart>) or [build your own](</docs/en/channels-reference>)| Reacting to external events like CI failures or chat messages -[Slack](</docs/en/slack>)| Mention `@Claude` in a team channel| Anthropic cloud| [Install the Slack app](</docs/en/slack#setting-up-claude-code-in-slack>) with [Claude Code on the web](</docs/en/claude-code-on-the-web>) enabled| PRs and reviews from team chat +[Slack](</docs/en/slack>)| Mention `@Claude` in a team channel| Anthropic cloud| [Install the Slack app](</docs/en/slack#setting-up-claude-code-in-slack>) with [Claude Code on the web](</docs/en/claude-code-on-the-web>) enabled, on Pro and Max plans| PRs and reviews from team chat [Self-hosted environments](</docs/en/self-hosted-environments>)| Start a [cloud session](</docs/en/claude-code-on-the-web>) and pick your organization’s environment| Your organization’s infrastructure| [Deploy runners](</docs/en/self-hosted-environments-quickstart>), on Team and Enterprise plans| Cloud sessions that must run inside your network [Scheduled tasks](</docs/en/scheduled-tasks>)| Set a schedule| [CLI](</docs/en/scheduled-tasks>), [Desktop](</docs/en/desktop-scheduled-tasks>), or [cloud](</docs/en/routines>)| Pick a frequency| Recurring automation like daily reviews @@ -88,7 +88,7 @@ * [GitHub Actions](</docs/en/github-actions>): run Claude in your CI pipeline * [GitLab CI/CD](</docs/en/gitlab-ci-cd>): the same for GitLab * [Code Review](</docs/en/code-review>): automatic review on every pull request - * [Slack](</docs/en/slack>): send tasks from team chat, get PRs back + * [Slack](</docs/en/slack>): send tasks from team chat and get PRs back, on Pro and Max plans * [Claude Tag](<https://claude.com/docs/claude-tag>): run `@Claude` as your organization’s shared identity on Team and Enterprise plans ###
modified How Claude Code uses prompt caching View current →
--- a/prompt-caching.md +++ b/prompt-caching.md @@ -228,7 +228,7 @@ Editing CLAUDE.md mid-session -Your project-root and user-level CLAUDE.md files are read once at session start and held in memory. Editing them mid-session does not invalidate the cache, but the edit also doesn’t apply. Claude keeps working with the version that was loaded at session start. The new content loads on the next `/clear`, `/compact`, or restart. [Nested CLAUDE.md files in subdirectories](</docs/en/memory>) and [rules with `paths:` frontmatter](</docs/en/memory#path-specific-rules>) load later, when Claude first reads a matching file. Editing one before it loads does take effect. After it loads, the content is part of the conversation history, so a mid-session edit doesn’t retroactively change it. +Your project-root and user-level CLAUDE.md files are read once at session start and held in memory. Editing them mid-session does not invalidate the cache, but the edit also doesn’t apply. Claude keeps working with the version that was loaded at session start. The new content loads on the next `/clear`, `/compact`, or restart. [Nested CLAUDE.md files in subdirectories](</docs/en/memory>) and [rules with `paths:` frontmatter](</docs/en/memory#path-specific-rules>) load later, on demand. Editing one yourself before it loads does take effect. After it loads, the content is part of the conversation history, so a mid-session edit doesn’t retroactively change it. ###
modified Agent SDK reference - Python View current →
--- a/python.md +++ b/python.md @@ -145,6 +145,24 @@ }, "required": ["text"], } + + 3. **TypedDict class** : a typed schema whose `NotRequired` keys are left out of `required`. + * **Python 3.11 and later** : import `TypedDict` and `NotRequired` from `typing`. + * **Python 3.10** : `typing` has no `NotRequired`. Import `TypedDict` and `NotRequired` from `typing_extensions`, which the SDK installs on Python 3.10. + + from typing import Annotated, Any, NotRequired, TypedDict + from claude_agent_sdk import tool + + class ForecastArgs(TypedDict): + latitude: Annotated[float, "Latitude coordinate"] + hours: NotRequired[Annotated[int, "How many hours of forecast to return"]] + + @tool("get_forecast", "Get the hourly forecast for a location", ForecastArgs) + async def get_forecast(args: dict[str, Any]) -> dict[str, Any]: + hours = args.get("hours", 12) + return {"content": [{"type": "text", "text": f"{hours}-hour forecast for {args['latitude']}"}]} + +In the simple mapping and TypedDict forms, wrap a type in `Annotated[type, "description"]` to set the field’s description. #### @@ -1746,6 +1764,8 @@ subtype: str data: dict[str, Any] +Subtypes that have no dataclass of their own arrive as `SystemMessage`. To follow the session between turns, set [`CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS=1`](</docs/en/env-vars#variables>) and read `message.data["state"]` on each message whose `subtype` is `session_state_changed`. [`SDKSessionStateChangedMessage`](</docs/en/agent-sdk/typescript#sdksessionstatechangedmessage>) lists the states it can carry. Iterate with `receive_messages()` to read them: `receive_response()` stops at the `ResultMessage`, and a `session_state_changed` message can follow that result. + ### ​ @@ -2227,7 +2247,7 @@ Parameters: - * `input`: Strongly-typed hook input with discriminated unions based on `hook_event_name` (see `HookInput`) + * `input`: Strongly typed hook input with discriminated unions based on `hook_event_name` (see `HookInput`) * `tool_use_id`: Optional tool use identifier (for tool-related hooks) * `context`: Hook context with additional information
modified Quickstart View current →
--- a/quickstart.md +++ b/quickstart.md @@ -103,7 +103,7 @@ See the setup guides for [Amazon Bedrock](</docs/en/amazon-bedrock>), [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>) for details. -Unless previously approved, Anthropic does not allow third party developers to offer claude.ai login or rate limits for their products, including agents built on the Claude Agent SDK. Please use the API key authentication methods described in this document instead. +Unless previously approved, Anthropic does not allow third party developers to offer claude.ai login or rate limits for their products, including agents built on the Claude Agent SDK. Use the API key authentication methods described in this document instead. ##
modified Continue local sessions from any device with Remote Control View current →
--- a/remote-control.md +++ b/remote-control.md @@ -270,7 +270,7 @@ [Dispatch](</docs/en/desktop#sessions-from-dispatch>)| Message a task from the Claude mobile app| Your machine (Desktop)| [Pair the mobile app with Desktop](<https://support.claude.com/en/articles/13947068>)| Delegating work while you’re away, minimal setup [Remote Control](</docs/en/remote-control>)| Drive a running session from [claude.ai/code](<https://claude.ai/code>) or the Claude mobile app| Your machine (CLI, Desktop, or VS Code)| Run [`claude remote-control` or `/remote-control`](</docs/en/remote-control#start-a-remote-control-session>)| Steering in-progress work from another device [Channels](</docs/en/channels>)| Push events from a chat app like Telegram or Discord, or your own server| Your machine (CLI)| [Install a channel plugin](</docs/en/channels#quickstart>) or [build your own](</docs/en/channels-reference>)| Reacting to external events like CI failures or chat messages -[Slack](</docs/en/slack>)| Mention `@Claude` in a team channel| Anthropic cloud| [Install the Slack app](</docs/en/slack#setting-up-claude-code-in-slack>) with [Claude Code on the web](</docs/en/claude-code-on-the-web>) enabled| PRs and reviews from team chat +[Slack](</docs/en/slack>)| Mention `@Claude` in a team channel| Anthropic cloud| [Install the Slack app](</docs/en/slack#setting-up-claude-code-in-slack>) with [Claude Code on the web](</docs/en/claude-code-on-the-web>) enabled, on Pro and Max plans| PRs and reviews from team chat [Self-hosted environments](</docs/en/self-hosted-environments>)| Start a [cloud session](</docs/en/claude-code-on-the-web>) and pick your organization’s environment| Your organization’s infrastructure| [Deploy runners](</docs/en/self-hosted-environments-quickstart>), on Team and Enterprise plans| Cloud sessions that must run inside your network [Scheduled tasks](</docs/en/scheduled-tasks>)| Set a schedule| [CLI](</docs/en/scheduled-tasks>), [Desktop](</docs/en/desktop-scheduled-tasks>), or [cloud](</docs/en/routines>)| Pick a frequency| Recurring automation like daily reviews @@ -423,7 +423,7 @@ * **The error mentions`disableRemoteControl`**: your IT administrator has disabled Remote Control on this device through [managed settings](</docs/en/managed-settings>), independent of the organization-wide toggle and of how you’re signed in. * **Your claude.ai plan is Pro or Max** : Claude Code is still signed in under a Team or Enterprise organization from an earlier login, so it checks that organization’s Remote Control policy. Run `/status` to see which plan and organization your sign-in uses. Run `claude auth logout` then `claude auth login` to sign in again under your current plan. - * **The message doesn’t say to contact your organization admin** : your organization has a HIPAA configuration that is incompatible with Remote Control, and `/status` lists `HIPAA` in its `Organization configuration` row. In this state the admin panel’s Remote Control toggle is grayed out, so an Owner can’t change it there. Contact Anthropic support to discuss options. Before v2.1.267, this case showed “Remote Control isn’t available for your organization due to its compliance policy” instead. + * **The message doesn’t say to contact your organization admin** : your organization has the [HIPAA configuration](</docs/en/hipaa-setup>) applied, which turns Remote Control off. To confirm, run `/status` and look for `HIPAA` on the `Organization configuration` line. An Owner sees the **Remote Control** toggle grayed out in [admin settings](<https://claude.ai/admin-settings/claude-code>) and can’t turn it on. If you have questions about the configuration, ask an Owner, who can contact your organization’s Anthropic account team. Before v2.1.267, this case showed “Remote Control isn’t available for your organization due to its compliance policy” instead. * **Otherwise, an Owner hasn’t enabled it for your organization** : Remote Control is off by default on Team and Enterprise plans. An Owner can enable it at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) by turning on the **Remote Control** toggle. This toggle is a server-side organization setting. Before v2.1.281, this message also appeared when Claude Code hadn’t loaded your organization’s policy on this machine, for example after starting offline. Later versions report that state as `Couldn't verify your organization's policy for remote control` instead.
modified Configure the sandboxed Bash tool View current →
--- a/sandboxing.md +++ b/sandboxing.md @@ -1005,7 +1005,7 @@ See also * [Sandbox environments](</docs/en/sandbox-environments>): compare the built-in sandbox with dev containers, containers, and VMs - * [Security](</docs/en/security>): comprehensive security features and best practices + * [Security](</docs/en/security>): security features and best practices * [Permissions](</docs/en/permissions>): permission configuration and access control * [All settings](</docs/en/settings-reference>): every settings key * [CLI reference](</docs/en/cli-reference>): command-line options
modified Securely deploying AI agents View current →
--- a/secure-deployment.md +++ b/secure-deployment.md @@ -290,7 +290,7 @@ 2. Installing the proxy’s CA certificate in the agent’s trust store (so the agent trusts the proxy’s certificates) 3. Configuring `HTTP_PROXY`/`HTTPS_PROXY` to route traffic through the proxy -This approach handles any HTTP-based service without writing custom tools, but adds complexity around certificate management. Note that not all programs respect `HTTP_PROXY`/`HTTPS_PROXY`. Most tools (curl, pip, npm, git) do, but some may bypass these variables and connect directly. For example, Node.js `fetch()` ignores these variables by default; in Node 24+ you can set `NODE_USE_ENV_PROXY=1` to enable support. For comprehensive coverage, you can use [proxychains](<https://github.com/haad/proxychains>) to intercept network calls, or configure iptables to redirect outbound traffic to a transparent proxy. +This approach handles any HTTP-based service without writing custom tools, but adds complexity around certificate management. Note that not all programs respect `HTTP_PROXY`/`HTTPS_PROXY`. Most tools (curl, pip, npm, git) do, but some may bypass these variables and connect directly. For example, Node.js `fetch()` ignores these variables by default; in Node 24+ you can set `NODE_USE_ENV_PROXY=1` to enable support. To cover tools that ignore these variables, you can use [proxychains](<https://github.com/haad/proxychains>) to intercept network calls, or configure iptables to redirect outbound traffic to a transparent proxy. A **transparent proxy** intercepts traffic at the network level, so the client doesn’t need to be configured to use it. Regular proxies require clients to explicitly connect and speak HTTP CONNECT or SOCKS. Transparent proxies (like Squid or mitmproxy in transparent mode) can handle raw redirected TCP connections.
modified Catch security issues as Claude writes code View current →
--- a/security-guidance.md +++ b/security-guidance.md @@ -32,7 +32,7 @@ * `Marketplace "claude-plugins-official" not found`: add the marketplace with `/plugin marketplace add anthropics/claude-plugins-official`, then retry the install. * The plugin is [not found in the marketplace](</docs/en/plugins/install#install-a-plugin>): check the plugin name. -Check the install summary. If it reports `Run /reload-plugins to activate.`, see [Apply plugin changes without restarting](</docs/en/plugins/cli-reference#reload-plugins>) to activate the plugin in your current session. +Check the install summary. If it reports `Run /reload-plugins to apply.`, see [Apply plugin changes without restarting](</docs/en/plugins/cli-reference#reload-plugins>) to activate the plugin in your current session. ###
modified Deploy self-hosted environments to production View current →
--- a/self-hosted-environments-deploy.md +++ b/self-hosted-environments-deploy.md @@ -150,11 +150,11 @@ RUN git config --system user.name "Claude" && \ git config --system user.email "noreply@anthropic.com" -Without an identity, `git commit` fails with `Please tell me who you are` and sessions can’t make progress. You can use your own bot identity instead; the runner doesn’t override these values. Don’t bake long-lived or broadly-scoped push credentials into a shared runner image: a credential in the image is available to every session the image runs, whoever started it. Instead, mint a short-lived, least-scoped token per session from your [wrapper script](</docs/en/self-hosted-environments-configuration#wrapper-scripts>), using the session creator’s identity decoded from the session JWT. Pair it with an ephemeral per-session container, which requires `--capacity 1`, so no credential outlives the session that minted it; see the hardening section. If you must configure push credentials at the image level, for example for a read-only deploy key, scope them as tightly as your git host allows: +Without an identity, `git commit` fails with `Please tell me who you are` and sessions can’t make progress. You can use your own bot identity instead; the runner doesn’t override these values. Don’t bake long-lived or broadly scoped push credentials into a shared runner image: a credential in the image is available to every session the image runs, whoever started it. Instead, mint a short-lived, least-scoped token per session from your [wrapper script](</docs/en/self-hosted-environments-configuration#wrapper-scripts>), using the session creator’s identity decoded from the session JWT. Pair it with an ephemeral per-session container, which requires `--capacity 1`, so no credential outlives the session that minted it; see the hardening section. If you must configure push credentials at the image level, for example for a read-only deploy key, scope them as tightly as your git host allows: * An SSH deploy key limited to one repository with a `url.<base>.insteadOf` rewrite - * A `credential.helper` that returns a minimally-scoped token - * `GIT_SSH_COMMAND` pointing at a narrowly-scoped key + * A `credential.helper` that returns a minimally scoped token + * `GIT_SSH_COMMAND` pointing at a narrowly scoped key Whichever mechanism you configure must work without a prompt, because the runner’s built-in clone and fetch disable the prompts that git, SSH, and Git Credential Manager would otherwise show:
modified Settings files and precedence View current →
--- a/settings.md +++ b/settings.md @@ -12,7 +12,7 @@ Settings files and who they affect -Claude Code reads settings from four files, and an organization can also deliver managed settings from the claude.ai console. Each source has a scope: the set of people and projects a setting saved in it applies to, whether that’s just you, everyone in a project, or everyone in your organization. +Claude Code reads settings from four files, and an organization can also deliver managed settings from the claude.ai console. Each source has a scope: the set of people and projects a setting saved in it applies to, whether that’s only you, everyone in a project, or everyone in your organization. Scope| File| Who it affects| Use it for ---|---|---|---
modified All settings View current →
--- a/settings-reference.md +++ b/settings-reference.md @@ -1190,7 +1190,7 @@ * `"auto"`: Claude Code runs without routine prompts; before actions such as shell commands and network requests run, a background classifier checks that they align with your request * `"dontAsk"`: Claude Code auto-denies every call that would otherwise prompt; reads, other actions that need no approval, and pre-approved tools still run * `"bypassPermissions"`: Claude Code runs everything without asking - * `"manual"`: an alias for `"default"`, in Claude Code v2.1.200 or later + * `"manual"`: an alias for `"default"` * **Default** : unset * **Per-session overrides** : `--permission-mode`, and its equivalent `--dangerously-skip-permissions` for `bypassPermissions`, take precedence over this key for one session @@ -1202,7 +1202,7 @@ } } -Permission rules layer on top of every mode: `deny` rules block in every mode, including `bypassPermissions`. See [Permission modes](</docs/en/permission-modes>). `manual` names the permission mode labeled Manual in the CLI and the VS Code extension; the alias requires Claude Code v2.1.200 or later. In cloud sessions, Claude Code honors only `acceptEdits`, `plan`, `default`, and `auto` from this key. For conversations the VS Code extension starts, see [which setting the extension reads for the starting permission mode](</docs/en/permission-modes#switch-permission-modes>). +Permission rules layer on top of every mode: `deny` rules block in every mode, including `bypassPermissions`. See [Permission modes](</docs/en/permission-modes>). In cloud sessions, Claude Code honors only `acceptEdits`, `plan`, `default`, and `auto` from this key. For conversations the VS Code extension starts, see [which setting the extension reads for the starting permission mode](</docs/en/permission-modes#switch-permission-modes>). ### @@ -2723,7 +2723,7 @@ `askUserQuestionTimeout` -Let an unanswered [`AskUserQuestion`](</docs/en/tools-reference>) dialog auto-continue after a period of idle time, submitting whatever options you had already selected. Set it when you step away and want Claude to continue without you. With the default, questions wait until you answer them. For when the timer pauses or never starts, see [Question auto-continue timeout](</docs/en/tools-reference#question-auto-continue-timeout>). Requires Claude Code v2.1.200 or later. +Let an unanswered [`AskUserQuestion`](</docs/en/tools-reference>) dialog auto-continue after a period of idle time, submitting whatever options you had already selected. Set it when you step away and want Claude to continue without you. With the default, questions wait until you answer them. For when the timer pauses or never starts, see [Question auto-continue timeout](</docs/en/tools-reference#question-auto-continue-timeout>). * **Scope** : `User or managed` * **Type** : string, one of `"60s"`, `"5m"`, `"10m"`, or `"never"` @@ -2736,7 +2736,7 @@ "askUserQuestionTimeout": "5m" } -Appears in `/config` as **Question auto-continue timeout** , which writes this key to user settings; Claude Code hides the row while managed settings or the `--settings` flag set the key. Requires Claude Code v2.1.200 or later. +Appears in `/config` as **Question auto-continue timeout** , which writes this key to user settings; Claude Code hides the row while managed settings or the `--settings` flag set the key. ### @@ -4742,7 +4742,7 @@ } } -Built-in plugins store their options under the same key with an `@builtin` suffix. For example, the [**Project instructions**](</docs/en/memory#choose-which-instruction-files-load>) setting that controls whether Claude Code reads `AGENTS.md` files is `pluginConfigs["agents-md@builtin"].options.instructionFiles`. Claude Code ignores project and local entries because it substitutes these values into plugin hook, MCP, and LSP configurations, and a cloned repository must not be able to supply them. Before v2.1.207, project and local settings were also read. +Built-in plugins store their options under the same key with an `@builtin` suffix. For example, the [**Project instructions**](</docs/en/memory#choose-which-instruction-files-load>) setting that controls whether Claude Code reads `AGENTS.md` files is `pluginConfigs["cc-plugin-agents-md@builtin"].options.instructionFiles`. Before v2.1.285, the plugin’s ID was `agents-md@builtin`. Later versions read an entry under either ID. Claude Code ignores project and local entries because it substitutes these values into plugin hook, MCP, and LSP configurations, and a cloned repository must not be able to supply them. Before v2.1.207, project and local settings were also read. ###
modified Extend agents with skills View current →
--- a/skills.md +++ b/skills.md @@ -1,4 +1,4 @@ -Agent Skills extend Claude with specialized capabilities that Claude invokes when relevant. Skills are packaged as `SKILL.md` files containing instructions, descriptions, and optional supporting resources. This page also covers commands in Agent SDK sessions. For comprehensive information about skills, including benefits, architecture, and authoring guidelines, see the [Agent Skills overview](<https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview>). +Agent Skills extend Claude with specialized capabilities that Claude invokes when relevant. Skills are packaged as `SKILL.md` files containing instructions, descriptions, and optional supporting resources. This page also covers commands in Agent SDK sessions. For more information about skills, including benefits, architecture, and authoring guidelines, see the [Agent Skills overview](<https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview>). ##
modified Claude Code in Slack View current →
--- a/slack.md +++ b/slack.md @@ -1,7 +1,8 @@ -This page documents the earlier Claude Code in Slack, which runs each session under an individual user’s account. - - * **Team and Enterprise plans:** Anthropic is retiring this version in favor of [Claude Tag](<https://claude.com/product/tag>), which runs @Claude as your organization’s shared identity with admin-configured access. Your existing Slack app and @Claude handle stay, and your Anthropic account team can tell you the cutover date. [Set up Claude Tag](<https://claude.com/docs/claude-tag/overview>) for a new workspace; to move one that already uses this version, see [Migrate from the earlier Claude in Slack](<https://claude.com/docs/claude-tag/admins/migrate-from-earlier>). - * **Pro and Max plans:** Claude Tag isn’t available on individual plans, so this page remains the setup path. +This page documents the earlier Claude Code in Slack, which runs each session under an individual user’s account. It answers channel @mentions only from Pro and Max accounts, and only in a Slack workspace that no organization has connected to [Claude Tag](<https://claude.com/product/tag>). Claude Tag runs @Claude as your organization’s shared identity with admin-configured access. + + * **Pro and Max plans:** Claude Tag isn’t available on individual plans, so this page remains the setup path in a workspace that isn’t connected to Claude Tag. + * **Team and Enterprise plans:** your existing Slack app and @Claude handle stay. [Set up Claude Tag](<https://claude.com/docs/claude-tag/overview>) for a new workspace; to move one that already uses this version, see [Migrate from the earlier Claude in Slack](<https://claude.com/docs/claude-tag/admins/migrate-from-earlier>). + * **Notice instead of an answer:** look up the setup notice or the retirement notice that @Claude replied with. Claude Code in Slack brings the power of Claude Code directly into your Slack workspace. When you mention `@Claude` with a coding task, Claude automatically detects the intent and creates a Claude Code cloud session, allowing you to delegate development work without leaving your team conversations. This integration is built on the existing Claude for Slack app but adds intelligent routing to Claude Code cloud sessions for coding-related requests. Each session runs under your own Claude account, using your connected repositories and your plan limits. @@ -26,7 +27,8 @@ Requirement| Details ---|--- -Claude Plan| Pro, Max, Team, or Enterprise with Claude Code access (premium seats or Chat + Claude Code seats) +Claude Plan| Pro or Max +Slack workspace| Not connected to [Claude Tag](<https://claude.com/docs/claude-tag/overview>) by any organization. If @Claude replies with the retirement notice, the workspace is connected Cloud sessions| [Cloud sessions](</docs/en/claude-code-on-the-web>) are enabled for your account GitHub Account| Connected at [claude.ai/code](<https://claude.ai/code>) with at least one repository authenticated Slack Authentication| Your Slack account linked to your Claude account via the Claude app @@ -231,6 +233,27 @@ ​ +“This workspace isn’t set up for Claude Tag yet” + +@Claude replies in the thread with this notice instead of an answer when both of these are true: + + * No organization has connected your Slack workspace to [Claude Tag](<https://claude.com/docs/claude-tag/overview>). + * The Claude account you linked in Slack isn’t on a Pro or Max plan. + +Claude Tag is available on Team and Enterprise plans. To connect the workspace, start with the `@Claude connect` command the notice names, then follow [Set up Claude Tag](<https://claude.com/docs/claude-tag/overview>). + +### + +​ + +“The legacy Claude in Slack bot is retired” + +The notice opens with `The legacy Claude in Slack bot is retired effective October 5, 2026 and no longer responds in channels.` Your Slack workspace is connected to a Claude organization, and the earlier version is still selected for the channel, the workspace, or the organization default in that organization’s Claude Tag settings. The notice doesn’t depend on your own plan, so Pro and Max accounts get it too. If you’re an Owner of that organization, open [Claude admin settings](<https://claude.ai/admin-settings/claude-tag>) and turn on Claude Tag for the channel. To fix every channel that inherits the setting, change it on the workspace or the organization default instead. For the full move, see [Migrate from the earlier Claude in Slack](<https://claude.com/docs/claude-tag/admins/migrate-from-earlier>). If you’re not an Owner, send this entry to one. + +### + +​ + ”Claude Code is not enabled for your account” This error means your Claude account has no cloud environment yet. Sign in at [claude.ai/code](<https://claude.ai/code>) once with the same account you connected to Slack and finish [web onboarding](</docs/en/web-quickstart#connect-github>), which creates your default cloud environment or asks you to create it. The error clears on your next mention. Each user must do this individually. @@ -285,7 +308,6 @@ 1. Disconnect and reconnect your Claude account in the App Home 2. Ensure you’re signed into the correct Claude account in your browser - 3. Check that your Claude plan includes Claude Code access ## @@ -295,7 +317,7 @@ * **GitHub only** : repositories must be on GitHub. * **One PR at a time** : each session can create one pull request. - * **Cloud session access required** : users need access to [cloud sessions](</docs/en/claude-code-on-the-web>); without it, Claude replies with standard chat responses. + * **Cloud session access required** : users need access to [cloud sessions](</docs/en/claude-code-on-the-web>). ##
modified Customize your status line View current →
--- a/statusline.md +++ b/statusline.md @@ -181,7 +181,7 @@ `prompt_cache`| The session’s [prompt cache](</docs/en/prompt-caching>) statistics for the main conversation: hit ratio, misses, and whether the cache is warm. See prompt cache fields for every field. Absent until the main conversation’s first API response. Requires Claude Code v2.1.251 or later `session_id`| Unique session identifier `session_name`| Session name. Uses the custom name set with the `--name` flag or `/rename` when one exists, otherwise the AI-generated session title. The [default display name](</docs/en/sessions#name-your-sessions>), such as `my-app-3f`, doesn’t populate this field. Absent when the session has neither a custom name nor an AI-generated title -`prompt_id`| UUID identifying the user prompt currently being processed. Matches the [`prompt.id` attribute on OpenTelemetry events](</docs/en/monitoring-usage#event-correlation-attributes>). Absent until the first user input. Requires Claude Code v2.1.196 or later +`prompt_id`| UUID identifying the user prompt currently being processed. Matches the [`prompt.id` attribute on OpenTelemetry events](</docs/en/monitoring-usage#event-correlation-attributes>). Absent until the first user input `transcript_path`| Path to conversation transcript file `version`| Claude Code version `output_style.name`| Name of the current output style
modified Get structured output from agents View current →
--- a/structured-outputs.md +++ b/structured-outputs.md @@ -1,4 +1,4 @@ -Structured outputs let you define the exact shape of data you want back from an agent. The agent can use any tools it needs to complete the task, and you still get validated JSON matching your schema at the end. Define a [JSON Schema](<https://json-schema.org/understanding-json-schema/about>) for the structure you need, and the SDK validates the output against it, re-prompting on mismatch. If validation does not succeed within the retry limit, the result is an error instead of structured data; see Error handling. For full type safety, use Zod (TypeScript) or Pydantic (Python) to define your schema and get strongly-typed objects back. +Structured outputs let you define the exact shape of data you want back from an agent. The agent can use any tools it needs to complete the task, and you still get validated JSON matching your schema at the end. Define a [JSON Schema](<https://json-schema.org/understanding-json-schema/about>) for the structure you need, and the SDK validates the output against it, re-prompting on mismatch. If validation does not succeed within the retry limit, the result is an error instead of structured data; see Error handling. For full type safety, use Zod (TypeScript) or Pydantic (Python) to define your schema and get strongly typed objects back. ##
modified Create custom subagents View current →
--- a/sub-agents.md +++ b/sub-agents.md @@ -242,7 +242,7 @@ `tools`| No| Tools the subagent can use, as a comma-separated string such as `Read, Grep, Bash` or a YAML list. Inherits every tool available to subagents if omitted. If no entry in the list resolves to a tool, the subagent usually [fails to launch](</docs/en/errors#agent-would-be-spawned-with-zero-tools>) with an error naming the entries. To preload Skills into context, use the `skills` field rather than listing `Skill` here `disallowedTools`| No| Tools to deny, removed from inherited or specified list. Same format as `tools`. An entry with a specifier, such as `Bash(git push *)`, still removes the whole tool `model`| No| Model to use: `sonnet`, `opus`, `haiku`, `fable`, a full model ID such as `claude-opus-5-5`, or `inherit`. When you omit it, Claude Code picks the model in the subagent model order -`permissionMode`| No| Permission mode: `default`, `acceptEdits`, `auto`, `dontAsk`, `bypassPermissions`, `plan`, or `manual` as an alias for `default`. The `manual` alias requires Claude Code v2.1.200 or later. Ignored for plugin subagents +`permissionMode`| No| Permission mode: `default`, `acceptEdits`, `auto`, `dontAsk`, `bypassPermissions`, `plan`, or `manual` as an alias for `default`. Ignored for plugin subagents `maxTurns`| No| Maximum number of agentic turns before the subagent stops. When the subagent reaches the limit, Claude Code returns its output marked as partial, and Claude can resume it to continue. The partial marking requires Claude Code v2.1.246 or later `skills`| No| [Skills](</docs/en/skills>) to preload into the subagent’s context at startup. The full skill content is injected, not only the description. Subagents can still invoke unlisted project, user, and plugin skills through the Skill tool `mcpServers`| No| [MCP servers](</docs/en/mcp>) available to this subagent. Each entry is either a server name referencing an already-configured server (e.g., `"slack"`) or an inline definition with the server name as key and a full [MCP server config](</docs/en/mcp#installing-mcp-servers>) as value. Ignored for plugin subagents @@ -809,7 +809,7 @@ When something [cuts off a subagent’s response mid-stream](</docs/en/errors#the-response-above-may-be-incomplete>), and the partial response contains text but no tool calls, Claude Code prompts the subagent to continue rather than ending the run. This happens in interactive sessions too. The run ends on the error only once those continuations are used up. A subagent whose run ends on an API error, such as a usage limit or a repeated server error, reports that failure back to Claude. What Claude receives depends on where the subagent ran: - * **Foreground** : if a rate limit, overload, or server error cuts off a subagent that already produced text output, the Agent tool returns that partial output with a note that the subagent was cut off and didn’t finish its task. A subagent that produced nothing, or whose only output was tool calls, fails with [`Agent terminated early due to an API error`](</docs/en/errors#agent-terminated-early-due-to-an-api-error>), followed by the error detail. In v2.1.199, a rate limit, overload, or server error that cut off the tool-calls-only shape returned an empty partial result containing only the cut-off note instead. + * **Foreground** : if a rate limit, overload, or server error cuts off a subagent that already produced text output, the Agent tool returns that partial output with a note that the subagent was cut off and didn’t finish its task. A subagent that produced nothing, or whose only output was tool calls, fails with [`Agent terminated early due to an API error`](</docs/en/errors#agent-terminated-early-due-to-an-api-error>), followed by the error detail. * **Background** : the subagent is marked failed, and the message Claude receives when it ends names the API error and includes the subagent’s last output, so partial work isn’t lost. When you configure a [fallback model chain](</docs/en/model-config#fallback-model-chains>) and a subagent encounters a failure the chain covers, such as its model being unavailable, Claude Code switches the subagent to the first model in the chain that accepts the request. The subagent keeps working instead of ending on the error. Once the underlying API error clears, ask Claude to retry the task or resume the subagent.
modified Subagents in the SDK View current →
--- a/subagents.md +++ b/subagents.md @@ -735,6 +735,6 @@ Related documentation - * [Claude Code subagents](</docs/en/sub-agents>): comprehensive subagent documentation including filesystem-based definitions + * [Claude Code subagents](</docs/en/sub-agents>): subagent documentation including filesystem-based definitions * [Dynamic workflows](</docs/en/workflows>): orchestrate many subagents from a script for jobs too large for one conversation * [SDK overview](</docs/en/agent-sdk/overview>): getting started with the Claude Agent SDK
modified Enterprise deployment overview View current →
--- a/third-party-integrations.md +++ b/third-party-integrations.md @@ -54,7 +54,7 @@ Invest in documentation and memory -We strongly recommend investing in documentation so that Claude Code understands your codebase. Organizations can deploy CLAUDE.md files at multiple levels. See [where CLAUDE.md files can live](</docs/en/memory#choose-where-to-put-claude-md-files>) and [how to deploy an organization-wide CLAUDE.md](</docs/en/memory#deploy-organization-wide-claude-md>). +Invest in documentation so that Claude Code understands your codebase. Organizations can deploy CLAUDE.md files at multiple levels. See [where CLAUDE.md files can live](</docs/en/memory#choose-where-to-put-claude-md-files>) and [how to deploy an organization-wide CLAUDE.md](</docs/en/memory#deploy-organization-wide-claude-md>). ### @@ -62,7 +62,7 @@ Simplify deployment -If you have a custom development environment, we find that creating a “one click” way to install Claude Code is key to growing adoption across an organization. +If you have a custom development environment, creating a “one click” way to install Claude Code is key to growing adoption across an organization. ### @@ -94,7 +94,7 @@ Use MCP for integrations -MCP is a great way to give Claude Code more information, such as connecting to ticket management systems or error logs. We recommend that one central team configures MCP servers and checks a `.mcp.json` configuration into the codebase so that all users benefit. [Learn more](</docs/en/mcp>). +MCP is a great way to give Claude Code more information, such as connecting to ticket management systems or error logs. Have one central team configure MCP servers and check a `.mcp.json` configuration into the codebase so that all users benefit. [Learn more](</docs/en/mcp>). ##
modified Tools reference View current →
--- a/tools-reference.md +++ b/tools-reference.md @@ -29,11 +29,11 @@ `Read`| Reads the contents of files. See Read tool behavior| No `ReadMcpResourceTool`| Reads a specific MCP resource by URI| No `RemoteTrigger`| Creates, updates, runs, and lists [Routines](</docs/en/routines>) on claude.ai. Backs the `/schedule` command. The [`RemoteTrigger` input reference](</docs/en/agent-sdk/typescript#remotetrigger>) documents every action and the organization policies that remove the tool. Routines live on claude.ai and require a Pro, Max, Team, or Enterprise plan, so this tool is not accessible from Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry| No -`ReportFindings`| Reports code-review findings as a structured list, with a file, summary, and failure scenario per finding, so Claude Code can render them instead of printing them as text. Claude calls it when active code-review instructions tell it to. Requires Claude Code v2.1.196 or later. As of v2.1.199, a finding can also carry an optional `category` slug, such as `correctness` or `test-coverage`, shown next to the file location in the rendered list| No +`ReportFindings`| Reports code-review findings as a structured list, with a file, summary, and failure scenario per finding, so Claude Code can render them instead of printing them as text. Claude calls it when active code-review instructions tell it to. A finding can also carry an optional `category` slug, such as `correctness` or `test-coverage`, shown next to the file location in the rendered list| No `ScheduleWakeup`| Reschedules the next iteration of a [self-paced `/loop`](</docs/en/scheduled-tasks#let-claude-choose-the-interval>). Claude calls this at the end of each iteration to pick when the next one runs, between one minute and one hour out; you don’t call it directly. To end the loop instead, Claude calls it with `stop: true`, which cancels the pending wakeup. The `stop` field requires Claude Code v2.1.202 or later. The pending wakeup appears in `session_crons` in [Stop hook input](</docs/en/hooks#stop-input>)| No `SendFeedback`| Drafts a feedback report about Claude Code, covering a product problem or Claude’s own behavior in the session, and queues it on your machine for you to review. Claude Code sends nothing until you choose to send the draft. See SendFeedback tool behavior. Requires Claude Code v2.1.238 or later| No `SendMessage`| Sends a message to another agent: an [agent team](</docs/en/agent-teams>) teammate, a [subagent it resumes](</docs/en/sub-agents#resume-subagents>) by agent ID or name, or one of your other Claude Code sessions, on this machine or beyond it. Messaging other sessions requires Claude Code v2.1.224 or later. [Cross-session messaging](</docs/en/cross-session-messaging>) covers which sessions Claude can reach, [what a message looks like when it arrives](</docs/en/cross-session-messaging#what-a-message-looks-like>), and [how Claude gets a notice when another session goes idle](</docs/en/cross-session-messaging#get-a-notice-when-another-session-goes-idle>). Claude can include an optional `summary` input, typically 5-10 words, that Claude Code shows as a one-line preview. When Claude omits it on a [plain-text message](</docs/en/cross-session-messaging#limitations>), Claude Code uses the first line of the message as the summary. Claude Code truncates a summary longer than 200 characters with an ellipsis| No -`SendUserFile`| Sends files from the session to you with an optional caption, so a generated report, diagram, screenshot, or built artifact reaches your device instead of only being mentioned in the transcript. As of v2.1.196, the optional `display` input controls presentation: `render` opens the file inline in the client, `attach` shows a download card only, and when unset the client decides by file type. Available when a [Remote Control](</docs/en/remote-control>) client is connected or in a [cloud session](</docs/en/claude-code-on-the-web>). Delivery runs through Anthropic-hosted infrastructure, so the tool is not available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry| No +`SendUserFile`| Sends files from the session to you with an optional caption, so a generated report, diagram, screenshot, or built artifact reaches your device instead of only being mentioned in the transcript. The optional `display` input controls presentation: `render` opens the file inline in the client, `attach` shows a download card only, and when unset the client decides by file type. Available when a [Remote Control](</docs/en/remote-control>) client is connected or in a [cloud session](</docs/en/claude-code-on-the-web>). Delivery runs through Anthropic-hosted infrastructure, so the tool is not available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry| No `ShareOnboardingGuide`| Uploads `ONBOARDING.md` and returns a share link teammates can open in Claude Code. Called from `/team-onboarding` after the guide is written. Available to claude.ai subscribers on Pro, Max, Team, and Enterprise plans| Yes `Skill`| Executes a [skill](</docs/en/skills#control-who-invokes-a-skill>) within the main conversation| Yes `SubagentHandback`| Delivers a subagent’s final report to whichever conversation receives that subagent’s result. Provided only in [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>), to subagents that the Agent tool runs locally other than [forks](</docs/en/sub-agents#fork-the-current-conversation>), and available in the terminal CLI, IDE extensions, cloud sessions, and the Agent SDK; the classifier reviews the report before it’s delivered. Requires Claude Code v2.1.271 or later| No @@ -41,7 +41,7 @@ `TaskGet`| Retrieves full details for a specific task. Provided by default only on the models listed under Task tool availability, and on other models when you opt in| No `TaskList`| Lists all tasks with their current status. Provided by default only on the models listed under Task tool availability, and on other models when you opt in| No `TaskOutput`| Retrieves output from a background task. Deprecated in favor of `Read` on the task’s output file path. When no task matches the ID, the error lists the running background agents by ID and description. Before v2.1.203, the error named only the missing ID| No -`TaskStop`| Stops a running background task by ID. It also accepts an [agent-team teammate](</docs/en/agent-teams>) or a named background agent by agent ID or name. Before v2.1.198, it accepted only a background task ID. When no task matches the ID, the error lists the running background agents by ID and description, including agents that another agent spawned. Before v2.1.203, the error listed running teammates and named agents but not background agents another agent spawned, so those couldn’t be identified or stopped from the main conversation| No +`TaskStop`| Stops a running background task by ID. It also accepts an [agent-team teammate](</docs/en/agent-teams>) or a named background agent by agent ID or name. When no task matches the ID, the error lists the running background agents by ID and description, including agents that another agent spawned. Before v2.1.203, the error listed running teammates and named agents but not background agents another agent spawned, so those couldn’t be identified or stopped from the main conversation| No `TaskUpdate`| Updates task status, dependencies, details, or deletes tasks. Provided by default only on the models listed under Task tool availability, and on other models when you opt in| No `TodoWrite`| Manages the session task checklist. Disabled by default in favor of `TaskCreate`, `TaskGet`, `TaskList`, and `TaskUpdate`. Set `CLAUDE_CODE_ENABLE_TASKS=0` to re-enable it in sessions that have the task-tracking tools| No `ToolSearch`| Searches for and loads deferred tools when [tool search](</docs/en/mcp#scale-with-mcp-tool-search>) is enabled| No @@ -96,7 +96,7 @@ In every case, the resolved set is limited to the [tools available to subagents](</docs/en/sub-agents#available-tools>): a tool that isn’t available to subagents is never granted, even when listed in `tools`. Where the conditions in the `SubagentHandback` tools-table entry hold, Claude Code also gives the subagent that tool, even if you leave it out of `tools` or list it in `disallowedTools`. If every entry in a subagent’s `tools` list fails to match a usable tool, the Agent tool usually returns an error naming the entries instead of launching the subagent; see [Agent would be spawned with zero tools](</docs/en/errors#agent-would-be-spawned-with-zero-tools>) for the message and how to fix each entry. Launching the subagent doesn’t itself prompt for permission. Claude Code checks the subagent’s own tool calls against your permission rules as it runs. Where you see a subagent’s permission prompts depends on whether it runs in the foreground or the background. Claude Code runs subagents in the background by default, apart from the [cases that run in the foreground](</docs/en/sub-agents#run-subagents-in-foreground-or-background>). * **Foreground subagents** show the same permission prompts you would see in the main conversation, at the moment each tool call happens. - * **Background subagents** surface permission prompts in your main session as of v2.1.186. The prompt names which subagent is asking, and pressing Esc denies that one tool call without stopping the subagent. Before v2.1.186, background subagents auto-denied any tool call that would otherwise prompt and continued without that tool. + * **Background subagents** surface permission prompts in your main session. The prompt names which subagent is asking, and pressing Esc denies that one tool call without stopping the subagent. To [limit what a subagent can reach](</docs/en/sub-agents#control-subagent-capabilities>) in the first place, narrow its `tools` field, for example by leaving Bash off the list, or set deny rules in your settings. @@ -444,7 +444,7 @@ * `"shell": "powershell"` on individual [command hooks](</docs/en/hooks#command-hook-fields>): runs that hook in PowerShell. Hooks spawn PowerShell directly, so this works regardless of `CLAUDE_CODE_USE_POWERSHELL_TOOL`. * `shell: powershell` in [skill frontmatter](</docs/en/skills#frontmatter-reference>): runs `!`command`` blocks in PowerShell. Requires the PowerShell tool to be enabled. -The same main-session working-directory reset behavior described under the Bash tool section applies to PowerShell commands, including the `CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR` environment variable. As of v2.1.196, exit code 1 from `grep`, `rg`, `egrep`, `fgrep`, `findstr`, and `git grep` means no matches. Exit code 1 from `git diff` means differences exist. Neither result is reported to Claude as a command failure. For `robocopy`, exit codes 0 through 7 are informational results, such as files copied or extra files detected. Exit codes of 8 or higher count as failures. +The same main-session working-directory reset behavior described under the Bash tool section applies to PowerShell commands, including the `CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR` environment variable. Exit code 1 from `grep`, `rg`, `egrep`, `fgrep`, `findstr`, and `git grep` means no matches. Exit code 1 from `git diff` means differences exist. Neither result is reported to Claude as a command failure. For `robocopy`, exit codes 0 through 7 are informational results, such as files copied or extra files detected. Exit codes of 8 or higher count as failures. ### @@ -481,7 +481,7 @@ The Read tool takes a file path and returns the contents with line numbers. Claude is instructed to always pass absolute paths. By default, Read returns the file from the start. When a whole-file read exceeds the token limit, Read returns the first page with a `PARTIAL view` notice that tells Claude how much of the file it received and how to read more with `offset` and `limit`. A read that passes an explicit `offset` or `limit` and still exceeds the token limit returns an error. A read with an explicit `limit` stops as soon as the selected lines exceed what the token limit could ever fit and returns an error without loading the rest of the range. The error tells Claude to use a smaller `limit`, or to search for specific content with Grep instead when a single line is that large. Before v2.1.208, Claude Code loaded the whole range into memory before rejecting it, so reading a file with an extremely long single line could run it out of memory. Reading an empty file returns a notice that the file exists but its contents are empty, and an `offset` past the last line returns a notice giving the file’s line count. Before v2.1.208, reading an empty file returned the past-the-end notice instead. Read handles several file types beyond plain text: - * **Images** : PNG, JPG, and other image formats are returned as visual content that Claude can see, not as raw bytes. Claude Code resizes and recompresses large images to fit the model’s image size limits before sending them, so Claude may see a downscaled version of a large screenshot. As of v2.1.196, an image that is still larger than 500KB after that resize is re-encoded as a JPEG at reduced quality with its pixel dimensions unchanged. If Claude misses fine pixel-level detail in a large image, ask it to crop the region of interest first, for example with ImageMagick via Bash. + * **Images** : PNG, JPG, and other image formats are returned as visual content that Claude can see, not as raw bytes. Claude Code resizes and recompresses large images to fit the model’s image size limits before sending them, so Claude may see a downscaled version of a large screenshot. An image that is still larger than 500KB after that resize is re-encoded as a JPEG at reduced quality with its pixel dimensions unchanged. If Claude misses fine pixel-level detail in a large image, ask it to crop the region of interest first, for example with ImageMagick via Bash. * **PDFs** : Claude reads short `.pdf` files whole. For PDFs longer than 10 pages, it reads in ranges with a `pages` parameter, such as `"1-5"`, up to 20 pages at a time. Page-range reads render pages with `pdftoppm` from poppler-utils, so install it with `brew install poppler` on macOS or `apt-get install poppler-utils` on Debian and Ubuntu. On Windows and other platforms, install a poppler build that puts `pdftoppm` on your `PATH`. Without it, a page-range read fails with `pdftoppm is not installed`. * **Jupyter notebooks** : `.ipynb` files return all cells with their outputs, including code, markdown, and visualizations. Claude Code refuses to read a notebook file over 100 MB; the error tells Claude how to read a portion of the notebook instead, such as a slice of cells, with a shell command.
modified Troubleshoot a mod View current →
--- a/troubleshoot.md +++ b/troubleshoot.md @@ -40,9 +40,9 @@ ​ -Your version is older than 2.1.287 - -`claude --version` prints a version older than 2.1.287. Your version predates mods being on by default. [Update Claude Code](</docs/en/setup#update-claude-code>). +Your version is too old + +See [which version to use and how to check yours](</docs/en/plugins/mods/overview#turn-mods-on-or-off>). ###
modified Troubleshoot installation and login View current →
--- a/troubleshoot-install.md +++ b/troubleshoot-install.md @@ -797,7 +797,7 @@ Reset your login -When login fails and the cause isn’t obvious, a clean re-authentication resolves most cases: +When login fails and the cause isn’t clear, a clean re-authentication resolves most cases: 1. Run `/logout` to sign out completely 2. Close Claude Code
modified Agent SDK reference - TypeScript View current →
--- a/typescript.md +++ b/typescript.md @@ -2235,7 +2235,7 @@ Hook Types -For a comprehensive guide on using hooks with examples and common patterns, see the [Hooks guide](</docs/en/agent-sdk/hooks>). +For a guide on using hooks with examples and common patterns, see the [Hooks guide](</docs/en/agent-sdk/hooks>). ### @@ -3293,7 +3293,7 @@ multiline?: boolean; }; -Powerful search tool built on ripgrep with regex support. +Search tool built on ripgrep with regex support. ### @@ -5727,6 +5727,28 @@ ​ +`SDKSessionStateChangedMessage` + +Emitted when Claude Code reports the session’s state. To receive these messages, set [`CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS=1`](</docs/en/env-vars#variables>). Claude Code can report the same state more than once, so read a message as the session’s current state rather than as a transition. The `state` field carries one of these values: + + * `running`: the session is working. + * `idle`: Claude Code is waiting for your next prompt. + * `requires_action`: the session is blocked on an answer to a request it sent your host, such as a permission prompt. + +A turn’s `idle` message and its `result` message can arrive in either order. To change whether `idle` waits for background work such as a background subagent or a [workflow](</docs/en/workflows>) run, see [`CLAUDE_CODE_BG_TASKS_REPORT_RUNNING`](</docs/en/env-vars#variables>). + + type SDKSessionStateChangedMessage = { + type: "system"; + subtype: "session_state_changed"; + state: "idle" | "running" | "requires_action"; + uuid: UUID; + session_id: string; + }; + +### + +​ + `SDKFilesPersistedEvent` Emitted when file checkpoints are persisted to disk.
modified Voice dictation View current →
--- a/voice-dictation.md +++ b/voice-dictation.md @@ -1,4 +1,4 @@ -Speak your prompts instead of typing them in the Claude Code CLI. Your speech is transcribed live into the prompt input, so you can mix voice and typing in the same message. Enable dictation with `/voice`, then either hold a key while you speak or tap once to start and again to send. Dictation also works in [agent view](</docs/en/agent-view#peek-and-reply>). Hold or tap your push-to-talk key while the dispatch input or a peek-panel reply is focused to dictate to a background session. +Speak your prompts instead of typing them in the Claude Code CLI. Your speech is transcribed live into the prompt input, so you can mix voice and typing in the same message. Enable dictation with `/voice`, then either hold a key while you speak or tap once to start and again to send. In hold mode, dictation also works in [agent view](</docs/en/agent-view#peek-and-reply>). Hold your push-to-talk key while the dispatch input or a peek-panel reply is focused to dictate to a background session. ##
modified Orchestrate subagents at scale with dynamic workflows View current →
--- a/workflows.md +++ b/workflows.md @@ -47,11 +47,11 @@ Watch progress -The run starts in the background. Run `/workflows`, use the arrow keys to select the run, and press Enter to open its progress view: +The run starts in the background. Run `/workflows` to open its progress view: /workflows -The view shows each phase with its agent count, token total, and elapsed time. Drill into any phase to see its agents and what each one found. See Watch the run for the full set of controls.You can also watch from the task panel below the input box: a one-line progress summary appears there while the run is going. Press the down arrow to focus it, then Enter to expand. +If `/workflows` shows a list of runs instead, select the run you just started and press Enter. The view shows each phase with its agent count. Drill into any phase to see its agents and what each one found. See Watch the run for the full set of controls.You can also watch from the task panel below the input box: a one-line progress summary appears there while the run is going. Press the down arrow to focus it, then Enter to expand. 4 @@ -81,7 +81,7 @@ Watch the run -Workflows run in the background, so the session stays responsive while agents work. Run `/workflows` at any time to list running and completed workflows, then select one to open its progress view. To stop a running workflow without opening it, select it in the list and press `x`. The progress view shows each phase with its agent counts, token totals, and elapsed time. The footer lists the key for each action: +Workflows run in the background, so the session stays responsive while agents work. Run `/workflows` at any time to list running and completed workflows, then select one to open its progress view. When the session has only one run, `/workflows` skips the list and opens that run. To stop a running workflow from the list without opening it, select it and press `x`. The progress view shows each phase with its agent counts. The footer lists the key for each action: Key| Action ---|--- @@ -176,7 +176,7 @@ * **View raw script** : read the script before deciding * **No** : cancel -`Ctrl+G` opens the script in your editor. `Tab` lets you adjust the prompt before the run starts. Whether you see this prompt depends on your [permission mode](</docs/en/permission-modes>): +`Ctrl+G` opens the script in your editor. With **Yes, run it** or **No** selected, press `Tab` to [add a comment](</docs/en/permissions#add-a-comment-when-you-answer-a-permission-prompt>) to your answer. Whether you see this prompt depends on your [permission mode](</docs/en/permission-modes>): Permission mode| When you’re prompted ---|---
modified Zero data retention View current →
--- a/zero-data-retention.md +++ b/zero-data-retention.md @@ -2,7 +2,7 @@ ZDR is not included in the standard Claude for Enterprise plan and cannot be enabled from your admin settings. It is available to qualified accounts and requires separate enablement by Anthropic. If your organization requires ZDR, [contact sales](<https://www.anthropic.com/contact-sales?utm_source=claude_code&utm_medium=docs&utm_content=zero_data_retention_request>) or your Anthropic account team to confirm eligibility. -Claude for Enterprise organizations that have enabled HIPAA can bring the Claude Code CLI and the Code tab in Claude Desktop under their Business Associate Agreement (BAA) without ZDR once the HIPAA configuration is applied to Claude Code (local mode) and Cowork (local mode). See [Set up Claude Code (local mode) for a HIPAA-ready organization](</docs/en/hipaa-setup>). Organizations without the HIPAA configuration still need ZDR for BAA coverage of Claude Code. See the [Implementation Guide](<https://trust.anthropic.com/resources?s=rgirr4qe8u7ek8c2igx3&name=claude-for-enterprise-hipaa-ready-offering-implementation-guide>) for a list of Eligible Services. ZDR on Claude for Enterprise gives enterprise customers the ability to use Claude Code with zero data retention and access administrative capabilities: +Claude for Enterprise organizations that have enabled HIPAA can bring the Claude Code CLI and the Code tab in Claude Desktop under their Business Associate Agreement (BAA) without ZDR once the HIPAA configuration is applied to Claude Code (local mode) and Cowork (local mode). See [Set up Claude Code (local mode) for a HIPAA-ready organization](</docs/en/hipaa-setup>). Organizations without the HIPAA configuration still need ZDR for BAA coverage of Claude Code. See the [Implementation Guide](<https://trust.anthropic.com/resources?s=l1wrssd9hsbi4gak0tp5a6&name=%5Banthropic%5D-hipaa-ready-offering-implementation-guide>) for a list of Eligible Services. ZDR on Claude for Enterprise gives enterprise customers the ability to use Claude Code with zero data retention and access administrative capabilities: * Cost controls per user * [Analytics](</docs/en/analytics>) dashboard