v2.1.77
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Commands Best Practice
|
||||
|
||||
<br>
|
||||
<br>
|
||||
[](../implementation/claude-commands-implementation.md)
|
||||
|
||||
Claude Code commands — frontmatter fields and official built-in slash commands.
|
||||
@@ -33,7 +33,7 @@ Claude Code commands — frontmatter fields and official built-in slash commands
|
||||
| 2 | `/logout` |  | Log out from Claude Code |
|
||||
| 3 | `/upgrade` |  | Open the upgrade page to switch to a higher plan tier |
|
||||
| 4 | `/color [color\|default]` |  | Set the prompt bar color for the current session |
|
||||
| 5 | `/config` |  | Open the interactive settings interface with search |
|
||||
| 5 | `/config` |  | Open the Settings interface to adjust theme, model, output style, and other preferences. Alias: `/settings` |
|
||||
| 6 | `/keybindings` |  | Customize keyboard shortcuts per context and create chord sequences |
|
||||
| 7 | `/permissions` |  | View or update tool permissions |
|
||||
| 8 | `/privacy-settings` |  | Manage privacy and telemetry preferences |
|
||||
@@ -55,7 +55,7 @@ Claude Code commands — frontmatter fields and official built-in slash commands
|
||||
| 24 | `/help` |  | Show slash-command help |
|
||||
| 25 | `/release-notes` |  | Show recent Claude Code release notes |
|
||||
| 26 | `/tasks` |  | List and manage background tasks |
|
||||
| 27 | `/copy` |  | Copy the last assistant response to the clipboard |
|
||||
| 27 | `/copy` |  | Copy the last assistant response to clipboard. Shows interactive picker for code blocks |
|
||||
| 28 | `/export [filename]` |  | Export the current conversation to a file or clipboard |
|
||||
| 29 | `/agents` |  | Manage custom subagents — view, create, edit, delete |
|
||||
| 30 | `/chrome` |  | Manage Claude in Chrome browser integration |
|
||||
@@ -65,32 +65,32 @@ Claude Code commands — frontmatter fields and official built-in slash commands
|
||||
| 34 | `/plugin` |  | Manage Claude Code plugins |
|
||||
| 35 | `/reload-plugins` |  | Reload installed plugins without restarting |
|
||||
| 36 | `/skills` |  | List available skills |
|
||||
| 37 | `/memory` |  | View and edit memory files |
|
||||
| 37 | `/memory` |  | Edit CLAUDE.md memory files, enable or disable auto-memory, and view auto-memory entries |
|
||||
| 38 | `/effort [low\|medium\|high\|max\|auto]` |  | Set the model effort level |
|
||||
| 39 | `/fast` |  | Toggle fast mode — same Opus 4.6 model with faster output |
|
||||
| 40 | `/model` |  | Switch models (haiku, sonnet, opus) and adjust effort level |
|
||||
| 41 | `/passes [number]` |  | Share a free week of Claude Code with friends. Only visible if your account is eligible |
|
||||
| 42 | `/plan` |  | Enter read-only planning mode — suggests approaches without making changes |
|
||||
| 43 | `/add-dir` |  | Add additional working directories to the current session |
|
||||
| 44 | `/diff` |  | Review the current git diff in the active repo |
|
||||
| 44 | `/diff` |  | Open an interactive diff viewer showing uncommitted changes and per-turn diffs |
|
||||
| 45 | `/init` |  | Initialize a new project with a CLAUDE.md guide |
|
||||
| 46 | `/pr-comments` |  | Review or reply to pull-request comments |
|
||||
| 47 | `/review` |  | Deprecated — install the `code-review` plugin instead |
|
||||
| 48 | `/security-review` |  | Run a focused security review on current changes |
|
||||
| 49 | `/desktop` |  | Continue the current session in the Claude Code Desktop app. macOS and Windows only. |
|
||||
| 49 | `/desktop` |  | Continue the current session in the Claude Code Desktop app. macOS and Windows only. Alias: `/app` |
|
||||
| 50 | `/install-github-app` |  | Install the GitHub app for PR-linked workflows |
|
||||
| 51 | `/install-slack-app` |  | Install the Slack app for notifications and sharing |
|
||||
| 52 | `/mobile` |  | Connect to or manage the mobile companion app |
|
||||
| 53 | `/remote-control` |  | Continue the current session from another device |
|
||||
| 52 | `/mobile` |  | Show QR code to download the Claude mobile app. Aliases: `/ios`, `/android` |
|
||||
| 53 | `/remote-control` |  | Make this session available for remote control from claude.ai. Alias: `/rc` |
|
||||
| 54 | `/remote-env` |  | Inspect or copy the remote-control environment setup |
|
||||
| 55 | `/btw <question>` |  | Ask a quick side question without adding to the conversation |
|
||||
| 56 | `/clear` |  | Clear conversation history and start fresh |
|
||||
| 56 | `/clear` |  | Clear conversation history and free up context. Aliases: `/reset`, `/new` |
|
||||
| 57 | `/compact [prompt]` |  | Compress conversation to free context window. Optional prompt focuses the compaction |
|
||||
| 58 | `/exit` |  | Exit the REPL |
|
||||
| 59 | `/fork` |  | Fork the current conversation into a new session |
|
||||
| 58 | `/exit` |  | Exit the CLI. Alias: `/quit` |
|
||||
| 59 | `/fork` |  | Fork the current conversation into a new session. Alias: `/branch` |
|
||||
| 60 | `/rename <name>` |  | Rename the current session for easier identification |
|
||||
| 61 | `/resume [session]` |  | Resume a previous conversation by ID or name, or open the session picker |
|
||||
| 62 | `/rewind` |  | Rewind conversation and/or code to an earlier point |
|
||||
| 61 | `/resume [session]` |  | Resume a previous conversation by ID or name, or open the session picker. Alias: `/continue` |
|
||||
| 62 | `/rewind` |  | Rewind the conversation and/or code to a previous point, or summarize from a selected message. Alias: `/checkpoint` |
|
||||
|
||||
Bundled skills such as `/debug` can also appear in the slash-command menu, but they are not built-in commands.
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Claude Code Settings Reference
|
||||
|
||||
 
