Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
358 changes: 186 additions & 172 deletions content/.metadata.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions content/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.1.241

- Bug fixes and reliability improvements

## 2.1.240

- Bug fixes and reliability improvements
Expand Down
38 changes: 19 additions & 19 deletions content/claude-code-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
"url": "https://github.com/anthropics/claude-code/issues"
},
"dist": {
"shasum": "90270e9ba940bb719d47ab0d59d3d7ece9591fc2",
"tarball": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-2.1.240.tgz",
"shasum": "150077700180a6f915a486a34b4c34404e4aee59",
"tarball": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-2.1.241.tgz",
"fileCount": 7,
"integrity": "sha512-0ivyKRUk9et03PlsZTxwb+LobqW3oGUstvdTnFNcRFATOmp/uyiO6ApVc4XDvg6eQoY6uG8j+kOeNd68BsfeoQ==",
"integrity": "sha512-S7DWEmJJAsI5taAUjhKm6soXcFJYIVeTH6Lg9kmp3yntFllCP612hGwZ7thOGh8r7YaRUH9+1jCX5A9QGazsxg==",
"signatures": [
{
"sig": "MEQCICAwFvo/w2BdP9nXMCh8RkKB2aOWo3n4744vsP3Eru9pAiAl/xCltVi833lK2UhR2dKq0IUZ+1ifbKi1OHMAr+QdXQ==",
"sig": "MEUCIQDRHPG53pZbkfPJOdcZs5Vgbe20VAA3N4oQxd9zrcdzWwIgNG9lRaMGWD86BAwhqG5vDFHbx3ecQ9HqW0bqX4N05OM=",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
},
{
"sig": "MEYCIQC7EHqucf29zy0Cok+gSsrzbwVHHPNCyLjgJGVx+EVYJAIhAL7rTqvMe9LkoL1zqy6RXUH9KCjyVnwq23DxrtijCkhp",
"sig": "MEUCIQCejlthmhx4jT3nqDsmGI/3b49IcuiZMISzSAoN7RNpJgIgYZNhbWOMWYH3J38tbwHzHDK3uFYETuXCXLpaaeHdLoU=",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 175849
},
"name": "@anthropic-ai/claude-code",
"type": "module",
"_from": "file:staged-npm/anthropic-ai-claude-code-2.1.240.tgz",
"_from": "file:staged-npm/anthropic-ai-claude-code-2.1.241.tgz",
"author": {
"name": "Anthropic",
"email": "support@anthropic.com"
Expand All @@ -42,8 +42,8 @@
"email": "wolffiex@anthropic.com"
},
"homepage": "https://github.com/anthropics/claude-code",
"_resolved": "/home/runner/work/claude-cli-internal/claude-cli-internal/staged-npm/anthropic-ai-claude-code-2.1.240.tgz",
"_integrity": "sha512-0ivyKRUk9et03PlsZTxwb+LobqW3oGUstvdTnFNcRFATOmp/uyiO6ApVc4XDvg6eQoY6uG8j+kOeNd68BsfeoQ==",
"_resolved": "/home/runner/work/claude-cli-internal/claude-cli-internal/staged-npm/anthropic-ai-claude-code-2.1.241.tgz",
"_integrity": "sha512-S7DWEmJJAsI5taAUjhKm6soXcFJYIVeTH6Lg9kmp3yntFllCP612hGwZ7thOGh8r7YaRUH9+1jCX5A9QGazsxg==",
"_npmVersion": "11.17.0",
"description": "Use Claude, Anthropic's AI assistant, right from your terminal. Claude can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
"directories": {},
Expand Down Expand Up @@ -106,19 +106,19 @@
"_hasShrinkwrap": false,
"readmeFilename": "README.md",
"optionalDependencies": {
"@anthropic-ai/claude-code-linux-x64": "2.1.240",
"@anthropic-ai/claude-code-win32-x64": "2.1.240",
"@anthropic-ai/claude-code-darwin-x64": "2.1.240",
"@anthropic-ai/claude-code-linux-arm64": "2.1.240",
"@anthropic-ai/claude-code-win32-arm64": "2.1.240",
"@anthropic-ai/claude-code-darwin-arm64": "2.1.240",
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.240",
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.240"
"@anthropic-ai/claude-code-linux-x64": "2.1.241",
"@anthropic-ai/claude-code-win32-x64": "2.1.241",
"@anthropic-ai/claude-code-darwin-x64": "2.1.241",
"@anthropic-ai/claude-code-linux-arm64": "2.1.241",
"@anthropic-ai/claude-code-win32-arm64": "2.1.241",
"@anthropic-ai/claude-code-darwin-arm64": "2.1.241",
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.241",
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.241"
},
"_npmOperationalInternal": {
"tmp": "tmp/claude-code_2.1.240_1787403803475_0.9954750369682548",
"tmp": "tmp/claude-code_2.1.241_1787443112961_0.09052615691252774",
"host": "s3://npm-registry-packages-npm-production"
},
"_id": "@anthropic-ai/claude-code@2.1.240",
"version": "2.1.240"
"_id": "@anthropic-ai/claude-code@2.1.241",
"version": "2.1.241"
}
2 changes: 1 addition & 1 deletion content/en/docs/claude-code/admin-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Managed settings can lock down tools, sandbox execution, restrict MCP servers an

Organizations whose members authenticate through claude.ai or the Anthropic API can also govern models without deploying settings: [organization model restrictions](/docs/en/model-config#organization-model-restrictions) disable individual models, an [organization default model](/docs/en/model-config#organization-default-model) sets which model new sessions start on, and [organization effort limits](/docs/en/model-config#organization-effort-limits) cap effort levels per role. All three controls require a Claude Enterprise plan. Model restrictions and effort limits are enforced server-side; the default model is a starting point that users can change, unless the organization enforces it. Enforcement is available to a limited set of organizations; ask your Anthropic account team about availability. None of these controls reach sessions on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, or [Claude Platform on AWS](/docs/en/claude-platform-on-aws); on those providers, use `availableModels` above for restrictions and the `model` key in managed settings for a default.

[Claude Code on the web](/docs/en/claude-code-on-the-web) has its own admin surface: on the Cloud environments page in admin settings, owners and admins create [organization-shared environments](/docs/en/cloud-environments#organization-shared-environments) that set the [network access level](/docs/en/cloud-environments#network-access), environment variables, and setup script for members' cloud sessions. Owners and admins choose the organization's default environment separately, at [claude.ai/admin-settings/claude-code](https://claude.ai/admin-settings/claude-code).
[Claude Code on the web](/docs/en/claude-code-on-the-web) has its own admin surface: on the Cloud environments page in admin settings, Owners create [organization-shared environments](/docs/en/cloud-environments#organization-shared-environments) that set the [network access level](/docs/en/cloud-environments#network-access), environment variables, and setup script for members' cloud sessions. Owners choose the organization's default environment separately, at [claude.ai/admin-settings/claude-code](https://claude.ai/admin-settings/claude-code).

Permission rules and sandboxing cover different layers. Denying WebFetch blocks Claude's fetch tool, but if Bash is allowed, `curl` and `wget` can still reach any URL. Sandboxing closes that gap with a network domain allowlist enforced at the OS level.

Expand Down
56 changes: 55 additions & 1 deletion content/en/docs/claude-code/auto-mode-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ This page covers how to:
* [Add a human checkpoint](#add-a-human-checkpoint) for pushes and pull requests with `permissions.ask`
* [Choose where to set rules](#where-the-classifier-reads-configuration) across CLAUDE.md, user settings, and managed settings
* [Define trusted infrastructure](#define-trusted-infrastructure) with `autoMode.environment`
* [Generate environment entries](#generate-environment-entries) with `/auto-mode-setup`
* [Override the block and allow rules](#override-the-block-and-allow-rules) when the defaults don't fit your pipeline
* [Route all shell commands through the classifier](#route-all-shell-commands-through-the-classifier) with `autoMode.classifyAllShell`
* [Inspect your effective config](#inspect-the-defaults-and-your-effective-config) with the `claude auto-mode` subcommands
Expand Down Expand Up @@ -158,6 +159,59 @@ The more specific context you give, the better the classifier can distinguish ro

You don't need to fill everything in at once. A reasonable rollout: start with the defaults and add your source control org and key internal services, which resolves the most common false positives like pushing to your own repos. Add trusted domains and cloud buckets next. Fill the rest as blocks come up.

<h2 id="generate-environment-entries">
Generate environment entries with `/auto-mode-setup`
</h2>

Run `/auto-mode-setup` to have Claude Code draft `autoMode.environment` entries, and sometimes [rule entries](#override-the-block-and-allow-rules) too, from your project and your recent sessions in it. If you accept the draft, Claude Code writes it to `~/.claude/settings.json`.

<Note>
`/auto-mode-setup` requires a Pro, Max, or Team plan and Claude Code v2.1.228 or later. On native Windows it requires v2.1.233 or later. You can't run it in [Claude Code on the web](/docs/en/claude-code-on-the-web). It also needs [feature-flag fetching](/docs/en/env-vars#features-that-need-feature-flag-fetching), so you can't run it in a session where you've turned flag fetching off.
</Note>

<h3 id="what-auto-mode-setup-reads">
What `/auto-mode-setup` reads
</h3>

If `~/.claude/settings.json` already holds `autoMode` entries, Claude Code starts by asking whether to add to your environment list or replace it, and keeps the rules you wrote either way. Claude Code then asks how you use this project and offers two optional scans before it scans anything. In the scan, Claude Code always reads these sources:

* This project's `CLAUDE.md`, `README.md`, config files, and git remotes
* Your `autoMode` and `permissions.allow` settings
* The hosts, buckets, and command names from the commands Claude ran in your recent sessions in this project, never your messages

The two optional scans add one source each:

* The first word of each command in your shell history
* The remote hosts and names of the repositories under your home directory

### Review and save the draft

Claude Code scans in the background, then shows you the draft. You accept or discard it as a whole, so edit `~/.claude/settings.json` afterwards to adjust single entries. When you accept, Claude Code writes the draft and reconciles it with the settings you already have:

* Claude Code writes the `environment` list without `"$defaults"`, because the draft spells out the built-in entries it left unchanged
* Claude Code includes `"$defaults"` in each of the `allow`, `soft_deny`, and `hard_deny` lists the draft adds entries to, unless you already wrote an `allow` list without it, so the [built-in rules](#override-the-block-and-allow-rules) you haven't replaced stay in effect
* After saving, Claude Code offers to remove `permissions.allow` rules in `~/.claude/settings.json` that auto mode ignores, such as `Bash(*)`, or that auto-approve destructive commands

Then run `claude auto-mode config` to [see the effective result](#inspect-the-defaults-and-your-effective-config).

<h3 id="turn-off-auto-mode-setup">
Turn off `/auto-mode-setup`
</h3>

Once auto mode has blocked several actions and you still have no `autoMode.environment` entries, Claude Code shows a dialog titled "Teach auto mode about your environment?" at the end of a turn and offers to run `/auto-mode-setup` for you. To stop the offer but keep the command, select **Don't show again** in that dialog.

To turn off both the command and the offer, add this [`skillOverrides`](/docs/en/skills#override-skill-visibility-from-settings) entry to `~/.claude/settings.json`:

```json theme={null}
{
"skillOverrides": {
"auto-mode-setup": "off"
}
}
```

`/auto-mode-setup` is a built-in command rather than a [bundled skill](/docs/en/skills#bundled-skills), so this `skillOverrides` entry still applies to it, but [`disableBundledSkills`](/docs/en/settings-reference#disablebundledskills) doesn't turn it off.

## Override the block and allow rules

Three additional fields let you replace the classifier's built-in rule lists:
Expand Down Expand Up @@ -315,7 +369,7 @@ The reason shown with the call is the fixed text `Blocked by classifier` in most

### Fix repeated denials

Repeated denials for the same destination usually mean the classifier is missing context. Add that destination to `autoMode.environment`, then run `claude auto-mode config` to confirm it took effect.
Repeated denials for the same destination usually mean the classifier is missing context. Add that destination to `autoMode.environment`, or [run `/auto-mode-setup`](#generate-environment-entries) to have Claude Code draft the entries, then run `claude auto-mode config` to confirm the change took effect.

To react to denials programmatically, use the [`PermissionDenied` hook](/docs/en/hooks#permissiondenied).

Expand Down
8 changes: 8 additions & 0 deletions content/en/docs/claude-code/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ This page is generated from the [CHANGELOG.md on GitHub](https://github.com/anth

Run `claude --version` to check your installed version.

<Update label="2.1.241" description="August 23, 2026">
* Bug fixes and reliability improvements
</Update>

<Update label="2.1.240" description="August 22, 2026">
* Bug fixes and reliability improvements
</Update>

<Update label="2.1.239" description="August 21, 2026">
* Cost estimates (`/cost`, status line, `--max-budget-usd`) now include the 1.1× US-only-inference premium for data-residency workspaces
* Added the one-time fullscreen renderer offer on Bedrock, Vertex, Foundry and other previously excluded setups; new installs there now start in fullscreen
Expand Down
Loading
Loading