|
||||
 
|
||||
|
||||
A comprehensive guide to all available configuration options in Claude Code's `settings.json` files. As of v2.1.76, Claude Code exposes **60+ settings** and **160+ environment variables** (use the `"env"` field in `settings.json` to avoid wrapper scripts).
|
||||
A comprehensive guide to all available configuration options in Claude Code's `settings.json` files. As of v2.1.77, Claude Code exposes **60+ settings** and **100+ environment variables** (use the `"env"` field in `settings.json` to avoid wrapper scripts).
|
||||
|
||||
<table width="100%">
|
||||
<tr>
|
||||
@@ -70,7 +70,7 @@ Within the managed tier, precedence is: server-managed > MDM/OS-level policies >
|
||||
| `cleanupPeriodDays` | number | `30` | Sessions inactive longer than this are deleted at startup. Setting to `0` deletes all existing transcripts and disables session persistence entirely (no `.jsonl` files written, `/resume` shows no conversations, hooks receive an empty `transcript_path`) |
|
||||
| `autoUpdatesChannel` | string | `"latest"` | Release channel: `"stable"` or `"latest"` |
|
||||
| `alwaysThinkingEnabled` | boolean | `false` | Enable extended thinking by default for all sessions |
|
||||
| `skipWebFetchPreflight` | boolean | `false` | Skip WebFetch blocklist check before fetching URLs |
|
||||
| `skipWebFetchPreflight` | boolean | `false` | Skip WebFetch blocklist check before fetching URLs *(in JSON schema, not on official settings page)* |
|
||||
| `availableModels` | array | - | Restrict which models users can select via `/model`, `--model`, or `ANTHROPIC_MODEL`. Does not affect the Default option. Example: `["sonnet", "haiku"]` |
|
||||
| `fastModePerSessionOptIn` | boolean | `false` | Require users to opt in to fast mode each session |
|
||||
| `teammateMode` | string | `"auto"` | Agent team display mode: `"auto"` (split panes in tmux/iTerm2, in-process otherwise), `"in-process"`, or `"tmux"` |
|
||||
@@ -218,7 +218,7 @@ Control what tools and operations Claude can perform.
|
||||
| `permissions.defaultMode` | string | Default permission mode. In Remote environments, only `acceptEdits` and `plan` are honored (v2.1.70+) |
|
||||
| `permissions.disableBypassPermissionsMode` | string | Prevent bypass mode activation |
|
||||
| `allowManagedPermissionRulesOnly` | boolean | **(Managed only)** Only managed permission rules apply; user/project `allow`, `ask`, `deny` rules are ignored |
|
||||
| `allow_remote_sessions` | boolean | **(Managed only)** Allow users to start Remote Control and web sessions. Defaults to `true`. Set to `false` to prevent remote session access |
|
||||
| `allow_remote_sessions` | boolean | **(Managed only)** Allow users to start Remote Control and web sessions. Defaults to `true`. Set to `false` to prevent remote session access *(not in official docs — unverified)* |
|
||||
|
||||
### Permission Modes
|
||||
|
||||
@@ -359,19 +359,20 @@ Configure bash command sandboxing for security.
|
||||
| `sandbox.autoAllowBashIfSandboxed` | boolean | `true` | Auto-approve bash when sandboxed |
|
||||
| `sandbox.excludedCommands` | array | `[]` | Commands to run outside sandbox |
|
||||
| `sandbox.allowUnsandboxedCommands` | boolean | `true` | Allow `dangerouslyDisableSandbox` |
|
||||
| `sandbox.ignoreViolations` | object | `{}` | Map of command patterns to path arrays — suppress violation warnings |
|
||||
| `sandbox.ignoreViolations` | object | `{}` | Map of command patterns to path arrays — suppress violation warnings *(in JSON schema, not on official settings page)* |
|
||||
| `sandbox.enableWeakerNestedSandbox` | boolean | `false` | Weaker sandbox for Docker (reduces security) |
|
||||
| `sandbox.network.allowUnixSockets` | array | `[]` | Specific Unix socket paths accessible in sandbox |
|
||||
| `sandbox.network.allowAllUnixSockets` | boolean | `false` | Allow all Unix sockets (overrides allowUnixSockets) |
|
||||
| `sandbox.network.allowLocalBinding` | boolean | `false` | Allow binding to localhost ports (macOS) |
|
||||
| `sandbox.network.allowedDomains` | array | `[]` | Network domain allowlist for sandbox |
|
||||
| `sandbox.network.deniedDomains` | array | `[]` | Network domain denylist for sandbox |
|
||||
| `sandbox.network.deniedDomains` | array | `[]` | Network domain denylist for sandbox *(not in official docs — unverified)* |
|
||||
| `sandbox.network.httpProxyPort` | number | - | HTTP proxy port 1-65535 (custom proxy) |
|
||||
| `sandbox.network.socksProxyPort` | number | - | SOCKS5 proxy port 1-65535 (custom proxy) |
|
||||
| `sandbox.network.allowManagedDomainsOnly` | boolean | `false` | Only allow domains in managed allowlist (managed settings) |
|
||||
| `sandbox.filesystem.allowWrite` | array | `[]` | Path prefixes where write is allowed. Prefix: `//` (absolute), `~/` (home), `/` (project root), `./` (cwd) |
|
||||
| `sandbox.filesystem.denyWrite` | array | `[]` | Path prefixes where write is denied |
|
||||
| `sandbox.filesystem.denyRead` | array | `[]` | Path prefixes where read is denied |
|
||||
| `sandbox.filesystem.allowRead` | array | `[]` | Path prefixes to re-allow read access within `denyRead` regions. Use to carve out exceptions inside broadly denied paths |
|
||||
| `sandbox.enableWeakerNetworkIsolation` | boolean | `false` | (macOS only) Allow access to system TLS trust (`com.apple.trustd.agent`); reduces security |
|
||||
|
||||
**Example:**
|
||||
@@ -403,9 +404,9 @@ Configure Claude Code plugins and marketplaces.
|
||||
| `enabledPlugins` | object | Any | Enable/disable specific plugins |
|
||||
| `extraKnownMarketplaces` | object | Project | Add custom plugin marketplaces (team sharing via `.claude/settings.json`) |
|
||||
| `strictKnownMarketplaces` | array | Managed only | Allowlist of permitted marketplaces |
|
||||
| `skippedMarketplaces` | array | Any | Marketplaces user declined to install |
|
||||
| `skippedPlugins` | array | Any | Plugins user declined to install |
|
||||
| `pluginConfigs` | object | Any | Per-plugin MCP server configs (keyed by `plugin@marketplace`) |
|
||||
| `skippedMarketplaces` | array | Any | Marketplaces user declined to install *(in JSON schema, not on official settings page)* |
|
||||
| `skippedPlugins` | array | Any | Plugins user declined to install *(in JSON schema, not on official settings page)* |
|
||||
| `pluginConfigs` | object | Any | Per-plugin MCP server configs (keyed by `plugin@marketplace`) *(in JSON schema, not on official settings page)* |
|
||||
| `blockedMarketplaces` | array | Managed only | Block specific plugin marketplaces |
|
||||
| `pluginTrustMessage` | string | Managed only | Custom message displayed when prompting users to trust plugins |
|
||||
|
||||
@@ -636,6 +637,10 @@ Set environment variables for all Claude Code sessions.
|
||||
| `ANTHROPIC_API_KEY` | API key for authentication |
|
||||
| `ANTHROPIC_AUTH_TOKEN` | OAuth token |
|
||||
| `ANTHROPIC_BASE_URL` | Custom API endpoint |
|
||||
| `ANTHROPIC_MODEL` | Name of the model to use. Accepts aliases (`sonnet`, `opus`, `haiku`) or full model IDs. Overrides the `model` setting |
|
||||
| `ANTHROPIC_DEFAULT_HAIKU_MODEL` | Override the Haiku model alias with a custom model ID (e.g., for third-party deployments) |
|
||||
| `CLAUDECODE` | Set to `1` in shell environments Claude Code spawns (Bash tool, tmux sessions). Not set in hooks or status line commands. Use to detect when a script is running inside a Claude Code shell |
|
||||
| `CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS` | Set to `1` to allow fast mode when the organization status check fails due to a network error. Useful when a corporate proxy blocks the status endpoint |
|
||||
| `CLAUDE_CODE_USE_BEDROCK` | Use AWS Bedrock (`1` to enable) |
|
||||
| `CLAUDE_CODE_USE_VERTEX` | Use Google Vertex AI (`1` to enable) |
|
||||
| `CLAUDE_CODE_USE_FOUNDRY` | Use Microsoft Foundry (`1` to enable) |
|
||||
@@ -671,7 +676,7 @@ Set environment variables for all Claude Code sessions.
|
||||
| `CLAUDE_CODE_PROMPT_CACHING_ENABLED` | Override prompt caching behavior *(not in official docs — unverified)* |
|
||||
| `CLAUDE_CODE_DISABLE_TOOLS` | Comma-separated list of tools to disable *(not in official docs — unverified)* |
|
||||
| `CLAUDE_CODE_DISABLE_MCP` | Disable all MCP servers (`1` to disable) *(not in official docs — unverified)* |
|
||||
| `CLAUDE_CODE_MAX_OUTPUT_TOKENS` | Max output tokens per response (default: 32000, max: 64000) |
|
||||
| `CLAUDE_CODE_MAX_OUTPUT_TOKENS` | Max output tokens per response. Default: 32,000 (64,000 for Opus 4.6 as of v2.1.77). Upper bound: 64,000 (128,000 for Opus 4.6 and Sonnet 4.6 as of v2.1.77) |
|
||||
| `CLAUDE_CODE_DISABLE_FAST_MODE` | Disable fast mode entirely (`1` to disable) |
|
||||
| `CLAUDE_CODE_DISABLE_AUTO_MEMORY` | Disable auto memory (`1` to disable) |
|
||||
| `CLAUDE_CODE_USER_EMAIL` | Provide user email synchronously for authentication |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Skills Best Practice
|
||||
|
||||
<br>
|
||||
<br>
|
||||
[](../implementation/claude-skills-implementation.md)
|
||||
|
||||
Claude Code skills — frontmatter fields and official bundled skills.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Sub-agents Best Practice
|
||||
|
||||
<br>
|
||||
<br>
|
||||
[](../implementation/claude-subagents-implementation.md)
|
||||
|
||||
Claude Code subagents — frontmatter fields and official built-in agent types.
|
||||
|
||||
Reference in New Issue
Block a user